I recently purchased the OpenGL SuperBible ed. 7. I downloaded the sample code and tried to build it.

This is my very first exposure to cmake; I am reading through the documentation and did a quick scan of the gmane archive but cannot seem find an answer to my question. (Probably my fault; my search skills may be bad because I have been up programming for 30 hours :-P

AFAIK there is no mailing list or forum for OpenGL SuperBible; could be wrong on this too.

I am running Linux Mint 17.1.

I did:

cmake .
make

Then cmake gave output:
.
.
.
Linking CXX executable bin/alienrain
CMakeFiles/alienrain.dir/src/alienrain/alienrain.cpp.o: In function `sb6::application::run(sb6::application*)': alienrain.cpp:(.text._ZN3sb611application3runEPS0_[_ZN3sb611application3runEPS0_]+0x21): undefined reference to `glfwInit'

So "glfwInit" is a reference to an entrypoint in libglfw.so; this library exists on my machine at /usr/lib/libglfw.so. Moreover, when I do

ldconfig -p

I see that this library is listed.

QUESTION: Is there a quick way to get cmake to generate more output about how it is linking the executable? Or do I have another problem?

Best,

-- Jake --
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to