03-15-2018, 08:44 AM
(This post was last modified: 03-15-2018, 09:06 AM by Brian Beuken.)
Oh and for future reference, the VS error list is sometimes too concise and does not give a lot of info on the errors, much better to switch your tab view to the output, which would give a more easy to follow error (well easy for some )
1>VisualGDB: Run "make CONFIG=Debug" in directory "/tmp/VisualGDB/c/Users/beuken/Desktop/openglesprojects/GameProject1/GameProject1" on pi@192.168.0.100 (SSH)
1>g++ -ggdb -ffunction-sections -O0 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface -I/opt/vc/include/interface/vmcs_host/linux -DDEBUG=1 -c GameProject1.cpp -o Debug/GameProject1.o -MD -MF Debug/GameProject1.dep
1>g++ -o Debug/GameProject1 -Wl,-gc-sections -L/opt/vc/lib -Wl,--start-group Debug/GameProject1.o -lGLESv2_static -lEGL_static -lvchiq_arm -lvcos -lkhrn_static -lbcm_host -Wl,--rpath='$ORIGIN' -Wl,--end-group
1>/usr/bin/ld: /opt/vc/lib/libEGL_static.a(khrn_client_platform_linux.c.o)(0): error : undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'
1>//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line
1>collect2 : error : ld returned 1 exit status
1>Makefile:138: recipe for target 'Debug/GameProject1' failed
1>make: *** [Debug/GameProject1] Error 1
here I was able to read a more complex error and noticed that pthread was at fault. The errors don't always make sense but they give more information that can lead to the cause.
1>VisualGDB: Run "make CONFIG=Debug" in directory "/tmp/VisualGDB/c/Users/beuken/Desktop/openglesprojects/GameProject1/GameProject1" on pi@192.168.0.100 (SSH)
1>g++ -ggdb -ffunction-sections -O0 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface -I/opt/vc/include/interface/vmcs_host/linux -DDEBUG=1 -c GameProject1.cpp -o Debug/GameProject1.o -MD -MF Debug/GameProject1.dep
1>g++ -o Debug/GameProject1 -Wl,-gc-sections -L/opt/vc/lib -Wl,--start-group Debug/GameProject1.o -lGLESv2_static -lEGL_static -lvchiq_arm -lvcos -lkhrn_static -lbcm_host -Wl,--rpath='$ORIGIN' -Wl,--end-group
1>/usr/bin/ld: /opt/vc/lib/libEGL_static.a(khrn_client_platform_linux.c.o)(0): error : undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'
1>//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line
1>collect2 : error : ld returned 1 exit status
1>Makefile:138: recipe for target 'Debug/GameProject1' failed
1>make: *** [Debug/GameProject1] Error 1
here I was able to read a more complex error and noticed that pthread was at fault. The errors don't always make sense but they give more information that can lead to the cause.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's