I tryed to build plugin but got following message:
g++.exe -shared -Wl,--dll -LD:\bin\dev\libs\CB_SDK\devel -LD:\bin\dev\libs\wxWidgets-2.8.7\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
Cannot export audiere_NULL_THUNK_DATA: symbol not found
collect2: ld returned 1 exit status
Do you know why it appears and how to correct it? :?
For me this comand works (using wxWidgets-2.8.10, Codeblocks SVN 5604 and MinGW 4.3.3-tdm)!
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
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:
-------------------
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
Maybe it's a bug? Or the matter is in the C::B version - 5602 (under Win XP).
Don't know what to do. :?
i compile it successfully but it says me that the sdk version is different :(
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
It happens, because the medi-library of wxWidgets will not be loaded if you use default wx-config parameters.
I attach a patch, that makes the plugin compilable and installable on linux (debian 64-bit).
But I'm not able to play any files. I can load a file (mp3 or ogg), but if I want to play it (double-click in the playlist) the following MessageBox pops up:
Error: Couldn't open file!
Debuginfo: OpenSampleSource()
I also did not find a way to remove the file or add another one.
[attachment deleted by admin]