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.

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 on other sites
• 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 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.

• 18
• 29
• 11
• 21
• 16