OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Compiling iOS / iPhone - GL_COMPILE / glNewList / display list build errors


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
ryatkins
Newbie


Joined: 29 Mar 2011
Posts: 10

PostPosted: Tue Mar 29, 2011 8:14 pm    Post subject:
Compiling iOS / iPhone - GL_COMPILE / glNewList / display list build errors
Reply with quote

I'm trying to build the latest source from Git for the iPhone
https://github.com/openscenegraph/osg.git

'GL_COMPILE' was not declared in scope
'glNewList' was not declared in this scope
'glEndList' was not declared in this scope
'glCallList' was not declared in this scope

I've followed the instructions in README.txt, but I get thousands of the above errors. I also have added the frameworks: QuartzCore, Foundation, OpenGLES, UIKit, CoreGraphics as they were added from my ccmake.

In my ccmake configuration there wasn't an option to disable OSG_GLU_AVAILABLE as per the instructions.

Also, I downloaded OpenFrameworks Git to get the FREETYPE libraries and set them up like this (with absolute paths, but i've truncated here):

FREETYPE_INCLUDE_DIR_freetype2: openFrameworks/libs/freetype/include/freetype2
FREETYPE_INCLUDE_DIR: openFrameworks/libs/freetype/include/freetype2
FREETYPE_LIBRARY: openFrameworks/libs/freetype/lib/iphone/freetype-iphone.a

Thanks,
Ryan


Last edited by ryatkins on Wed Mar 30, 2011 12:52 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jason Daly
Guest





PostPosted: Tue Mar 29, 2011 10:54 pm    Post subject:
Compiling iOS / iPhone - build errors
Reply with quote

On 03/29/2011 04:14 PM, Ryan Atkins wrote:
Quote:
I'm trying to build the latest source from Git for the iPhone
https://github.com/openscenegraph/osg.git

'GL_COMPILE' was not declared in scope
'glNewList' was not declared in this scope
'glEndList' was not declared in this scope
'glCallList' was not declared in this scope

Those functions are for display lists, which aren't available in OpenGL ES.

Quote:
I've followed the instructions in README.txt, but I get thousands of the above errors. I also have added the frameworks: QuartzCore, Foundation, OpenGLES, UIKit, CoreGraphics as they were added from my ccmake.

In my ccmake configuration there wasn't an option to disable OSG_GLU_AVAILABLE as per the instructions.

Also, I downloaded OpenFrameworks Git to get the FREETYPE libraries and set them up like this (with absolute paths, but i've truncated here):

FREETYPE_INCLUDE_DIR_freetype2: openFrameworks/libs/freetype/include/freetype2
FREETYPE_INCLUDE_DIR: openFrameworks/libs/freetype/include/freetype2
FREETYPE_LIBRARY: openFrameworks/libs/freetype/lib/iphone/freetype-iphone.a

I'm not the OSG iPhone expert, but I don't think those settings are your
problem. It sounds like you've got CMake set up to compile for regular
OpenGL and not OpenGL ES. I believe you need to turn off
OSG_GL1_AVAILABLE, OSG_GL2_AVAILABLE, and OSG_GL3_AVAILABLE, and turn on
OSG_GLES1_AVAILABLE and/or OSG_GLES2_AVAILABLE (depending on which model
iPhone you're targeting).

If you've got these settings correct, then something else is going on,
and you'll have to wait for more qualified help :-)

--"J"


------------------
Post generated by Mail2Forum
Back to top
ryatkins
Newbie


Joined: 29 Mar 2011
Posts: 10

PostPosted: Tue Mar 29, 2011 11:31 pm    Post subject:
Reply with quote

Thanks Jason.

I found a setting to turn off display lists, good catch Jason.

OSG_GL_DISPLAYLISTS_AVAILABLE OFF

I have OSG_GLES1_AVAILABLE set to ON, GLES2 OFF.

Seems to be working now!
Back to top
View user's profile Send private message
Jorge Izquierdo Ciges
Appreciator


Joined: 26 Feb 2011
Posts: 156

PostPosted: Tue Mar 29, 2011 11:57 pm    Post subject:
Compiling iOS / iPhone - build errors
Reply with quote

Have you tried turning OFF every GL except GLES? and also ... have you put the values to compile for GLES 1? Remember that you have to set some options besides the avaible flag.

2011/3/30 Ryan Atkins < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
Thanks Jason.

I have OSG_GLES1_AVAILABLE set to  ON.

GLES2 gives me a lot more errors.

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=38054#38054






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sth
Appreciator


Joined: 04 Mar 2009
Posts: 407

PostPosted: Wed Mar 30, 2011 12:28 pm    Post subject:
Compiling iOS / iPhone - build errors
Reply with quote

Hi Ryan,

Here's an example command-line to get an iphone build from current osg.

/usr/bin/cmake -G Xcode -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
-D CMAKE_CXX_FLAGS:STRING="-ftree-vectorize -fvisibility-inlines-hidden
-mno-thumb -arch armv6 -pipe -no-cpp-precomp -miphoneos-version-min=3.1
-mno-thumb" \
-D BUILD_OSG_APPLICATIONS:BOOL=OFF \
-D OSG_BUILD_FRAMEWORKS:BOOL=OFF \
-D OSG_WINDOWING_SYSTEM:STRING=IOS \
-D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
-D CMAKE_OSX_ARCHITECTURES:STRING="armv6;armv7" \
-D
CMAKE_OSX_SYSROOT:STRING=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
\
-D OSG_GL1_AVAILABLE:BOOL=OFF \
-D OSG_GL2_AVAILABLE:BOOL=OFF \
-D OSG_GLES1_AVAILABLE:BOOL=ON \
-D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \
-D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \
-D OSG_GL_LIBRARY_STATIC:BOOL=OFF \
-D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \
-D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \
-D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \
-D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \
-D DYNAMIC_OPENTHREADS:BOOL=OFF .

this should compile successfully, I am using this command line to do
continous builds via hudson. (You can change the vars from insider the
cmake gui, no need for the command-line)

cheers,

Stephan
Am 29.03.11 22:14, schrieb Ryan Atkins:
Quote:
I'm trying to build the latest source from Git for the iPhone
https://github.com/openscenegraph/osg.git

'GL_COMPILE' was not declared in scope
'glNewList' was not declared in this scope
'glEndList' was not declared in this scope
'glCallList' was not declared in this scope

I've followed the instructions in README.txt, but I get thousands of the above errors. I also have added the frameworks: QuartzCore, Foundation, OpenGLES, UIKit, CoreGraphics as they were added from my ccmake.

In my ccmake configuration there wasn't an option to disable OSG_GLU_AVAILABLE as per the instructions.

Also, I downloaded OpenFrameworks Git to get the FREETYPE libraries and set them up like this (with absolute paths, but i've truncated here):

FREETYPE_INCLUDE_DIR_freetype2: openFrameworks/libs/freetype/include/freetype2
FREETYPE_INCLUDE_DIR: openFrameworks/libs/freetype/include/freetype2
FREETYPE_LIBRARY: openFrameworks/libs/freetype/lib/iphone/freetype-iphone.a

Thanks,
Ryan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38038#38038









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
ryatkins
Newbie


Joined: 29 Mar 2011
Posts: 10

PostPosted: Wed Mar 30, 2011 12:47 pm    Post subject:
Reply with quote

Thanks for the command line, that's very helpful.

OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF should be added to the README.txt as that was my main problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Proper way to display a HUD Chris_Erghis General 5 Mon Sep 01, 2014 1:13 pm View latest post
No new posts XCode + OSG - Basic shapes display pr... felipeberquo General 1 Fri Aug 29, 2014 5:27 pm View latest post
No new posts performance issues with Intel. Displa... cbuchner1 General 4 Wed Aug 27, 2014 9:48 am View latest post
No new posts OSG, osgEarth and Nvidia Jetson TK1 s... Chris Hanson General 0 Sat Aug 02, 2014 5:36 am View latest post
No new posts display quad textured with osg::Textu... sholmes General 1 Thu Jul 31, 2014 5:16 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP