Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Doesn't compile demos of GF 3D for a Photon: (7 Items)
   
Doesn't compile demos of GF 3D for a Photon  
Good time. I've downloaded Photon OpenGL ES demos demonstrating use of GF 2D/3D from http://community.qnx.com/sf/frs/do/
viewRelease/projects.graphics/frs.photon.gf_ph_2d, 
and I tried to compile gears.c source under QNX650-host by:
#qcc -V gcc_ntox86 gears.c -lgf -lGLES_CM

But it generates error like:
.../crt1.o (text+0x04) Undefined reference to 'main'
.../crt1.o (text+0x86) In function _start:
Undefined reference to 'main'

This source of demo seems simple enough, but...
Please advise me how to compile OpenGL ES gears.c .
RE: Doesn't compile demos of GF 3D for a Photon  
You must compile with PhAB (Photon App Builder), there is no 'main()' in gears.c, it is a PhAB project.

-----Original Message-----
From: Vadim V [mailto:community-noreply@qnx.com] 
Sent: August-22-12 3:58 AM
To: opengles-graphics
Subject: Doesn't compile demos of GF 3D for a Photon

Good time. I've downloaded Photon OpenGL ES demos demonstrating use of GF 2D/3D from http://community.qnx.com/sf/frs/do/
viewRelease/projects.graphics/frs.photon.gf_ph_2d, 
and I tried to compile gears.c source under QNX650-host by:
#qcc -V gcc_ntox86 gears.c -lgf -lGLES_CM

But it generates error like:
.../crt1.o (text+0x04) Undefined reference to 'main'
.../crt1.o (text+0x86) In function _start:
Undefined reference to 'main'

This source of demo seems simple enough, but...
Please advise me how to compile OpenGL ES gears.c .



_______________________________________________

OpenGL ES
http://community.qnx.com/sf/go/post95009
To cancel your subscription to this discussion, please e-mail opengles-graphics-unsubscribe@community.qnx.com
Re: RE: Doesn't compile demos of GF 3D for a Photon  
> You must compile with PhAB (Photon App Builder), there is no 'main()' in gears
> .c, it is a PhAB project.
> 
OK, is this possible to compile(and to run) any Mesa demos on QNX650?
RE: RE: Doesn't compile demos of GF 3D for a Photon  
No, it is not possible to directly compile Mesa demos, the QNX stack is not based on Mesa.

Regards.

-----Original Message-----
From: Vadim V [mailto:community-noreply@qnx.com] 
Sent: September-03-12 3:38 AM
To: opengles-graphics
Subject: Re: RE: Doesn't compile demos of GF 3D for a Photon

> You must compile with PhAB (Photon App Builder), there is no 'main()' 
> in gears .c, it is a PhAB project.
> 
OK, is this possible to compile(and to run) any Mesa demos on QNX650?



_______________________________________________

OpenGL ES
http://community.qnx.com/sf/go/post95329
To cancel your subscription to this discussion, please e-mail opengles-graphics-unsubscribe@community.qnx.com
Re: RE: RE: Doesn't compile demos of GF 3D for a Photon  
OK. Now I try to remake Linux glx-gears.c for compiling on QNX. Current error is "GLAPI does not name a type" in glues.h
 and glu.h . May I to fix this bug?
Best regards...
Re: RE: RE: Doesn't compile demos of GF 3D for a Photon  
I suppose that it needs some header file, but what is? Standart Neutrino's GF,GLES and GLUES is  all included, it is 
must be some header file from extra library, I guess?
Re: RE: RE: Doesn't compile demos of GF 3D for a Photon  
Just it needed some extra libraries. Sorry.