Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-16-2005, 04:28 AM   #1
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Porting Linux OpenGL apps to Windows

What do I have to do to make my Linux OpenGL app work under Windows?
Is it enough to compile it with GCC for Windows?

Old 11-16-2005, 09:11 AM   #2
Registered: Nov 2005
Location: South coast
Distribution: Debian /AMD64
Posts: 48

Rep: Reputation: 15
It depends on how the application sets up the OpenGL window/context/stuff.

The GLUT library should be portable and may survive a simple Windows compilation.
SDL is similar but I haven't ever used it on Windows (or much on Linux).
The GLX library is nearly replaceable with Windows' WGL library but does require rewriting the window setup bits.

This site is an excellent resource for OpenGL with tutorials and basecode ported to loads of platforms/libraries. If you can find the one you are using there (and a suitable Windows one you wish to use), it may help in the translation.

I hope it's not too difficult!
Old 11-16-2005, 09:21 AM   #3
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Thanks, Que_273.
I know of NeHe Everyone knows of him )

I have SDL + OpenGL code.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux to windows porting Atrocity Linux - Software 5 02-19-2013 08:36 AM
Porting a Carbon (OS X) programm to OpenGL (Linux) Geronimo Programming 3 04-20-2005 10:49 AM
porting windows drivers to linux? bizx Linux - Hardware 7 07-08-2004 04:30 PM
Porting C++ code from windows to Linux ashwinipahuja Linux - General 1 03-22-2004 02:57 AM
porting windows ce code to linux rainmann Programming 7 06-12-2003 07:19 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration