Troubles with compiling hugin on OS X

53 views
Skip to first unread message

David Haberthür

unread,
Jul 23, 2009, 10:54:21 AM7/23/09
to hugi...@googlegroups.com
Hello all.
Since Harry has bad luck with his computer I wanted to give compiling
hugin myself a try (also because I wanted to test Thomas Modes' patch
for "Settings for cp finder"). I'm working on a Macbook Pro with OS X
10.5.7, Xcode 3.1.3 and an updated MacPorts install.

Following http://wiki.panotools.org/Hugin_Compiling_OSX I managed to
get a hugin.app inside "/Users/habi/Dev/hugin_build/src/hugin1/
hugin" (and also inside "/usr/localApplication"), and when I start
this bundle, I'm greeted with a splash-screen mentioning version
0000.00.0.4062. The GUI works fine, fast preview and optimizer do what
I'd expect them to do.

But when I want to stitch a project I'm instantly getting the Error
that nona cannot be found:
---
Checking nona...Checking enblend...Checking enfuse...Checking
hugin_hdrmerge...Checking exiftool...[FAIL]
nona -r ldr -m TIFF_m -o DSC_2740-DSC_2748-planet -i 0 /var/folders/
Vs/Vsei-0ttElKNQ2xgoCYYfU+++TI/-Tmp-/huginpto_BNw6rh
make: [test] Error 127 (ignored)
make: [test] Error 127 (ignored)
make: [test] Error 127 (ignored)
make: [test] Error 127 (ignored)
make: nona: Command not found
make: *** [DSC_2740-DSC_2748-planet0000.tif] Error 127
---

In my "/usr/local/bin" I've got a nona executable which was created on
the correct date. I'm a bit at loss what might cause that problem.

The only problem that I've had while compiling was that I wasn't able
to build libpano13 as described in http://wiki.panotools.org/Hugin_Compiling_OSX#Install_necessary_libraries
I wasn't able to build libpano from SVN, since I couldn't execute the
necessary commands as stated below:
---
$ ./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
---
My Terminal was complaining that It couldn't do any bootstrapping. I
thus - as a desperate measure - tried to install libpano13 using
macports ("sudo port install libpano13"), which seemed to work
flawlessly.

I suppose these errors/problems are the cause that my built hugin
cannot find nona. Is somebody out there that could help me getting a
self-buildt working copy of hugin?

Cheers
Habi

PS: While working on the compilation I did some minor tweaks to the
wiki-page (http://wiki.panotools.org/wiki/index.php?title=Hugin_Compiling_OSX&diff=11639&oldid=11485
), so it might be a non-functional description at the moment!!!

Charlie Reiman

unread,
Jul 23, 2009, 12:44:51 PM7/23/09
to hugi...@googlegroups.com
Did you edit the bootstrap file? I remember having to fix the
libtoolize thing as mentioned in the wiki.

On Thu, Jul 23, 2009 at 7:54 AM, David
Haberthür<david.ha...@gmail.com> wrote:
...

Charlie Reiman

unread,
Jul 23, 2009, 12:58:36 PM7/23/09
to hugi...@googlegroups.com
On Thu, Jul 23, 2009 at 7:54 AM, David
Haberthür<david.ha...@gmail.com> wrote:
> My Terminal was complaining that It couldn't do any bootstrapping. I
> thus - as a desperate measure - tried to install libpano13 using
> macports ("sudo port install libpano13"), which seemed to work
> flawlessly.

Doh. I mailed too soon. There are two problems but only one is noted
in the wiki. You need to change the libtoolize to glibtoolize (as
noted) and you have to change the version check on glibtoolize to
allow for the version that comes with macports (2.2.6). So in
bootstrap near the libtoolize version check, change this:

case $libtool_version in
1.4*|1.5*)
have_libtool=true
;;

to this:

case $libtool_version in
1.4*|1.5*|2.*)
have_libtool=true
;;

David Haberthür

unread,
Jul 23, 2009, 1:39:39 PM7/23/09
to hugi...@googlegroups.com
Hey Charlie

My Terminal was complaining that It couldn't do any bootstrapping. I
thus - as a desperate measure - tried to install libpano13 using
macports ("sudo port install libpano13"), which seemed to work
flawlessly.

Doh. I mailed too soon. There are two problems but only one is noted
in the wiki. You need to change the libtoolize to glibtoolize (as
noted) and you have to change the version check on glibtoolize to
allow for the version that comes with macports (2.2.6). So in
bootstrap near the libtoolize version check, change this:

       case $libtool_version in
           1.4*|1.5*)
               have_libtool=true
               ;;

to this:

       case $libtool_version in
           1.4*|1.5*|2.*)
               have_libtool=true
               ;;

On further inspection I found the bootstrap-file, which I've missed on my prior attempts. The file has been edited according to the wiki, and didnt' need to be changed for the version-check, it's already
---
case $libtool_version in
   1.4*|1.5*|2.0*|2.2*)
have_libtool=true
---
in a fresh checkout of panotools.

Now I'm able to build libpano (bootstrap, export, ./configure, make, sudo make install).

I proceeded from there (including a fresh SVN-checkout of hugin.svn4092, deleting hugin_build and re-cmaking it), but now the resulting hugin.app (in /usr/local/Application) refuses to start. The crash report is:
---
Process:         Hugin [32344]
Path:            /usr/local/Application/Hugin.app/Contents/MacOS/Hugin
Identifier:      net.sourceforge.hugin
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [197]

Interval Since Last Report:          975134 sec
Crashes Since Last Report:           95
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   5

Date/Time:       2009-07-23 19:35:10.475 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  C6D2AC3B-0E87-4B9B-85CF-21A69B272281

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: __ZTIN5boost6detail16thread_data_baseE
  Referenced from: /Users/habi/Dev/hugin_build/src/hugin_base/libhuginbase.0.0.dylib
  Expected in: flat namespace
---
Any pointers?
Might this be related to the problems installing boost on Leopard mentioned in the wiki?

Habi

Charlie Reiman

unread,
Jul 23, 2009, 11:12:09 PM7/23/09
to hugi...@googlegroups.com
Glad to hear they fixed the bootstrap script. It was one of the many
problems I encountered while trying to build a mac version. The
problem you are seeing is probably do to the libboost problem, as
documented in the wiki. I wish I could help more but it has been quite
a while since I tried this build.

David Haberthür

unread,
Jul 25, 2009, 8:58:20 AM7/25/09
to hugi...@googlegroups.com
Hello all.
I've tried again, with a fresh slate. I've deleted everything in ~/Dev, uninstalled all libraries with macport, reinstalled them and followed the wiki.

Glad to hear they fixed the bootstrap script. It was one of the many
problems I encountered while trying to build a mac version. The
problem you are seeing is probably do to the libboost problem, as
documented in the wiki. I wish I could help more but it has been quite
a while since I tried this build.

Nonetheless I still get the same error and a non-functioning (non startable) hugin.app with the error:
---
Process:         Hugin [37128]
Path:            /usr/local/Application/Hugin.app/Contents/MacOS/Hugin
Identifier:      net.sourceforge.hugin
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [197]

Interval Since Last Report:          53390 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   7

Date/Time:       2009-07-25 14:55:06.648 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  C6D2AC3B-0E87-4B9B-85CF-21A69B272281

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: __ZTIN5boost6detail16thread_data_baseE
  Referenced from: /Users/habi/Dev/hugin_build/src/hugin_base/libhuginbase.0.0.dylib
  Expected in: flat namespace
---

By the way, HuginStitchProject and PTBatcherGUI also refuse to start with the same error.

Charlie thinks, that this might be related to the libboost-problem (http://wiki.panotools.org/Hugin_Compiling_OSX#Fix_libboost), does anyone of the successful mac-builders have any pointers on how I could proceed?

Thanks and have a nice weekend
Habi



Reply all
Reply to author
Forward
0 new messages