squarewavedot / matrixserver

LEDCube screenserver and application libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linker error when building the server_FPGA

dbhorst opened this issue · comments

commented

I used the Readme to build this on a RasPi Zero W or RasPi 3. I uncommented the lines in CMakeLists.txt for the server_FPGA to use it with the iCEBreaker, but I got this linker error:
/usr/bin/ld: CMakeFiles/server_FPGA.dir/main.cpp.o: in function 'std::_Sp_counted_ptr_inplace<FPGARendererFTDI, std::allocator<FPGARendererFTDI>, (__gnu_cxx::_Lock_policy)1>::_M_dispose()': main.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceI16FPGARendererFTDISaIS0_ELN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceI16FPGARendererFTDISaIS0_ELN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv]+0x29c): undefined reference to 'vtable for FPGARendererFTDI' /usr/bin/ld: CMakeFiles/server_FPGA.dir/main.cpp.o: in function 'main': main.cpp:(.text.startup+0x730): undefined reference to 'FPGARendererFTDI::FPGARendererFTDI(std::vector<std::shared_ptr<Screen>, std::allocator<std::shared_ptr<Screen> > >)' collect2: error: ld returned 1 exit status make[2]: *** [server_FPGA/CMakeFiles/server_FPGA.dir/build.make:99: server_FPGA/server_FPGA] Error 1 make[1]: *** [CMakeFiles/Makefile2:695: server_FPGA/CMakeFiles/server_FPGA.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Looks like the signature of the constructor is not matching, but I can't get it fixed.
Am I missing something?

commented

Ok, found the comments in renderer/FPGARenderer/CMakeLists.txt and libftdi-dev was missing.