Got it. Thank you both for the quick replies. As soon I get the time
I'll start
over per Harry's instructions and post my results here.

Harry, it sounds like you've been down the same road recently so
you're
probably aware of these issues, but I'll list the things I had to do
differently
from what's described int he wiki on the off chance that someone else
tries
to compile under Snow Leopard before you get a chance to update the
instructions.

The wiki says to do the following to build libpano13:
$ ./bootstrap --with-jpeg=/opt/local/ --with-tiff=/opt/local/ --with-
png=/opt/local/
$ export CFLAGS="-I/opt/local/include -L/opt/local/lib"
$ ./configure
$ make
$ sudo make install

Maybe I should have caught on sooner, but I tried this several times
before
I realized that "bootstrap" runs configure for you so that step is not
only
unnecessary, but fails with a message about not being able to find
libpng.
The steps that worked for me are:
$ export CFLAGS="-I/opt/local/include -L/opt/local/lib"
$ ./bootstrap --with-jpeg=/opt/local/ --with-tiff=/opt/local/ --with-
png=/opt/local/
$ make
$ sudo make install


The wiki says to do the following:
$ cd /opt/local/lib
$ sudo ln -s libboost_thread-mt.a libboost_thread.a
$ sudo ln -s libboost_thread-mt.dylib libboost_thread.dylib
$ cd -

I found this step unnecessary under Snow Leopard. In fact the linker
warned of duplicated libraries when I did this. I removed the links
and
it worked fine with the "-mt" libraries.

Finally, the wiki says to do this before making hugin:
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
export CFLAGS="-I/opt/local/include -L/opt/local/lib"
export CXXFLAGS=$CFLAGS

This failed for me because libpano13 is installed in /usr/local/lib
and
couldn't be found. You can either move it to /opt/local/lib and move
its
headers to /opt/local/include/pano13, or you can change the exports
so the hugin build knows where to look. I realize this may not be a
problem
for everyone depending on how your environment is set up, but what
worked for me is this:
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:/usr/local/lib/
pkgconfig"
export CFLAGS="-I/opt/local/include -I/opt/local/panotools/trunk/
libpano -L/opt/local/lib -L/usr/local/lib"
export CXXFLAGS=$CFLAGS

Note that my panotools svn repo is at "/opt/local/panotools". You
should
change "-I/opt/local/panotools/trunk/libpano" above to match your
installation.

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to