Jump to content
  • Advertisement
Sign in to follow this  
LordG

Installing Glui on Linux

This topic is 5409 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to install Glui on Linux? I really need to know how to do this. Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
  • Download the source, and extract it to a folder somewhere.

  • Edit the makefile, and set CC to g++, so that it looks like this:
    #CC=g -g0 -o32
    #CC=gcc
    CC=g++ -O3

  • Make two directories named 'lib' and 'bin'.

  • Edit the examples so that main returns int, and add return 0; to the end of their main functions.

  • Type make, cross your fingers, and hope you have the other libraries it needs.


I don't have the other libraries it needs, so I'll just stop there. I theory you end up with a bunch of examples in the bin folder, and the library in the lib folder.

Share this post


Link to post
Share on other sites
Noooo!

I got this error when trying to compile

g++ -O3 -c -I/usr/include/ glui_add_controls.cpp
In file included from glui_add_controls.cpp:19:
glui.h:298: error: friend declaration requires class-key, i.e. `friend struct
GLUI_Rollout'
glui.h:299: error: friend declaration requires class-key, i.e. `friend struct
GLUI_Main'
glui.h:562: error: friend declaration requires class-key, i.e. `friend struct
GLUI_Control'
glui.h:563: error: friend declaration requires class-key, i.e. `friend struct
GLUI_Rotation'
glui.h:564: error: friend declaration requires class-key, i.e. `friend struct
GLUI_Translation'
glui.h:565: error: friend declaration requires class-key, i.e. `friend struct
GLUI'
glui.h:566: error: friend declaration requires class-key, i.e. `friend class
GLUI_Master_Object'
make: *** [glui_add_controls.o] Error 1


Why does it have to be so difficult to install such a small thing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!