Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
cbMP: A mediaplayer plugin
GeO:
For me this comand works (using wxWidgets-2.8.10, Codeblocks SVN 5604 and MinGW 4.3.3-tdm)!
--- Code: ---g++.exe -shared -Wl,--dll -LC:\Programme\CodeBlocks\src\devel -LC:\Programme\wxWidgets-2.8.10\lib\gcc_dll
.objs\GMPlayList.o .objs\GMPlaylistFrm.o .objs\SGauge.o .objs\cbMP.o .objs\wxAudiere.o .objs\GMOctoCtrl.o
-o cbMP.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import
-lcodeblocks -lwxmsw28u MSW_spez\TagLib\libtag.dll MSW_spez\Audiere\audiere.lib
--- End code ---
critic:
Ok! I made it. Reason of problem was a mingw 3.4.5 that is not clever enough :lol:
But I have another problem: C::B not loaded - it crushes while loading.
This is the codeblocks.RPT contents:
--- Code: ----------------------
Error occured on Monday, June 1, 2009 at 10:27:31.
D:\bin\dev\c++\CodeBlocks\codeblocks.exe caused an Access Violation at location 66f5db58 in module D:\bin\dev\c++\CodeBlocks\share\codeblocks\plugins\cbMP.dll Reading from location 00000000.
Registers:
eax=00000000 ebx=00000000 ecx=00000000 edx=0281a6f8 esi=0022f6ec edi=6d265954
eip=66f5db58 esp=0022f280 ebp=0022f288 iopl=0 nv up ei pl nz ac pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00210212
Call stack:
66F5DB58 D:\bin\dev\c++\CodeBlocks\share\codeblocks\plugins\cbMP.dll:66F5DB58
--- End code ---
Maybe it's a bug? Or the matter is in the C::B version - 5602 (under Win XP).
Don't know what to do. :?
GeO:
Have you copied the audiere.dll and libtag.dll to the Code::Blocks Installpath?
Else you could try to change the OUTPUT_HELP at cbMP.cpp line 52 from wxMEDIABACKEND_AUDIERE to wxMEDIABACKEND_WMP10.
Have you tried to install the binary cbMP.cbplugin? Do you get the same crash?
GeO
PsYhLo:
any one run this on linux ?
i compile it successfully but it says me that the sdk version is different :(
i attach my project file
my system is Ubuntu 9.04
wx from apt.wxwidgets.org
taglib form ubuntu
audiere from ubuntu
and 2 changes in the code
at GMPlayList.cpp
around lines 230 and 261 i change .c_str() to .char_str()
[attachment deleted by admin]
GeO:
--- Quote from: PsYhLo on June 01, 2009, 01:00:39 pm ---i compile it successfully but it says me that the sdk version is different :(
--- End quote ---
I tried it too, the problem is not the sdk version, but the dynamic libraries (libtag.so and audiere.so).
look at he Code::Blocks Logpane::
/home/[user]/.codeblocks/share/codeblocks/plugins/cbMP.so: not loaded (missing symbols?)
In Windows you just have to put this libraries to your Code::Blocks install. But in Linux (Ubuntu) i don't know
where to put it (i copied them in every folder that has something to do with Code::Blocks but i had no success :?)!!
GeO
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version