Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Please: a litte help to crosscompile.


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Please: a litte help to crosscompile.

I have installed the "mipsel tuxbox" compile suite for crosscompile
Host system is x86_64 slackware
destination is mipsel32bit "vuduo+"

For example,I want to compile a program, I use this script

Code:
    make clean
    export TOOLCHAIN=/opt/mipsel-tuxbox-linux-gnu
    export PATH="$TOOLCHAIN/bin:$PATH"
    export CC=/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/bin/gcc
    export RANLIB=/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/bin/ranlib
    make

Compile works but executable is..x86_64!

If I use this line give me a lot of error about includes not found

Code:
   make CC=/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/bin/gcc STRIP=/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/bin/strip CPPFLAGS="-I/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/sysroot/usr/include/linux/ -I/opt/mipsel-tuxbox-linux-gnu/mipsel-tuxbox-linux-gnu/sysroot/usr/include/sys/"

What's wrong?


So I try this script and..doesn't work,executable is still x86_64


Code:
make clean
export TOOLCHAIN=/opt/mipsel-tuxbox-linux-gnu
export PATH=$PATH:/opt/mipsel-tuxbox-linux-gnu/libexec/gcc/mipsel-tuxbox-linux-gnu/4.8.1/
CROSS_COMPILE=/opt/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu- make all



Of course cross_compile is present in makefile.

---------- Post updated at 02:23 PM ---------- Previous update was at 02:13 PM ----------

Solution found


A script like this works fine


Code:
make clean
export TOOLCHAIN=/opt/mipsel-tuxbox-linux-gnu
export PATH=$PATH:/opt/mipsel-tuxbox-linux-gnu/libexec/gcc/mipsel-tuxbox-linux-gnu/4.8.1/:/opt/mipsel-tuxbox-linux-gnu/bin
export LDCFLAGS=/opt/mipsel-tuxbox-linux-gnu/lib
export LD_LIBRARY_PATH=/opt/mipsel-tuxbox-linux-gnu/lib
make CC=mipsel-tuxbox-linux-gnu-gcc LD=mipsel-tuxbox-linux-gnu-ld

This User Gave Thanks to Linusolaradm1 For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

1 More Discussions You Might Find Interesting

1. Solaris

How to enable ping?a litte complex

I have two networks 192.168.0.0/24 which is my home network 10.2.0.0/24 which is the second network dedicated to vm's Without firewall I can ping all networks without problems Client System is : Slackware 14.2 with ip 192.168.0.2 Server is OmniOS with ip 10.2.0.1(vnic) and 192.168.0.30... (13 Replies)
Discussion started by: Linusolaradm1
13 Replies

Featured Tech Videos