LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2012, 08:43 AM   #1
xbyte1024
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Cross-compile cherokee for ARM


Hi all.
I have to install cherokee on an ARM machine (mini2440) but the repository for openembedded is very old and I have some problems.
So I want to cross-compile cherokee in my machine.
On cherokee-project site there are instructions how to cross compile for windows.
Based on friendlyARM forum i found and adapted this script:
Code:
#!/bin/bash
# Copyright (c) 2009 Harald Klein <hari@vt100.at>
# Licensed under the terms of the GNU Public license version 3 (see www.fsf.org for details)

# settings
# set -x
DEST=/home/byte/friendly/cherokee

export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_shm_open=no 
export ac_cv_lib_rt_shm_open=no

export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++" 
export AR=${CROSS_COMPILE}"ar" 
export AS=${CROSS_COMPILE}"as" 
export RANLIB=${CROSS_COMPILE}"ranlib" 
export LD=${CROSS_COMPILE}"ld"
export STRIP=${CROSS_COMPILE}"strip"
export PATH=$PATH:/home/byte/friendly/arm-2008q3/bin/
NMAKE=4
pushd .

cd ${DEST}/cherokee-1.2.99b/

echo " ****************** Configuring Cherokee  ********************* "
make distclean
./configure --localstatedir=/var \
            --exec-prefix=${DEST}/output/cherokee \
            --prefix=/home/byte/friendly/cherokee/bui \
            --with-wwwroot=/www \
            --enable-static-module=all \
            --enable-shared=no \
            --enable-static \
            --disable-pam \
            --disable-ipv6 \
            --disable-tls \
            --disable-largefile \
            --host=arm-linux \
            --target=arm-linux \
            LDFLAGS="-s -lcrypt -lpthread -ldl -L/home/byte/friendly/arm-2008q3/arm-none-linux-gnueabi/libc/armv4t/lib"
            CFLAGS="-march=armv4t -mtune=arm920t -Os"

make -j4 LDFLAGS="-all-static" 
make install
popd
But it tries to create /home/cherokee
Why?
To be honest I haven't understood what all paths do.
Anyone can understand what should change to successfully cross-compile the script?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compile GLib for ARM striker07 Programming 4 04-27-2011 07:49 AM
Help to cross compile vlc to arm 4monkeys Linux - Embedded & Single-board computer 3 03-14-2011 05:33 AM
cannot compile cross-gcc for arm ecco_the_dolphin Linux - Software 1 05-24-2010 05:02 PM
Trying to cross-compile mono for ARM hal_2001 Programming 2 05-11-2010 03:18 PM
how to cross compile tslib for arm ? sunr2007 Linux - Embedded & Single-board computer 3 06-29-2009 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration