[ptx] hugin on mac OS X

Bruno Postle bruno at postle.net
Sat Feb 28 16:07:58 GMT 2004


On Fri 27-Feb-2004 at 10:25:46PM +0100, Axel Wernicke wrote:

> >     sudo apt-get install  screen vim mutt wget lynx 
>  
> did that, but screen didn't exist ... 

You really don't need it, it's not related to building hugin.

> >     sudo apt-get install  libjpeg libpng libtiff zlib xfree86-base fftw 

> zlib ?? there are only some perl modules in fink 

I think zlib is required by libpng, so if that installed then it is
probably ok.

> xfree ?? there is already the placeholder for the apple package 
> installed 

The xfree package is huge, but the hugin build only uses the xfree
makedepend tool.  Try typing 'which makedepend' to see if it is in
your $PATH.

> > Panorama Tools 
> > -------------- 

> make - fails gcc didn't resolve the link to the include dir 
> 
> makefile: 	
> -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers   

I'm using a mac that already has the Java SDK installed, but I think
it is a separate download.  If you have a newer version, this line
would need to be edited to suit the new location.

> making PTOptimizer failed with: 
> 
> ld: Undefined symbols: 
> _FSClose 
> _FSRead 
> _FSWrite 
> _FSpCreate 
> _FSpDelete 
> _FSpOpenDF 
> _FSpRename 
> _MyCtoPStr 
> _p2cstr 
> _setLibToResFile 
> _unsetLibToResFile 
> _CFStringCreateWithPascalString 
> _CFURLCreateWithFileSystemPath 
> _CFURLGetFileSystemRepresentation 
> _CopyCStringToPascal 
> _kCFAllocatorDefault 

It looks like old mac specific stuff.  Helmut's library can be built
as __Ansi__ (unix) or __Mac__ (os9) but I could only get it to
compile on OSX by forcing a unix build.

Did you apply the patch attached to this message?:

> > http://www.email-lists.org/pipermail/ptx/2004-February/001374.html 

It makes a library identical to the linux version - At least it does
on my system.

> > Boost 
> > ----- 

> done!  
> didn't get too much errors, but python wasn't found and seems to be 
> important... 
> ... can be fixed by setting export PYTHON_VERSION="2.3" for panther 

I think my version of gcc is too old to build boost properly, but
your's is ok.

> > Compile hugin 
> > ------------- 

> error message: 

>     ---- Compiling PanoToolsInterface.cpp (C++) 
> g++ -I. -I../include -Wall -O2 -I/sw/include 
> -I/usr/local/include/boost-1_31 -I../ -I/usr/local/include   -c -o 
> .obj/PanoToolsInterface.o PanoToolsInterface.cpp 

I don't know what the problem is here since I'm not a C++ expert,
anybody have any ideas?

> In file included from 
> /usr/local/include/boost-1_31/boost/type_traits.hpp:29, 
>                  from 
> /usr/local/include/boost-1_31/boost/detail/numeric_traits.hpp:71, 
>                  from 
> /usr/local/include/boost-1_31/boost/iterator/counting_iterator.hpp:10, 
>                  from 
> /usr/local/include/boost-1_31/boost/pending/integer_range.hpp:15, 
>                  from 
> /usr/local/include/boost-1_31/boost/graph/detail/adjacency_list.hpp:34, 
>                  from 
> /usr/local/include/boost-1_31/boost/graph/adjacency_list.hpp:294, 
>                  from ../include/PT/ImageGraph.h:29, 
>                  from ../include/PT/PTOptimise.h:33, 
>                  from PanoToolsInterface.cpp:29: 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:112:61: 
> macro "check" passed 2 arguments, but takes just 1 


> In file included from 
> /usr/local/include/boost-1_31/boost/type_traits.hpp:29, 
>                  from 
> /usr/local/include/boost-1_31/boost/detail/numeric_traits.hpp:71, 
>                  from 
> /usr/local/include/boost-1_31/boost/iterator/counting_iterator.hpp:10, 
>                  from 
> /usr/local/include/boost-1_31/boost/pending/integer_range.hpp:15, 
>                  from 
> /usr/local/include/boost-1_31/boost/graph/detail/adjacency_list.hpp:34, 
>                  from 
> /usr/local/include/boost-1_31/boost/graph/adjacency_list.hpp:294, 
>                  from ../include/PT/ImageGraph.h:29, 
>                  from ../include/PT/PTOptimise.h:33, 
>                  from PanoToolsInterface.cpp:29: 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:112: 
> error: template 
>    declaration of `yes_type boost::detail::bd_helper<B, D>::check' 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:113:63: 
> macro "check" passed 2 arguments, but takes just 1 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:113: 
> error: declaration 
>    of `boost::type_traits::no_type boost::detail::bd_helper<B, 
> D>::check' 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:112: 
> error: conflicts 
>    with previous declaration `template<class B, class D> template<class 
> T>  
>    yes_type boost::detail::bd_helper<B, D>::check' 
> 
> /usr/local/include/boost-1_31/boost/type_traits/is_base_and_derived.hpp:126:82: 
> macro "check" passed 2 arguments, but takes just 1 
> make[2]: *** [.obj/PanoToolsInterface.o] Error 1 

-- 
Bruno



More information about the ptX mailing list