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 architecture x86_64 in file
Undefined symbols for architecture x86_64:
  "_inflateInit2_", referenced from:
      ZLibCompressor::decompress(std::basic_istream<char, 
std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&)in Compressors.cpp.o
  "_inflate", referenced from:
      ZLibCompressor::decompress(std::basic_istream<char, 
std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&)in Compressors.cpp.o
  "_inflateEnd", referenced from:
      ZLibCompressor::decompress(std::basic_istream<char, 
std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&)in Compressors.cpp.o
  "_deflateInit2_", referenced from:
      ZLibCompressor::compress(std::basic_ostream<char, std::char_traits<char> 
>&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in Compressors.cpp.o
  "_deflate", referenced from:
      ZLibCompressor::compress(std::basic_ostream<char, std::char_traits<char> 
>&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in Compressors.cpp.o
  "_deflateEnd", referenced from:
      ZLibCompressor::compress(std::basic_ostream<char, std::char_traits<char> 
>&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in Compressors.cpp.o

In Xcode I had to set it to build for 32 not 64, how do I do this in make?

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

Reply via email to