| Glut / Eclipse on Vista 64 [message #495588] |
Thu, 05 November 2009 07:35  |
Michael Sgier Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi
Im currently on Vista64 with Eclipse 32bit. I can compile but not debug. Anyway I'm developping on Linux and simply want to compile later for Windows as well. Will that work on Vista 32 and 64? ( shared lib )
Now I need to integrate Glut. There's only a 32 bit version...So I simply try this? Which version?
Thanks Michael
[Updated on: Thu, 05 November 2009 08:15]
|
|
|
| Re: Glut / Eclipse on Vista 64 [message #496007 is a reply to message #495588 ] |
Fri, 06 November 2009 19:12   |
Marc-Andre Laperle Messages: 15 Registered: July 2009 |
Junior Member |
|
|
| Michael Sgier wrote | I can compile but not debug.
|
If you use MinGW, you probably don't have gdb in your bin folder. Get it at sourceforge, in the folder GNU Source-Level Debugger, then Release Candidate_ gdb-6.3, gdb-6.3-2.exe. The installer should ask where MinGW is, by default it's C:\MinGW. Make sure gdb.exe is in C:\MinGW\bin once the installation is completed. Try to debug, if it can't find gdb.exe, either add C:\MinGW\bin to your windows PATH variable of specify the full path in the debugger tab of your Run configuration (Run in menu, Run configurations...).
Changing PATH in Vista/7
Changing PATH in 2000/XP
(Damn, I lost a big part of my post at this point).
Short version:
The shared library compiled in 32 bit on Windows will work on both Vistas, the same one won't work on Linux. You can share the code provided that you don't use anything OS specific, only use standard stuff and gl.h, glu.h, glut.h. On Windows, try Nate Robins GLUT. You will probably need to add opengl32, glu32 and glut32.dll in your Linker settings. On Linux you should have freeglut available in your distribution. You'll need GL, GLU, GLUT in your linker settings.
|
|
|
|
|
|
|
|
|
| Re: Glut / Eclipse on Vista 64 [message #498245 is a reply to message #496551 ] |
Mon, 16 November 2009 03:01  |
Michael Sgier Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Thanks now on another project I get:
"Program is not a recognized executable. E:\X-Plane\X-Plane.exe
Not a valid archive file."
This when trying to debug a shared lib. (xplane plugin)
Vista64 <-> xplane32 bit?
What do you suggest?
Many thanks Michael
|
|
|