Re: [osg-users] building for xcode on os x

2011-07-20 Thread Michael Chechow
How about using sudo to avoid the permission problem? 2011/7/20 Brian Rojas marchin...@gmail.com Alright I got it working in Xcode now, for the osgdb_jp2 target I added the following to the header search path: /opt/local/include The search path /opt/local/include/jasper was already on the

Re: [osg-users] building for xcode on os x

2011-07-20 Thread Brian Rojas
I'm not using make I'm using xcode, so I'm not sure how that would be done if it's possible I tried building in make and couldn't figure out how to set it to build for 32 bit, on 64 bit I was getting errors with libz: ld: warning: ignoring file /Library/Frameworks//libz.framework/libz, missing

Re: [osg-users] building for xcode on os x

2011-07-20 Thread Michael Chechow
You can set the architecture in CMake: CMAKE_OSX_ARCHITECTURES = i386 2011/7/20 Brian Rojas marchin...@gmail.com I'm not using make I'm using xcode, so I'm not sure how that would be done if it's possible I tried building in make and couldn't figure out how to set it to build for 32 bit, on

Re: [osg-users] building for xcode on os x

2011-07-20 Thread Brian Rojas
Success! It installed it to /usr/local and I was able to run the viewer with a osg file. Thanks for all the help! I want to setup my first osg project in xcode, do you know if I can just add the libraries and headers to the search path or do I need to do anything else? On Jul 20, 2011, at

Re: [osg-users] building for xcode on os x

2011-07-20 Thread Michael Chechow
I don't use Xcode, but there are some articles and video tutorials on the OSG wiki: http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips I don't know wether that information is outdatet, but there should be some Xcode templates available for OSG. Generally speaking, adding

Re: [osg-users] building for xcode on os x

2011-07-20 Thread Brian Rojas
Yup, I added libraries and it works fine, thanks again for the help. On Jul 20, 2011, at 4:24 AM, Michael Chechow wrote: I don't use Xcode, but there are some articles and video tutorials on the OSG wiki: http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips I

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Michael Chechow
Hello, It seems like you don't have the jasper library installed. Install it (using MacPorts for example) and then rerun CMake in order to configure the build script correctly. Michael 2011/7/19 Brian Rojas marchin...@gmail.com I'm getting the following errors when trying to build osg for

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Brian Rojas
I installed jasper using Macports and it installed ok, i checked by running jasper --version and got: 1.900.1 libjasper 1.900.1 However in xcode i'm still getting the same compilation errors. I even deleted the build folder and started the whole configure generate process in cmake again and

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Michael Chechow
Is the JASPER_INCLUDE_DIR set correctly within cmake? On my machine it is set to /opt/local/include, which is the standard location of MacPorts. Could you try to compile using make in the Terminal? 2011/7/19 Brian Rojas marchin...@gmail.com I installed jasper using Macports and it installed

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Brian Rojas
No i didn't set that, I'll try that. I use Xcode cause thats what I'm used too, can try in make too. Sent from my iPhone On Jul 19, 2011, at 4:55 PM, Michael Chechow minich...@googlemail.com wrote: Is the JASPER_INCLUDE_DIR set correctly within cmake? On my machine it is set to

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Brian Rojas
I set to generate makefiles and the jasper directory appears to be set correctly to the /Library/Frameworks/libjasper.framework/Headers/jasper folder. However now I'm getting the following errors: ld: warning: ignoring file /Library/Frameworks//libz.framework/libz, missing required

Re: [osg-users] building for xcode on os x

2011-07-19 Thread Brian Rojas
Alright I got it working in Xcode now, for the osgdb_jp2 target I added the following to the header search path: /opt/local/include The search path /opt/local/include/jasper was already on the search path from cmake, but the #include's in the jasper.h start with jasper/some_file.h, so it

[osg-users] building for xcode on os x

2011-07-18 Thread Brian Rojas
I'm getting the following errors when trying to build osg for xcode on mac os x. Does anyone have any idea what's going on and how to fix. I'm a newbie and following instructions for osg book and this is what i got: osgdb_jp2