CICM/HoaLibrary-PD

multiple definition of `glist_reloadingabstraction'

WouterGordts opened this issue · 1 comments

I can't seem to get it to compile on ARM (raspberry pi). These are the errors. I'm compiling against pd-0.47-1 with the commit pure-data/pure-data@07a14c5 All help is very much appreciated.

make[1]: Entering directory '/home/pi/HoaLibrary-PD'
/bin/bash ./libtool --tag=CXX --mode=link g++ -I/home/pi/pd-0.47-1/src -s -O3 -fPIC -fpermissive -std=c++11 -g -O2 -module -avoid-version -shared -shrext .l_i386 -L/home/pi/pd-0.47-1/bin -fPIC -o Hoa.la -rpath /usr/local/lib/pd/extra/Hoa Hoa_la-hoa.library.lo Sources/libHoapd.la ThirdParty/CicmWrapper/Sources/libCicmWrapper.la
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtbeginS.o .libs/Hoa_la-hoa.library.o -Wl,--whole-archive Sources/.libs/libHoapd.a ThirdParty/CicmWrapper/Sources/.libs/libCicmWrapper.a -Wl,--no-whole-archive -L/home/pi/pd-0.47-1/bin -L/usr/lib/gcc/arm-linux-gnueabihf/4.9 -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../.. -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crtn.o -O3 -O2 -Wl,-soname -Wl,Hoa.l_i386 -o .libs/Hoa.l_i386
Sources/.libs/libHoapd.a(libHoapd_la-hoa.decoder_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:(.bss+0x1e8): first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.encoder_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.exchanger_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.io.o):(.bss+0x1f8): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.map_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.meter_gui_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.optim_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.process_tilde.o):(.bss+0x1e8): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.projector_tilde.o):(.bss+0x1e8): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.recomposer_tilde.o):(.bss+0x1e8): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.rotate_tilde.o):(.bss+0x1e8): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.scope_gui_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.space_gui.o):(.bss+0x1e8): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.tools.o):(.bss+0x1f4): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
Sources/.libs/libHoapd.a(libHoapd_la-hoa.wider_tilde.o):(.bss+0x1ec): multiple definition of glist_reloadingabstraction' .libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here Sources/.libs/libHoapd.a(libHoapd_la-hoa.map_gui.o):(.bss+0x1f8): multiple definition of glist_reloadingabstraction'
.libs/Hoa_la-hoa.library.o:/home/pi/HoaLibrary-PD/hoa.library.hpp:144: first defined here
collect2: error: ld returned 1 exit status
Makefile:502: recipe for target 'Hoa.la' failed
make[1]: *** [Hoa.la] Error 1
make[1]: Leaving directory '/home/pi/HoaLibrary-PD'
Makefile:577: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1``

It was an error on my end! I forgot to change the g_canvas.h file as well...

Also, leaving this info for somebody else, but my compiled library had the extension .l_i386, I had to change this to .pd_linux in order for pd to load it. You can probably change this during compile but I had no idea how.