I’m new to OpenGL, and am trying to build a basic Hello World program I found at this site: http://www.badprog.com/c-opengl-hello-world
I tried to compile as recommended by typing “g++ main.cpp -o lookAtThis -lglut” where lookAtThis is the name of the application and also the name of the folder that contains main.cpp. I run this command while in lookAtThis/.
Every time I try to compile the .cpp file, I get the following error:
/usr/bin/ld: /tmp/ccuoaunx.o: undefined reference to symbol ‘glClear’
//usr/lib/arm-linux-gnueabihf/tegra/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Can anyone point me in the write direction to write and compile OpenGL programs from scratch on the JTX1?
Thank you very much!