LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to configuring Code-Blocks IDE for arm-linux-gcc (https://www.linuxquestions.org/questions/programming-9/how-to-configuring-code-blocks-ide-for-arm-linux-gcc-775276/)

golden_boy615 12-13-2009 01:02 AM

how to configuring Code-Blocks IDE for arm-linux-gcc
 
hello every body
does any body know how to configuring code-block IDE for arm linux compiler(arm-linux-gcc).
or refrence me very quick how to or reference.

knudfl 12-13-2009 03:49 PM

Codeblocks is probably the easy part ..
./configure CC=arm-linux-gcc CXX=arm-linux-c++

The real hard? work is :
1) Codeblock depends on wxGTK2.8 : Must be cross compiled.
2) But to build wxGTK2.8 ( wx widgets ), all wxGTK2.8's
twenty dependencies must be present as cross compiled
libraries.

Example dependency list, libwxgtk2.8-0 :
http://packages.debian.org/lenny/libwxgtk2.8-0
As you can see, libwxgtk2.8-0 is available for 'arm'.
And may be the most libs too. Check it yourself, please.

libwxgtk2.8-dev :
http://packages.debian.org/lenny/libwxgtk2.8-dev
.....
Good luck .. .. :) ..
.....

ambitious 02-18-2010 03:53 AM

Quote:

Originally Posted by knudfl (Post 3790144)
Codeblocks is probably the easy part ..
./configure CC=arm-linux-gcc CXX=arm-linux-c++

The real hard? work is :
1) Codeblock depends on wxGTK2.8 : Must be cross compiled.
2) But to build wxGTK2.8 ( wx widgets ), all wxGTK2.8's
twenty dependencies must be present as cross compiled
libraries.

Could you guide me to know how i can cross-compile this libs to enable me to cross-compile my design application to run under Linux/ARM Arch.

Thanks

knudfl 02-19-2010 01:42 AM

@ ambitious : Welcome to LQ.

There are two ways to do "arm" compiling.
A) Buy or build an arm based developing computer.

B) Learn to cross compile :
Start with LFS, "Linux From Scratch" to know Linux files.
http://www.linuxfromscratch.org/

Move on to "Cross Linux From Scratch" , where I guess
using a 'chroot environment' is described too.
.....
.....

A third way is of course to use binary packages :
http://packages.debian.org/lenny/python-wxgtk2.8
http://packages.debian.org/lenny/libwxgtk2.8-0
http://packages.debian.org/lenny/libwxgtk2.8-dev
.. and choose the "arm" link ( bottom of page.)
.....

ambitious 02-22-2010 04:27 AM

Thanks knudfl for your help,
But regarding to the 3rd option ( using binary packages ),
do you mean that i need to download this package for i386 and cross compiling this package for ARM of not?
Or download the Arm package , but in case if i downloaded the arm pachae it will not be compiled in my Linux PC because it is intel ARCH.
So could you describe what you want?

Thanks again for your help
M.Hmaed

golden_boy615 02-22-2010 10:59 PM

Quote:

Codeblocks is probably the easy part ..
./configure CC=arm-linux-gcc CXX=arm-linux-c++

The real hard? work is :
1) Codeblock depends on wxGTK2.8 : Must be cross compiled.
2) But to build wxGTK2.8 ( wx widgets ), all wxGTK2.8's
twenty dependencies must be present as cross compiled
libraries.
sorry I think you did not understand me I didn't mean compiling codeblocks with arm-linux compiler I meant configuring codeblocks for arm linux compiler to compile my C source files of arm embeded linux that I want to write for arm linux.


All times are GMT -5. The time now is 11:22 PM.