I've gotten past the CPP fails error by setting it to the correct version (iPhone SDK) and have gotten it to configure correctly:<br><br><ul><li>nano erts/configure</li><li>Search (Ctrl+W for nano) for "checking whether getaddrinfo accepts enough flags" without the quotes and then remove the entire line a couple lines down which contains the command "{ (exit 1); exit 1; }; }" and replace the whole line with a single "}" without the quotes.</li>
</ul><br><br>export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1<br>export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp<br>export LD="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld"<br>
export RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib<br>export AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar<br>export CXXPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp<br>
export CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++<br>export NM=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nm<br><br>export CFLAGS="-arch armv6-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include/ -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk"<br>
export CXXFLAGS=$CFLAGS<br>export LDFLAGS=$CFLAGS<br><br>./configure --host=arm-apple-darwin --target=arm-apple-darwin --prefix=/usr/local/iphone --target=arm-apple-darwin --disable-smp-support<br><br>*********************************************************************<br>
********************** APPLICATIONS DISABLED **********************<br>*********************************************************************<br><br>crypto : No usable OpenSSL found<br>odbc : ODBC library - link check failed<br>
ssh : No usable OpenSSL found<br>ssl : No usable OpenSSL found<br><br>*********************************************************************<br><br><br>But then when I run make, I get pretty far, but I run into an error at:<br>
<br>erl_memory.c:2620: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness<br>/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -arch armv6-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include/ -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/emulator/arm-apple-darwin/opt/smp/ -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/arm-apple-darwin -no-cpp-precomp -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/include -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/include/arm-apple-darwin -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/include/internal -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/include/internal/arm-apple-darwin -o ../obj/arm-apple-darwin/opt/emem/erl_memory_trace_block_table.o -c erl_memory_trace_block_table.c<br>
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -arch armv6-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include/ -I/Users/dawsdesign/Projects/otp_src_R12B-5/erts/emulator/arm-apple-darwin/opt/smp/ -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk -o ../bin/arm-apple-darwin/emem ../obj/arm-apple-darwin/opt/emem/erl_memory.o ../obj/arm-apple-darwin/opt/emem/erl_memory_trace_block_table.o -lutil -ldl -lm -L/Users/dawsdesign/Projects/otp_src_R12B-5/erts/lib/arm-apple-darwin -L/Users/dawsdesign/Projects/otp_src_R12B-5/erts/lib/internal/arm-apple-darwin -lerts_r -lethread -lpthread<br>
ld warning: in /Users/dawsdesign/Projects/otp_src_R12B-5/erts/lib/arm-apple-darwin/liberts_r.a, file is not of required architecture<br>Undefined symbols:<br> "_emtp_get_info", referenced from:<br> _complete_state in erl_memory.o<br>
"_emtp_state_new", referenced from:<br> _new_state in erl_memory.o<br> "_emtp_parse", referenced from:<br> _process_trace in erl_memory.o<br> _process_trace in erl_memory.o<br> "_emtp_error_string", referenced from:<br>
_error_string in erl_memory.o<br> "_emtp_state_destroy", referenced from:<br> _destroy_state in erl_memory.o<br> _new_state in erl_memory.o<br>ld: symbol(s) not found<br>collect2: ld returned 1 exit status<br>
make[4]: *** [../bin/arm-apple-darwin/emem] Error 1<br>make[3]: *** [opt] Error 2<br>make[2]: *** [opt] Error 2<br>make[1]: *** [opt] Error 2<br>make: *** [libs] Error 2<br><br><br>I get even further compiling directly on the iPhone, but when it goes to compile pcre, it runs out of memory and reboots. Anyone have any ideas.<br>
<br><br><div class="gmail_quote">On Thu, Sep 18, 2008 at 4:59 AM, Tony Rogvall <span dir="ltr"><<a href="mailto:tony@rogvall.se">tony@rogvall.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There are alternatives.<br>
<br>
You do not have to go the apple way if you use Pawnage tool. Then you<br>
can build packages<br>
for the Cydia installer.<br>
The cross compiler can be found at Mac Ports. It require that you do<br>
have a copy of the root file system on<br>
the build machine.<br>
<font color="#888888"><br>
/Tony<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On 18 sep 2008, at 02.58, Bob Ippolito wrote:<br>
<br>
> I think it might actually say that you can't have a VM or interpreter<br>
> that will run code over the network, I think you can use one as long<br>
> as the code it's executing is static.<br>
><br>
> (I haven't read the SDK agreement, but I did hear people talking at<br>
> length about iPhone stuff at C4[2] recently)<br>
><br>
> On Wed, Sep 17, 2008 at 11:56 AM, Andy Gross <<a href="mailto:andy@andygross.org">andy@andygross.org</a>><br>
> wrote:<br>
>><br>
>> Uwe,<br>
>><br>
>> Unfortunately, the iPhone SDK Agreement forbids installation of non-<br>
>> Apple VMs or interpreters. :(<br>
>><br>
>> Andy<br>
>><br>
>><br>
>> On Sep 14, 2008, at 12:49 PM, Uwe Dauernheim wrote:<br>
>><br>
>>> Hej Chris,<br>
>>><br>
>>> of course I'll do so, if I can deliver a benefit to the community.<br>
>>><br>
>>> By the way: Anyone expierenced in the error message >>"lib/cpp"<br>
>>> fails<br>
>>> sanity check<<? That is one of my problems at the moment.<br>
>>><br>
>>> Regards,<br>
>>> Uwe<br>
>>><br>
>>> --<br>
>>><br>
>>> Am 14.09.2008 um 18:22 schrieb Chris Anderson:<br>
>>><br>
>>>> On Sun, Sep 14, 2008 at 9:16 AM, Uwe Dauernheim<br>
>>>> <<a href="mailto:uwe@dauernheim.net">uwe@dauernheim.net</a>><br>
>>>> wrote:<br>
>>>>> I'd like to compile Erlang for the iPhone.<br>
>>>><br>
>>>> Uwe,<br>
>>>><br>
>>>> I'm sorry I can't be helpful with an answer to your question, but I<br>
>>>> am<br>
>>>> very interested in your result. Please keep us posted on this<br>
>>>> list if<br>
>>>> you have success!<br>
>>>><br>
>>>> Thanks,<br>
>>>> Chris<br>
>>>><br>
>>>> --<br>
>>>> Chris Anderson<br>
>>>> <a href="http://jchris.mfdz.com" target="_blank">http://jchris.mfdz.com</a><br>
>>><br>
>>> _______________________________________________<br>
>>> erlang-questions mailing list<br>
>>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
>>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
>><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
>><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>