[hugin-ptx] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread michael_tn



On Sep 13, 4:00 am, Harry van der Wolf hvdw...@gmail.com wrote:
 2009/9/13 michael_tn michael.d.gallo...@gmail.com

  harry, i'm working through the build process again and some of the
  external app's will not build, boost, for example:

  snip

  not sure what to do with it at this point.

  -- michael

 Hi Michael,

 Note: I have redirected this mail to the hugin-ptx list to draw attention of
 potential other builders.

 Great that you're working on the Universal XCode build. Boost changed
 something going from 1.38 (or 1.39) to 1.40. I just applied some changes to
 trunk and 2009.2.
 In case you are working with 0.8 I've attached both scripts to this mail.
 Please try again.
 Note: do not forget to change the myREPOSITORYDIR variable to what it needs
 to be for you.

 Harry

looks like the boost.sh file got put in with diff syntax in it, i get
this on running the script:

michaeltn:boost_1_40_0 michael$ sh ../scripts/boost.sh
###
### Using 'darwin' toolset.
###
rm -rf bootstrap
mkdir bootstrap
cc -o bootstrap/jam0 command.c compile.c debug.c expand.c glob.c
hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c
make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c
regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c
modules.c strings.c filesys.c builtins.c pwd.c class.c native.c
w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/
property-set.c modules/sequence.c modules/order.c execunix.c
fileunix.c
./bootstrap/jam0 -f build.jam --toolset=darwin --toolset-root= clean
...found 1 target...
...updating 1 target...
[DELETE] clean
...updated 1 target...
./bootstrap/jam0 -f build.jam --toolset=darwin --toolset-root=
...found 47 targets...
...updating 1 target...
[COMPILE] bin.macosxx86/bjam
...updated 1 target...
../scripts/boost.sh: line 99: syntax error near unexpected token `'
../scripts/boost.sh: line 99: ` .mine'

and this is in the script:

 SDKVRSION=$(echo $MACSDKDIR | sed 's/^[^1]*\([[:digit:]]*\.[[:digit:]]
*\).*/\1/')

 .mine
 if [ $CXX =  ]
 then
===
if [ $CXX =  ]
then
 .r4399
  boostTOOLSET=--toolset=darwin

-- michael

--~--~-~--~~~---~--~~
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] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread michael_tn

On Sep 13, 4:00 am, Harry van der Wolf hvdw...@gmail.com wrote:
 2009/9/13 michael_tn michael.d.gallo...@gmail.com

  harry, i'm working through the build process again and some of the
  external app's will not build, boost, for example:

  snip

  not sure what to do with it at this point.

  -- michael


boost built, i edited your boost.sh script to:

if [ $CXX =  ]
then
  boostTOOLSET=--toolset=darwin
  CXX=g++
 else
  echo using darwin : : $CXX ;  ./TEMP-userconf.jam
  boostTOOLSET=--user-config=./TEMP-userconf.jam
 fi

now with jpeg-7 (cannot find 6.2 source), i get this:

michaeltn:jpeg-7 michael$ sh ../scripts/libjpeg.sh
configure: WARNING: If you wanted to set the --build type, don't use --
host.
If a cross compiler is detected then cross compile mode will be
used.
checking build system type... i686-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin8
checking target system type... powerpc-apple-darwin8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-apple-darwin8-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for powerpc-apple-darwin8-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for function prototypes... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking for powerpc-apple-darwin8-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) none
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C...
(cached) -std=gnu99
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking if LD -Wl,--version-script works... no
checking for function prototypes... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for an ANSI C-conforming const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/libexec/gcc/i686-apple-
darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... no
checking for powerpc-apple-darwin8-dumpbin... no
checking for powerpc-apple-darwin8-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
checking the name lister (link -dump -symbols) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands +=... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking for powerpc-apple-darwin8-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for powerpc-apple-darwin8-ar... no
checking for ar... ar
checking for powerpc-apple-darwin8-strip... strip
checking for 

[hugin-ptx] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread Harry van der Wolf
2009/9/14 michael_tn michael.d.gallo...@gmail.com



 now with jpeg-7 (cannot find 6.2 source), i get this:

 libjpeg6 source is here: http://sourceforge.net/projects/libjpeg/files/
Please try to build this one. Hugin is based on libjpeg-6 and so is the
XCode project. (as are enblend/enfuse, autopano-sift, nona, vigra, etc.,
etc. and our MacOSX and your linux).
version 7 is life since 27 june 2009. If it is not compatible with all stuff
within hugin we might get completely other problems.

I just created created a libjpeg-7.sh script for test purposes and added it
to trunk and 2009.2.

For your convenience I also added it to this mail. I will try this evening
with libjpeg7 in hugin.

For the time being: Please stick to the 6b library and the standard
libjpeg.sh script.

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
-~--~~~~--~~--~--~---



libjpeg-7.sh
Description: Bourne shell script


[hugin-ptx] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread michael_tn



On Sep 14, 4:37 am, Harry van der Wolf hvdw...@gmail.com wrote:
 2009/9/14 michael_tn michael.d.gallo...@gmail.com



  now with jpeg-7 (cannot find 6.2 source), i get this:

  libjpeg6 source is here:http://sourceforge.net/projects/libjpeg/files/

 Please try to build this one. Hugin is based on libjpeg-6 and so is the
 XCode project. (as are enblend/enfuse, autopano-sift, nona, vigra, etc.,
 etc. and our MacOSX and your linux).
 version 7 is life since 27 june 2009. If it is not compatible with all stuff
 within hugin we might get completely other problems.

 I just created created a libjpeg-7.sh script for test purposes and added it
 to trunk and 2009.2.

 For your convenience I also added it to this mail. I will try this evening
 with libjpeg7 in hugin.

 For the time being: Please stick to the 6b library and the standard
 libjpeg.sh script.

 Harry

ok, i found the jpeg6b source and it builds with the original script.
i'm as far along as panomatic now. i get this at the end of the build

Making install in panomatic
test -z /Users/michael/development/hugin/mac/ExternalPrograms/
repository/arch/i386/bin || .././install-sh -c -d /Users/michael/
development/hugin/mac/ExternalPrograms/repository/arch/i386/bin
  /usr/bin/install -c 'panomatic' '/Users/michael/development/hugin/
mac/ExternalPrograms/repository/arch/i386/bin/panomatic'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
lipo: can't open input file: /Users/michael/development/hugin/mac/
ExternalPrograms/repository/arch/ppc/bin/panomatic (No such file or
directory)
strip: can't open file: /Users/michael/development/hugin/mac/
ExternalPrograms/repository/bin/panomatic (No such file or directory)

looks like it builds an i386 but not ppc (i'm using the SetEnv-
universal build).

-- michael
--~--~-~--~~~---~--~~
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] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread Harry van der Wolf
2009/9/14 michael_tn michael.d.gallo...@gmail.com



 looks like it builds an i386 but not ppc (i'm using the SetEnv-
 universal build).

 -- michael


The script contains a typo that I just corrected. But that was not enough.
I built the script the last time on tiger. Now I have terrible problems
compiling ppc again.

Please continue. It's not a showstopper if panomatic doesn't compile (yet).

I let you know when I've solved this annoying problem.

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
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread Michael Galloway

On Mon, Sep 14, 2009 at 08:15:35PM +0200, Harry van der Wolf wrote:
 2009/9/14 michael_tn michael.d.gallo...@gmail.com
 
 
 The script contains a typo that I just corrected. But that was not enough.
 I built the script the last time on tiger. Now I have terrible problems
 compiling ppc again.
 
 Please continue. It's not a showstopper if panomatic doesn't compile (yet).
 
 I let you know when I've solved this annoying problem.
 
 Harry


right, will carry on this evening 

-- michael 

--~--~-~--~~~---~--~~
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] Re: Howto build a Hugin bundle on MacOSX

2009-09-14 Thread Michael Galloway

On Mon, Sep 14, 2009 at 08:15:35PM +0200, Harry van der Wolf wrote:
 
 The script contains a typo that I just corrected. But that was not enough.
 I built the script the last time on tiger. Now I have terrible problems
 compiling ppc again.
 
 Please continue. It's not a showstopper if panomatic doesn't compile (yet).
 
 I let you know when I've solved this annoying problem.
 
 Harry


ok, looking through the BuildConfig.xconfig file i see that Image-Exiftools is 
referenced:

// ExifTool
EXIFTOOL_DIR = ../mac/ExternalPrograms/Image-ExifTool-7.84

but there is no script in the scripts directory to build this. 

-- michael 

--~--~-~--~~~---~--~~
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] Re: Howto build a Hugin bundle on MacOSX

2009-09-13 Thread Harry van der Wolf
2009/9/13 michael_tn michael.d.gallo...@gmail.com

 harry, i'm working through the build process again and some of the
 external app's will not build, boost, for example:

 snip


 not sure what to do with it at this point.

 -- michael


Hi Michael,

Note: I have redirected this mail to the hugin-ptx list to draw attention of
potential other builders.

Great that you're working on the Universal XCode build. Boost changed
something going from 1.38 (or 1.39) to 1.40. I just applied some changes to
trunk and 2009.2.
In case you are working with 0.8 I've attached both scripts to this mail.
Please try again.
Note: do not forget to change the myREPOSITORYDIR variable to what it needs
to be for you.

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
-~--~~~~--~~--~--~---

# Configuration for 2 part universal build
# Copyright (c) 2007-2008, Ippei Ukai


# has to be the absolute path from /
myREPOSITORYDIR=/PATH2HUGIN/mac/ExternalPrograms/repository;

# number of jobs that make can use, probably same as the number of CPUs.
#PROCESSNUM=2
PROCESSNUM=$(hostinfo | grep Processors active: | sed 's/^.*://' | wc -w | 
sed 's/[^[:digit:]]//g');



mkdir -p $myREPOSITORYDIR;

export \
 REPOSITORYDIR=$myREPOSITORYDIR \
 ARCHS=ppc i386 \
 \
 ppcTARGET=powerpc-apple-darwin8 \
 ppcOSVERSION=10.4 \
 ppcMACSDKDIR=/Developer/SDKs/MacOSX10.4u.sdk \
 ppcOPTIMIZE=-mcpu=G3 -mtune=G4 -ftree-vectorize \
 ppcCC=gcc-4.0 \
 ppcCXX=g++-4.0 \
 \
 i386TARGET=i386-apple-darwin8 \
 i386OSVERSION=10.4 \
 i386MACSDKDIR=/Developer/SDKs/MacOSX10.4u.sdk \
 i386OPTIMIZE=-march=prescott -mtune=pentium-m -ftree-vectorize \
 i386CC=gcc-4.0 \
 i386CXX=g++-4.0 \
 \
 OTHERARGs= \
 OTHERMAKEARGs=--jobs=$PROCESSNUM;


# Deprecated:
export \
 ppcONLYARG=$ppcOPTIMIZE -mmacosx-version-min=$ppcOSVERSION \
 i386ONLYARG=$i386OPTIMIZE -mmacosx-version-min=$i386OSVERSION;



# cmake settings
export CMAKE_INCLUDE_PATH=$REPOSITORYDIR/include
export CMAKE_LIBRARY_PATH=$REPOSITORYDIR/lib



# $Id: SetEnv-universal.txt 1902 2007-02-04 22:27:47Z ippei $


boost.sh
Description: Bourne shell script