Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / September 2005



Tip: Looking for answers? Try searching our database.

OpenGL/GLUT problems in Tiger

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klip - 21 Sep 2005 14:40 GMT
Hi,

Since switching to OSX 10.4 and Xcode 2, I can't get OpenGL to open from
within my application.  In Panther, everything worked fine, both with
CodeWarrior 8.3 and Xcode 1.5.

Previously, I've always used CodeWarrior, but as it's outdated, I am
making the switch to Xcode 2.1 at the same time as trying to get my
graphics to work again. Also, the code was written by someone else, and
I am just modifying it mildly. Therefore, I can't exclude that part of
the problem might be due to some stupid newbie-oversight. (But, as I
said, it worked before.)

I've re-created the project as a command-line tool in Xcode 2.1, added
all source code (in C), added the OpenGL and GLUT frameworks and none,
one or both of the Carbon and Cocoa frameworks (from
/System/Library/Frameworks). Compilation is error-free, and if I don't
call OpenGL from within my config-file, the executable runs without a
glitch.  However, if the config-file does call OpenGL, the program
starts to run (in the terminal), but instead of opening an OpenGL
window, it exits again right away with the following message:

"2005-09-21 14:07:35.783 Smolcode1.59x_wGL[1872] GLUT Fatal Error:
internal error: NSInternalInconsistencyException, reason: Error (1002)
creating CGSWindow

Smoldyn has exited with status 1."

(Smolcode1.59x_wGL is the name of the project, Smoldyn is the target and
executable.)

Googleing for that error message didn't produce anything compatible.  
Does anyone know what might be going on and how I can fix it? Is there a
known bug or a change in syntax or incompatibility of GLUT? Any thoughts
would be sooo welcome!

TIA,
Karen
Signature

remove underscore and nine from my email address

Peter Ammon - 24 Sep 2005 02:07 GMT
> Hi,
>
[quoted text clipped - 34 lines]
> TIA,
> Karen

I vaguely remember seeing a similar error that was due to me trying to
use some CGS stuff in NSWindow without an active window server
connection.  Try creating the shared NSApplication first.
[NSApplication sharedApplication] should do it.

-Peter

Signature

Pull out a splinter to reply.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.