Issue #77 new

Problem building glsdk

Anonymous avatarAnonymous created an issue

I can't seem to build the glsdk that comes with the tutorials. Here's what I've done:

  • I use "premake4.exe vs2010" in the glsdk folder
  • I open the resulting "glsdk.sln" in VS 2010
  • I try to build "Debug" (happens with "Release" too)
  • Building fails with the error: "Unalbe to start .../glloadD.lib The specified file is an unrecognized or unsupported binary format"

What am I missing here?

Comments (5)

  1. Anonymous

    Nevermind that, no problem here, just lack of knowledge of Visual Studio. Problem solved by actually BUILDING not running the Solution.

  2. Anonymous

    Another build problem here: It worked fine on Windows (with MinGW), but doing just the same steps on Ubuntu 10.10 fails. Premake4 seems to create the Makefiles, but once I try to build them, I get:

    $ make config=debug
    ==== Building framework (debug) ====
    Timer.cpp
    In file included from ../glsdk/freeglut/include/GL/freeglut.h:17,
                     from Timer.cpp:9:
    ../glsdk/freeglut/include/GL/freeglut_std.h:120: fatal error: GL/gl.h: No such file or directory
    compilation terminated.
    make[1]: *** [lib/Debug/Timer.o] Error 1
    make: *** [framework] Error 2
    

    I checked the file, and the #include in question seems to be skipped in Windows (so that explains why it works there). But how do I make it work on Ubuntu? Is there something I need to install/compile first?

  3. Anonymous

    Okay, fixed the errors compiling glsdk by installing libgl1-mesa-dev and libglu1-mesa-dev (pretty stupid error, but including that in the install instructions for Linux-Newbies wouldn't be a bad idea IMHO). Making the tutorials leaves me with another error however:

    $ make config=debug
    ==== Building framework (debug) ====
    Scene.cpp
    In file included from /usr/include/c++/4.4/backward/strstream:47,
                     from Scene.cpp:6:
    /usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
    Scene.cpp: In constructor ‘Framework::SceneImpl::SceneImpl(const std::string&)’:
    Scene.cpp:447: error: using ‘typename’ outside of template
    Scene.cpp:448: error: using ‘typename’ outside of template
    Scene.cpp:449: error: using ‘typename’ outside of template
    Scene.cpp:450: error: using ‘typename’ outside of template
    Scene.cpp: In destructor ‘Framework::SceneImpl::~SceneImpl()’:
    Scene.cpp:462: error: using ‘typename’ outside of template
    Scene.cpp:463: error: using ‘typename’ outside of template
    Scene.cpp:464: error: using ‘typename’ outside of template
    Scene.cpp:465: error: using ‘typename’ outside of template
    make[1]: *** [lib/Debug/Scene.o] Error 1
    make: *** [framework] Error 2
    
  4. Anonymous

    I'm also new to this.. error LNK1104: cannot open file 'glloadD.lib'

    how do I build this properly? thanks

  5. Andy Lo

    For those with this build issue:

    $ make config=debug
    ==== Building framework (debug) ====
    Scene.cpp
    In file included from /usr/include/c++/4.4/backward/strstream:47,
                 from Scene.cpp:6:
    /usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
    Scene.cpp: In constructor ‘Framework::SceneImpl::SceneImpl(const std::string&)’:
    Scene.cpp:447: error: using ‘typename’ outside of template
    Scene.cpp:448: error: using ‘typename’ outside of template
    Scene.cpp:449: error: using ‘typename’ outside of template
    Scene.cpp:450: error: using ‘typename’ outside of template
    Scene.cpp: In destructor ‘Framework::SceneImpl::~SceneImpl()’:
    Scene.cpp:462: error: using ‘typename’ outside of template
    Scene.cpp:463: error: using ‘typename’ outside of template
    Scene.cpp:464: error: using ‘typename’ outside of template
    Scene.cpp:465: error: using ‘typename’ outside of template
    make[1]: *** [lib/Debug/Scene.o] Error 1
    make: *** [framework] Error 2
    

    I simply removed the offending 'typename' keywords from the code, and it compiled.

    EDIT: Checking the timestamps on the latest change to Scene.cpp in the framework, it looks like the fixes were made a few days after the latest archived version was uploaded, so I would recommend simply pulling and not using the downloads.

  6. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.