mapnik / mapnik-packaging

DEPRECATED packaging utilities for mapnik dependencies
39 stars 28 forks source link

/bin/sh: ../src/nad2bin: Bad CPU type in executable #133

Open Whirlwind opened 10 years ago

Whirlwind commented 10 years ago

When I build proj4, I got errors:

Making install in man
Making install in man1
make[3]: Nothing to be done for `install-exec-am'.
test -z "/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man1" || ../.././install-sh -c -d "/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man1"
 /usr/bin/install -c -m 644 geod.1 proj.1 cs2cs.1 '/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man1'
Making install in man3
make[3]: Nothing to be done for `install-exec-am'.
test -z "/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man3" || ../.././install-sh -c -d "/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man3"
 /usr/bin/install -c -m 644 pj_init.3 '/Developer/maps/mapnik-packaging/osx/out/build-cpp03-libstdcpp-armv7/share/man/man3'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in nad
make[2]: Nothing to be done for `install-exec-am'.
../src/nad2bin FL < FL.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin MD < MD.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin TN < TN.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin WI < WI.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin WO < WO.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin alaska < alaska.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin conus < conus.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin hawaii < hawaii.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin null < null.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin prvi < prvi.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin stgeorge < stgeorge.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin stlrnc < stlrnc.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
../src/nad2bin stpaul < stpaul.lla
/bin/sh: ../src/nad2bin: Bad CPU type in executable
make[2]: *** [process-nad2bin] Error 126
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

I test in MacOS 10.9 and Xcode 5.1, build for iPhoneOS.

springmeyer commented 10 years ago

This is a bug in proj4's build system. I've been ignoring it. To truly workaround you'd need to run nad2bin on a host system that can run binaries from the command line.