[erlang-questions] ei for Apple's iOS?

Lukas Larsson <>
Tue May 1 11:28:59 CEST 2012


Hi,

You seem to not have exported ERL_TOP before running make. Try

export ERL_TOP=`pwd` && make

Lukas

On Mon, Apr 30, 2012 at 9:38 PM, Aaron Hillegass <> wrote:
> I'm writing a client that talks to an Erlang server.   The client runs on iOS.
>
> I was thinking it would be nice to use the ei_encode* functions to make the data passing back and forth more Erlang-friendly.
>
> My question: Has anyone compiled ei as a static library for iOS applications?
>
> I have tried: downloading the source to a Mac with the iOS SDK, cd to the erl_interface directory, configure, and make.  The output from that is attached.  Any suggestions are appreciated.
>
> --
>
> Aaron Hillegass
> Big Nerd Ranch, Inc.
>
> $ ./configure CPP="cpp" CXXCPP="cpp" CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2 CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 LD=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld CFLAGS="-O -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" CXXFLAGS="-O -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" --disable-dependency-tracking --host=arm-apple-darwin10 LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as LIBTOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
> 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... i386-apple-darwin11.3.0
> checking host system type... arm-apple-darwin10
> checking for arm-apple-darwin10-gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 accepts -g... yes
> checking for /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 option to accept ANSI C... none needed
> checking how to run the C preprocessor... cpp
> checking for arm-apple-darwin10-ranlib... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
> checking for ld.sh... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
> checking for arm-apple-darwin10-ld... (cached) /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
> checking for egrep... 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 short... yes
> checking size of short... 2
> checking for int... yes
> checking size of int... 4
> checking for long... yes
> checking size of long... 4
> checking for void *... yes
> checking size of void *... 4
> checking for long long... yes
> checking size of long long... 8
> checking for arm-apple-darwin10-ar... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
> checking for a BSD-compatible install... /usr/bin/install -c
> checking how to create a directory including parents... /usr/bin/install -c -d
> checking for gethostbyname in -lnsl... no
> checking for getpeername in -lsocket... no
> checking for ANSI C header files... (cached) yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking arpa/inet.h usability... yes
> checking arpa/inet.h presence... yes
> checking for arpa/inet.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking malloc.h usability... no
> checking malloc.h presence... no
> checking for malloc.h... no
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking stddef.h usability... yes
> checking stddef.h presence... yes
> checking for stddef.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking sys/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for unistd.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for uid_t in sys/types.h... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for socklen_t usability... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 needs -traditional... no
> checking for working memcmp... no
> checking for dup2... yes
> checking for gethostbyaddr... yes
> checking for gethostbyname... yes
> checking for gethostbyaddr_r... no
> checking for gethostbyname_r... no
> checking for gethostname... yes
> checking for writev... yes
> checking for gethrtime... no
> checking for gettimeofday... yes
> checking for inet_ntoa... yes
> checking for memchr... yes
> checking for memmove... yes
> checking for memset... yes
> checking for select... yes
> checking for socket... yes
> checking for strchr... yes
> checking for strerror... yes
> checking for strrchr... yes
> checking for strstr... yes
> checking for uname... yes
> checking for res_gethostbyname... no
> checking for res_gethostbyname in -lresolv... no
> checking for clock_gettime... no
> checking for clock_gettime in -lrt... no
> checking for mixed cygwin or msys and native VC++ environment... no
> checking for mixed cygwin and native MinGW environment... no
> checking if we mix cygwin with any native compiler... no
> checking if we mix msys with another native compiler... no
> checking for native win32 threads... no
> checking for pthread_create in -lpthread... yes
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking pthread/mit/pthread.h usability... no
> checking pthread/mit/pthread.h presence... no
> checking for pthread/mit/pthread.h... no
> configure: creating ./config.status
> config.status: creating src/arm-apple-darwin10/Makefile
> config.status: creating src/arm-apple-darwin10/eidefs.mk
> config.status: creating src/arm-apple-darwin10/config.h
> config.status: src/arm-apple-darwin10/config.h is unchanged
>
> $ make
> Makefile:19: /make/target.mk: No such file or directory
> Makefile:20: /make//otp.mk: No such file or directory
> Makefile:32: /make/otp_subdir.mk: No such file or directory
> make: *** No rule to make target `/make/otp_subdir.mk'.  Stop.
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list