Ok, I found the problem. First (facepalm), the spot where libraries are
defined is now pretty obvious to me.
Anyway, the original author included tests for systems WIN32, UNIX, and
APPLE in CMakeLists.txt. None of these matched for my Linux Mint system,
apparently, so I just edited the file to force use of the UNIX library
options. At least building works without error now.
I shall contact the original author (if possible) to discuss this.
But I don't need further help on this mailing list for now.
Thanks.
Best,
- Jake -
On 15-12-16 09:32 PM, DJ wrote:
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