bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quartz Display Services and then NSOpenGLPixelFormat


From: Julien Isorce
Subject: Re: Quartz Display Services and then NSOpenGLPixelFormat
Date: Tue, 10 Feb 2009 22:50:34 +0100

 

> Then when the following code is executed :
>
> NSOpenGLPixelFormat *fmt;
>   NSOpenGLPixelFormatAttribute attribs[] = {
>     NSOpenGLPFAAccelerated,
>     NSOpenGLPFANoRecovery,
>     NSOpenGLPFADoubleBuffer,
>     NSOpenGLPFAColorSize, 24,
>     NSOpenGLPFAAlphaSize, 8,
>     NSOpenGLPFADepthSize, 24,
>     NSOpenGLPFAWindow,
>     0
>   };
>
>   fmt = [[NSOpenGLPixelFormat alloc]
>       initWithAttributes:attribs];
>
> I got the following error :"File NSOpenGLPixelFormat.m: 59. In
> [NSOpenGLPixelFormat +_classPixelFormat] Backend doesn't have any
> glPixelFormatClass"
>

which backend/platform? it sounds like when your backend was compiled
either WGL or the GL/GLX libraries were not found.

Windows XP  (I installed GNUstep using gnustep-core-0.22.0-setup.exe and gnustep-system-0.22.0-setup.exe)

In which .a there is the glPixelFormatClass backend ?

>2009/2/10 Matt Rice <ratmice@gmail.com>
>sorry I really don't know anything about the windows backend,
>I had already typed in 'only works under x11' in my previous email
>before I decided to check if someone had implemented it since the last
>I checked, and sure enough it looks to be implemented.

>its in back/Source/win32/WIN32Server.
>m -glPixelFormatClass
>probably in libgnustep-back.a or something to that effect.
>the class name is Win32GLPixelFormat.

>the implementation of -glPixelFormatClass
>looks like this:

>#ifdef HAVE_WGL
> return [Win32GLPixelFormat class];
>#else
> return nil;
>#endif

>so it is likely that when you ran configure it never found WGL for
>some reason, so thats the first place I would look, maybe send the
>config.log to the list.

When should I run configure ?
I wrote a GNUmakefile (for a small lib)

it seems that gnustep-core-0.22.0-setup.exe and gnustep-system-0.22.0-setup.exe  do not install" GNUstep Backend" package.

I will try to compile it by my self so, or any other explanation ?

Last question: do you how to remove the "-0" suffix that appears in the .dll file name ? (include $(GNUSTEP_MAKEFILES)/library.make)
 

I just compiled gnustep backend package (see config.log in attachement) and it installed files which were already installed with gnustep-core-0.22.0-setup.exe
(I mean libgnustep-back-016.dll and libgnustep-back-016.bundle etc..)

There is no .a associated to this dll so I think I have to activate something in my makefile (GNUMakefile)
Any idea ?
 
Thx

Attachment: config.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]