Re: [hugin-ptx] Hugin Compiling OSX failed

2011-11-29 Thread Harry van der Wolf
2011/11/29 Tim Nugent 

> Looks like your version of boost might be 64 bit, in which case did you
> try without '-arch
> i386', so just:
>
>  export CFLAGS="-I/opt/local/include -L/opt/local/lib"
>
>
I think Tim is right with his assumption.
However, his solution will not solve the problem as the current
wxwindows(=wxmac=wxwidgets) is version 2.8.12 which can't be built as 64bit
on MacOSX. Wxwidgets 2.9.x is the first version  that can be built as 64bit
on OSX (see below for 2.9).
This 2.8 version restriction again means that you need to build hugin as
32bits as well, hence the -arch i386 flag.

You use macports. Normally macports is not built as Universal (= multiple
archs) and will default to the "native"  architecture which is since the
second generation Intels on snow Leopard and newer always 64bit.
To be able to compile Hugin on Intels running SnowLeopard or newer you need
to compile macports ports as universal.
This is automatically done with the switch:

# CPU architectures to use for Universal Binaries (+universal variant)
universal_archs x86_64 i386

This switch should be placed in your /opt/local/etc/macports/macports.conf.

It's in the section:

# CPU architecture to compile for. Defaults to i386 or ppc on Mac OS X 10.5
# and earlier, depending on the CPU type detected at runtime. On Mac OS X
10.6
# the default is x86_64 if the CPU supports it, i386 otherwise.
#build_arch x86_64
#build_arch i386

# CPU architectures to use for Universal Binaries (+universal variant)
universal_archs x86_64 i386


Of course your libs and binaries will be twice as big but applications that
can run in 64bit will do so and the others will run as 32bits.

I will update the wiki. It was quite obvious for me so I didn't even think
of it.
Sorry.


If you are daring enough you could also install the 2.9.x wxwidgets
development version. (sudo port install wxWidgets-devel), which is
currently at 2.9.2. In that case you can try to compile Hugin as 64bit,
which means without the -arch i386 switch. I did not try that yet as the
2.9 did not work with other tools I use.

Harry

-- 
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 hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


Re: [hugin-ptx] Hugin Compiling OSX failed

2011-11-29 Thread Tim Nugent
Looks like your version of boost might be 64 bit, in which case did you try
without '-arch
i386', so just:

 export CFLAGS="-I/opt/local/include -L/opt/local/lib"

On 29 November 2011 11:57, andre  wrote:

> when I am Compiling Hugin in mac OS X(10.6.8) follow the guide(http://
> wiki.panotools.org/Hugin_Compiling_OSX),I encounter a  problem like
> this:
>
> zhang-weilinmatoMac-2:hugin_build zhangweilin$ export CFLAGS="-arch
> i386 -I/opt/local/include -L/opt/local/lib"
> zhang-weilinmatoMac-2:hugin_build zhangweilin$ export CXXFLAGS=$CFLAGS
> zhang-weilinmatoMac-2:hugin_build zhangweilin$ cmake ../hugin
>
> -- ZThread library not found. falling back to included copy
> *** Will install application bundles in /usr/local/Applications, set
> INSTALL_OSX_BUNDLE_DIR to change the location
> -- Using shared internal libraries
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Volumes/扩展盘/hugin_build
> zhang-weilinmatoMac-2:hugin_build zhangweilin$ make clean
>
> zhang-weilinmatoMac-2:hugin_build zhangweilin$ make
>
> ld: warning: ignoring file /opt/local/lib/libboost_system-mt.dylib,
> file was built for unsupported file format which is not the
> architecture being linked (i386)
> ld: warning: ignoring file /opt/local/lib/libboost_signals-mt.dylib,
> file was built for unsupported file format which is not the
> architecture being linked (i386)
> ld: in /opt/local/lib/libsasl2.2.dylib, file was built for unsupported
> file format which is not the architecture being linked (i386) for
> architecture i386
> collect2: ld returned 1 exit status
> make[2]: *** [src/hugin_base/libhuginbase.0.0.dylib] Error 1
> make[1]: *** [src/hugin_base/CMakeFiles/huginbase.dir/all] Error 2
> make: *** [all] Error 2
>
>
> ---
> I used VMware 7.1.3 ,Virtual Machines mac os x 10.6.8 in i386.
> gei me some helps,thanks.
>
> --
> 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 hugin-ptx@googlegroups.com
> To unsubscribe from this group, send email to
> hugin-ptx+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/hugin-ptx
>

-- 
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 hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


[hugin-ptx] Hugin Compiling OSX failed

2011-11-29 Thread andre
when I am Compiling Hugin in mac OS X(10.6.8) follow the guide(http://
wiki.panotools.org/Hugin_Compiling_OSX),I encounter a  problem like
this:

zhang-weilinmatoMac-2:hugin_build zhangweilin$ export CFLAGS="-arch
i386 -I/opt/local/include -L/opt/local/lib"
zhang-weilinmatoMac-2:hugin_build zhangweilin$ export CXXFLAGS=$CFLAGS
zhang-weilinmatoMac-2:hugin_build zhangweilin$ cmake ../hugin

-- ZThread library not found. falling back to included copy
*** Will install application bundles in /usr/local/Applications, set
INSTALL_OSX_BUNDLE_DIR to change the location
-- Using shared internal libraries
-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/扩展盘/hugin_build
zhang-weilinmatoMac-2:hugin_build zhangweilin$ make clean

zhang-weilinmatoMac-2:hugin_build zhangweilin$ make

ld: warning: ignoring file /opt/local/lib/libboost_system-mt.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: ignoring file /opt/local/lib/libboost_signals-mt.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: in /opt/local/lib/libsasl2.2.dylib, file was built for unsupported
file format which is not the architecture being linked (i386) for
architecture i386
collect2: ld returned 1 exit status
make[2]: *** [src/hugin_base/libhuginbase.0.0.dylib] Error 1
make[1]: *** [src/hugin_base/CMakeFiles/huginbase.dir/all] Error 2
make: *** [all] Error 2

---
I used VMware 7.1.3 ,Virtual Machines mac os x 10.6.8 in i386.
gei me some helps,thanks.

-- 
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 hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx