Hello again,
Well... I was too enthusiastic too early. I did compile, but when I
run my application it throws a NC_EBADDIM (-46) /* Invalid dimension
id or name */ error.
I figured this had something to do with the linking of the library,
which I failed to mention in my previous e-mail regarding this
subject.
Apple recommends using this to configure for universal binary:
./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
ppc -arch i386" LDFLAGS="-Wl,-syslibroot
/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
But that fails with:
checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details.
config.log:
configure:1570: checking for C compiler default output file name
configure:1573: cc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc
-arch i386 -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc
-arch i386 conftest.c >&5
/usr/bin/ld: -syslibroot: multiply specified
collect2: ld returned 1 exit status
/usr/bin/ld: -syslibroot: multiply specified
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't map file: /Developer/SDKs/MacOSX10.4u.sdk
((os/kern) invalid argument)
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture i386
/usr/bin/ld: can't map file: /Developer/SDKs/MacOSX10.4u.sdk
((os/kern) invalid argument)
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccBE2aE7.out (No such file or directory)
lipo: can't open input file: /var/tmp//ccTMeqMA.out (No such file or directory)
I don't quite understand what the /usr/bin/ld: -syslibroot: multiply
specified error is. Can anyone help me along a bit? Thanks,
Johan