Menu

GLUT_LIBRARIES not set on Ubuntu 12.04 x64

Help
Anonymous
2012-10-02
2013-03-04
  • Anonymous

    Anonymous - 2012-10-02

    I get this output from configure:

    ~/git/oglplus$ ./configure.sh 
    -- Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
    -- GLM header files not found
    -- Using GLEW
    -- Detecting support for c++11 feature 'SCOPED_ENUMS': TRUE
    -- Detecting support for c++11 feature 'VARIADIC_MACROS': TRUE
    -- Detecting support for c++11 feature 'VARIADIC_TEMPLATES': TRUE
    -- Detecting support for c++11 feature 'UNIFIED_INITIALIZATION_SYNTAX': TRUE
    -- Detecting support for c++11 feature 'INITIALIZER_LISTS': TRUE
    -- Detecting support for c++11 feature 'DEFAULTED_FUNCTIONS': TRUE
    -- Detecting support for c++11 feature 'DELETED_FUNCTIONS': TRUE
    -- Detecting support for c++11 feature 'EXPLICIT_CONVERSION_OPERATORS': TRUE
    -- Detecting support for c++11 feature 'FUNCTION_TEMPLATE_DEFAULT_ARGS': TRUE
    -- Detecting support for c++11 feature 'USER_DEFINED_LITERALS': FALSE
    -- Detecting support for c++11 feature 'CONSTEXPR': TRUE
    -- Detecting support for c++11 feature 'NOEXCEPT': TRUE
    -- Detecting support for c++11 feature 'LAMBDAS': TRUE
    -- Detecting support for c++11 feature 'NULLPTR': TRUE
    -- Detecting support for c++11 feature 'CHRONO': TRUE
    -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
    -- Found GLEW extension: ARB_compatibility
    -- Found GLEW extension: EXT_direct_state_access
    -- Found GLEW extension: ARB_debug_output
    -- Found GLEW extension: ATI_meminfo
    -- Found GLEW extension: AMD_performance_monitor
    -- Skipping '002_shader_lit' because USER_DEFINED_LITERALS not implemented
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    GLUT_LIBRARIES
        linked by target "001_triangle" in directory /home/david/git/oglplus/example/oglplus
        linked by target "002_rect" in directory /home/david/git/oglplus/example/oglplus
    

    plus a whole bunch of other target references for the examples.  I do have freeglut3 installed, and "g++ -lglut" finds it.  I did a bit of poking around and couldn't identify the root problem, so I just commented 'add_subdirectory("example")' in the cmake script.

    -no-examples didn't seem to do the trick, and it looks like OGLPLUS_NO_EXAMPLES isn't actually hooked up to anything.  I didn't really look into it too much, so I thought I would post here rather than putting in a bug.

    P.S.  I'm just about to start on my first full-on C++11 project using opengl, and I'm looking forward to using oglplus.

     
  • Matus Chochlik

    Matus Chochlik - 2012-10-05

    Thanks for reporting this. I'm going to open a new bug report in the tracker and look into it.

     
  • Matus Chochlik

    Matus Chochlik - 2012-10-05

    OK, I've made some changes to GLUT detection.
    Could you pull from the repo and try now;

    I cannot reproduce the problem on any of my machines
    so if the update does not help, could you please put some message()s
    into ./config/FindGLUT.cmake and find out what is going on?

    How is the GLUT_LIBRARIES variable set after the calls to
    1) include(FindGLUT)
    2) find_library
    3) and before and after the loop through the values in TMP_GLUT_LIBRARIES

    thanks

     
  • Anonymous

    Anonymous - 2012-10-06

    I noticed you added a bug for this, so I posted some info and a patch on it.

    I'm impressed with oglplus so far.  I even installed g++ 4.7 to take advantage of all features.  It's a great showcase for C++11.

     

Log in to post a comment.

MongoDB Logo MongoDB