Compile RGBdemo: Error adding symbols: DSO missing from command line - c++

I'm trying to install RGBdemo in linux mint, I have installed previous libraries and packages. When I run sudo make install I get the following error:
/usr/bin/ld: CMakeFiles/Sample-Players.dir/main.cpp.o: undefined reference to symbol 'glOrtho'
//usr/lib/i386-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: * [bin/Sample-Players] Error 1
make[1]: * [nestk/deps/openni/Nite/Samples/Players/CMakeFiles/Sample-Players.dir/all] Error 2
make: *** [all] Error 2
Any suggestion?? I'm not a programmer and really I have a poor background in programming

Related

Undefined reference when building AzerothCore module

I followed the steps on how to install azerothcore. I remembered I could add Modules, so I went in the website of azerothcore and downloaded a few modules. Before I downloaded them I checked and saw it says that it's building on master core, but for some reason I have the following error:
/usr/bin/ld: ../../../modules/libmodules.a(ModulesLoader.cpp.o): in function `AddModulesScripts()':
/root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:60: undefined reference to `Addmod_1v1_arena_masterScripts()'
/usr/bin/ld: /root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:61: undefined reference to `Addmod_boss_announcer_masterScripts()'
/usr/bin/ld: /root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:63: undefined reference to `Addmod_npc_buffer_masterScripts()'
/usr/bin/ld: /root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:64: undefined reference to `Addmod_npc_spectator_masterScripts()'
/usr/bin/ld: /root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:65: undefined reference to `Addmod_reward_shop_masterScripts()'
/usr/bin/ld: /root/azerothcore/build/modules/gen_scriptloader/static/ModulesLoader.cpp:66: undefined reference to `Addmod_solocraft_masterScripts()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/apps/CMakeFiles/worldserver.dir/build.make:175: src/server/apps/worldserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:1086: src/server/apps/CMakeFiles/worldserver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
and I am not capable of fixing it. Can anyone please help?
Remove _master from all module subdirectories.
You can avoid this error by using git clone or cloning the modules in general with a git interface, instead of downloading a .zip file.

Building libosmocore on FreeBSD

I've configured the source with these arguments:
autoreconf -fi
./configure --disable-pcsc --disable-libmnl --disable-gb
And it went just well, and then after running 'make' command and in middle of building I get these errors:
gmake[2]: Entering directory '/usr/home/test_usr/libosmocore-1.5.2/utils'
CCLD osmo-arfcn
ld: error: ../src/.libs/libosmocore.so: undefined reference to osmo_timerfd_disable [--no-allow-shlib-undefined]
ld: error: ../src/.libs/libosmocore.so: undefined reference to osmo_timerfd_schedule [--no-allow-shlib-undefined]
ld: error: ../src/.libs/libosmocore.so: undefined reference to osmo_timerfd_setup [--no-allow-shlib-undefined]
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:545: osmo-arfcn] Error 1
gmake[2]: Leaving directory '/usr/home/test_usr/libosmocore-1.5.2/utils'
gmake[1]: *** [Makefile:708: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/home/test_usr/libosmocore-1.5.2'
gmake: *** [Makefile:487: all] Error 2
Has anybody faced this issue ? How can i resolve this ?
Thanks,

/tmp/cctXTBVn.ltrans0.ltrans.o: undefined reference to symbol '_ZN2cv3MatC1ERKS0_RKNS_5Rect_IiEE'

I want to compile and test a C++ library, but get an error when compiling :
/usr/bin/ld: /tmp/cctXTBVn.ltrans0.ltrans.o: undefined reference to symbol '_ZN2cv3MatC1ERKS0_RKNS_5Rect_IiEE'
//home/ahmet/Downloads/opencv-4.1.2/build/lib/libopencv_core.so.4.1: error adding symbols: DSO missing from command line
Makefile:345: recipe for target 'bin/aRecognizer-cu+dbg' failed
collect2: error: ld returned 1 exit status
make: *** [bin/aRecognizer-cu+dbg] Error 1
opencv=4.1.2.
The kit= Desktop Qt 5.13.1 GCC 64bit
Ubuntu 18.4
I am beginner. any clues would be appreciated.

Linker error while compiling GCC 8.2.0 related to libmpfr.so

I'm trying to compile GCC from scratch like I used to do when I used Linux a lot, I'm trying to install Sourcemage but the compiler version of GCC is 4.6 and the latest version is 8.2.0, so I compiled everything needed to compile GCC from scratch, and everything is going well while compiling the compiler until the very end when it starts giving me a linker error related to libmpfr.so:
Here's what I get when I do my typical make -j3:
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/lto/Make-lang.in:81: lto1] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/c/Make-lang.in:85: cc1] Error 1
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/cp/Make-lang.in:120: cc1plus] Error 1
make[2]: *** [Makefile:4657: all-stage2-gcc] Error 2
make[1]: *** [Makefile:22203: stage2-bubble] Error 2
make: *** [Makefile:944: all] Error 2
If you want to look at the full output of the error then I provide a pastebin: https://pastebin.com/g5sn3jDv

Error make all for OpenCV3 - ubuntu 16.04

I am trying to install OpenCV3 but I keep getting this error:
usr/bin/ld: /usr/local/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.5m.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/python3/CMakeFiles/opencv_python3.dir/build.make:224: recipe for target 'lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so' failed
make[2]: *** [lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:7226: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed
make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
Any idea on how to solve it?