How about using "sudo" to avoid the permission problem? 2011/7/20 Brian Rojas <[email protected]>
> 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 needs the directory above to find the jasper > directory > > However when I build the install target I get the following error: > > /Applications/CMake\ 2.8-5.app/Contents/bin/cmake -DBUILD_TYPE=Debug -P > cmake_install.cmake > -- Install configuration: "Debug" > -- Installing: /usr/local/lib/pkgconfig/openscenegraph.pc > CMake Error at cmake_install.cmake:31 (FILE): > file INSTALL cannot copy file > > "/Users/brojas/Desktop/OpenSceneGraph-3.0.0_build_xcode/packaging/pkgconfig/openscenegraph.pc" > to "/usr/local/lib/pkgconfig/openscenegraph.pc". > > > make: *** [install_buildpart_0] Error 1 > Command /bin/sh failed with exit code 2 > > > > Looks like it maybe a permissions thing where it can't copy to /usr/local > > On Jul 19, 2011, at 4:55 PM, Michael Chechow wrote: > > 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 <[email protected]> > >> 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 the errors still shows up, do you know of anything else i >> would need to do? >> >> The errors are below: >> osgdb_jp2 >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:20:31: >> error: jasper/jasper.h: No such file or directory >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: 'jas_stream_t' was not declared in this scope >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: 'out' was not declared in this scope >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: 'jas_image_t' was not declared in this scope >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: 'image' was not declared in this scope >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: expected primary-expression before 'int' >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> error: initializer expression list treated as compound expression >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:33: >> error: expected ',' or ';' before '{' token >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:522: >> error: expected `}' at end of input >> >> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >> warning: 'putdata' defined but not used >> >> >> On Jul 19, 2011, at 1:09 AM, Michael Chechow wrote: >> >> 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 <[email protected]> >> >>> 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 >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:20:31: >>> error: jasper/jasper.h: No such file or directory >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: 'jas_stream_t' was not declared in this scope >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: 'out' was not declared in this scope >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: 'jas_image_t' was not declared in this scope >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: 'image' was not declared in this scope >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: expected primary-expression before 'int' >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> error: initializer expression list treated as compound expression >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:33: >>> error: expected ',' or ';' before '{' token >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:522: >>> error: expected `}' at end of input >>> >>> /Users/brojas/Desktop/OpenSceneGraph-3.0.0/src/osgPlugins/jp2/ReaderWriterJP2.cpp:32: >>> warning: 'putdata' defined but not used >>> >>> >>> >>> >>> Thanks in advance >>> _______________________________________________ >>> osg-users mailing list >>> [email protected] >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

