LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2009, 01:02 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
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.
 
Old 12-13-2009, 03:49 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .. .. ..
.....
 
Old 02-18-2010, 03:53 AM   #3
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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
 
Old 02-19-2010, 01:42 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ 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.)
.....
 
Old 02-22-2010, 04:27 AM   #5
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
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
 
Old 02-22-2010, 10:59 PM   #6
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
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.
 
  


Reply



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
Compile the linux2.6.14.1 for arm must ues the arm-linux-gcc-3.4.4? frankyue Linux - Embedded & Single-board computer 2 12-20-2008 07:28 AM
need arm-linux-gcc anshuman84 Linux - Software 1 05-03-2008 03:32 AM
need arm-linux-gcc anshuman84 Linux - Newbie 2 05-03-2008 12:10 AM
how do i install arm-linux-gcc swapnilborg Linux - Newbie 2 12-15-2005 11:16 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:52 AM.

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