Skip to main content
GameDev.net gamedev.net
🔒 Locked

Moving application from Windows to Linux

Started by pilgrim9684 Jul 7, 2008 at 6:00 PM 5 replies 1.2k views
Original Post
pilgrim9684
pilgrim9684
I have an application that I developed using Visual Studio 6.0 and 2005 to verify operation of framebuffer objects rendering to textures. However, now I need to port it to Linux and there is not glut or glew libraries or header files on the Linux system I need to port to. A search of the web does not yield glut binary files for Linux as are available for Windows; probably because of the differnt kernels out there. However, more disturbing is the absence of recent evidence of glut support for Linux. Have I missed something big here? What should I be using in the Linux world to replace the glut and glew functionality? Pilgrim
MARS_999
MARS_999
glew works on Linux,

http://glew.sourceforge.net/ the binaries are right on the front page?

And as for GLUT I am not 100% sure, but what about FreeGLut?
HuntsMan
HuntsMan
For glut, use freeglut. GLEW works also on linux, to install the necessary headers, on a ubuntu system, install libglew-dev and freeglut3-dev , for other distros, the package names are similar.
riruilo
riruilo
I would recommend you that you use codeblocks or another multiplatform IDE.

See you.
I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in rain. Time to die.
shurcool
shurcool
If you're looking for a glut replacement, I would recommend GLFW. It will require some changes to the code, but it'll probably be worth it in the end. Just take a look at its User Guide example and you'll see what I'm talking about. But if you'd rather stick with glut, I'm 100% sure there is a Linux version of it too, you just have to look around a bit. Or use FreeGlut like someone mentioned.
Prefect
Prefect
All the packages mentioned are available for Linux. You just need to get used to the fact that getting them is actually *easier* on Linux, in some sense: Virtually all distributions have those libraries prepackaged, so you'll just have to go to your distribution's package manager and install them.

As has been pointed out before, most distributions split libraries into libfoo and libfoo-dev packages, where the former only contains the binaries and the latter contains the header files (and often pkg-config files) necessary to build programs.

Some distributions also have libfoo-dbg packages that contain debug versions of libraries, or debug symbols for the normal (non-debug) versions of libraries.

cu,
Prefect
Widelands - laid back, free software strategy
pilgrim9684
pilgrim9684
Thanks all for the input. I was able to get freeglut and glew recompiled for my 64-bit RHEL4 system. The GLFW is an interesting side issue that I will look into further.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.