FAQ
Hello,

I am trying to cross compile PHP-5.2.0 for arm linux.

# export CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc
# export AR=/usr/local/arm/3.3.2/bin/arm-linux-ar
# export LD=/usr/local/arm/3.3.2/bin/arm-linux-ld
# export NM=/usr/local/arm/3.3.2/bin/arm-linux-nm
# export RANLIB=/usr/local/arm/3.3.2/bin/arm-linux-ranlib
# export STRIP=/usr/local/arm/3.3.2/bin/arm-linux-strip

# ./configure --host=arm-linux --sysconfdir=/etc/appWeb
--with-exec-dir=/etc/appWeb/exec

Result of this configure is,
.
.
.

Checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.

I have installed libiconv-1.11 on my system. The command 'which iconv' shows
'/usr/local/bin/iconv'.
I have no clue why configure is failing due to missing iconv.


Please throw some light on this issue.
What are all the flags and variables to set to cross compile PHP for arm?
If anyone has tried php on arm linux, please let me know the steps.

Regards,

Search Discussions

  • Antony Dovgal at Jan 20, 2007 at 7:23 pm

    On 01/20/2007 09:52 AM, Kiran Malla wrote:
    Hello,

    I am trying to cross compile PHP-5.2.0 for arm linux.

    # export CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc
    # export AR=/usr/local/arm/3.3.2/bin/arm-linux-ar
    # export LD=/usr/local/arm/3.3.2/bin/arm-linux-ld
    # export NM=/usr/local/arm/3.3.2/bin/arm-linux-nm
    # export RANLIB=/usr/local/arm/3.3.2/bin/arm-linux-ranlib
    # export STRIP=/usr/local/arm/3.3.2/bin/arm-linux-strip

    # ./configure --host=arm-linux --sysconfdir=/etc/appWeb
    --with-exec-dir=/etc/appWeb/exec

    Result of this configure is,
    .
    .
    .

    Checking for iconv support... yes
    checking for iconv... no
    checking for libiconv... no
    checking for libiconv in -liconv... no
    checking for iconv in -liconv... no
    configure: error: Please reinstall the iconv library.

    I have installed libiconv-1.11 on my system. The command 'which iconv' shows
    '/usr/local/bin/iconv'.
    I have no clue why configure is failing due to missing iconv.
    config.log should have some more information.
    Though, I guess the reason is that you're using i386 libiconv in ARM build.

    --
    Wbr,
    Antony Dovgal

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedJan 20, '07 at 6:52a
activeJan 20, '07 at 7:23p
posts2
users2
websitephp.net

2 users in discussion

Antony Dovgal: 1 post Kiran Malla: 1 post

People

Translate

site design / logo © 2022 Grokbase