Ask Your Question
0

Fedora-arm

asked 2011-12-08 13:52:12 -0500

thunderbirdtr gravatar image

Hello ;

I want to compile software for fedora-arm I was installed arm cross compiler

List :

  • arm-gp2x-linux-addr2line arm-gp2x-linux-gccbug
    arm-gp2x-linux-ranlib arm-gp2x-linux-ar
    arm-gp2x-linux-gcov
    arm-gp2x-linux-readelf arm-gp2x-linux-as
    arm-gp2x-linux-gprof
    arm-gp2x-linux-size arm-gp2x-linux-c++filt
    arm-gp2x-linux-ld
    arm-gp2x-linux-strings arm-gp2x-linux-cpp
    arm-gp2x-linux-nm
    arm-gp2x-linux-strip arm-gp2x-linux-gcc
    arm-gp2x-linux-objcopy
    arm-gp2x-linux-gcc-4.1.2 arm-gp2x-linux-objdump

My Questions is ; I have one software in source code , If I write compile codes(./configure , make , make install ) , It will be installed. But I want make for arm . How can I do that ?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-12-08 17:32:19 -0500

shaiton gravatar image

updated 2011-12-08 17:32:48 -0500

Once you get your toolchain, you need to tell the compiler that you are in fact cross compiling by providing the ARCH and CROSS_COMPILE environment variables. Which is probably the following in your case:

$ ARCH=arm
$ CROSS_COMPILE=/usr/lib64/ccache/arm-gp2x-linux-

Then you make should use it. You could even define that in your ~/.bashrc file or pass it to the build commands. Tel us what board are you using.

Please read some doc on the wiki.

edit flag offensive delete link more

Comments

1

BTW, you could use the command which arm-gp2x-linux-gcc in order to know where yours is (lib or lib64).

shaiton gravatar imageshaiton ( 2011-12-08 17:43:40 -0500 )edit

Question Tools

Stats

Asked: 2011-12-08 13:52:12 -0500

Seen: 809 times

Last updated: Dec 08 '11