Codelite on Fedora ARM Cortex-A8

Discussion about CodeLite development process and patches
ctrauma
CodeLite Curious
Posts: 5
Joined: Mon May 05, 2014 5:55 pm
Genuine User: Yes
IDE Question: C++
Location: US
Contact:

Codelite on Fedora ARM Cortex-A8

Post by ctrauma »

Has anyone attempted to build CodeLite for ARM? I have a tablet running Fedora that I would like to build CodeLite on, but I see the SDK directory has some architecture specific binaries.I built wxWidgets without a hitch so I'm thinking it can be done. Does anybody have any experience in this area, just looking to get a lay of the land, or be called crazy before digging into it. :D
"Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it." -- Alan Perlis
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by Gibbon1 »

Well getting wxWidgets to compile is a good sign. Makes me happy since I'm interest in running a GUI under embedded Linux on ARM as well.

If you have trouble reporting back perhaps the maintainers can help.
ctrauma
CodeLite Curious
Posts: 5
Joined: Mon May 05, 2014 5:55 pm
Genuine User: Yes
IDE Question: C++
Location: US
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by ctrauma »

The error I am seeing is when is links in the LLDBDebugger..

Code: Select all

~/Projects/codelite
../../sdk/lldb/unix/lib/i386/liblldb.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [lib/LLDBDebugger.so] Error 1
make[1]: *** [LLDBDebugger/CMakeFiles/LLDBDebugger.dir/all] Error 2
make: *** [all] Error 2
because the library has been compiled for i386 I'm assuming..

I'm guessing that I could disable that bit so I'm looking into that now..

I see when running cmake:

Code: Select all

-- LIBLLDB is set to /home/pengpod/Projects/codelite/sdk/lldb/unix/lib/i386/liblldb.so
-- LIBLLDB_INCLUDE is set to /home/pengpod/Projects/codelite/sdk/lldb/unix/include
-- Will install file /home/pengpod/Projects/codelite/sdk/lldb/unix/lib/i386/liblldb.so
-- Processing target codelite-lldb
"Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it." -- Alan Perlis
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by DavidGH »

Hi,
because the library has been compiled for i386 I'm assuming
Yes.
I'm guessing that I could disable that bit so I'm looking into that now..
In case you've not already found it, your cmake options should include:
-DENABLE_LLDB=0

Regards,

David
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by eranif »

You might also want to throw in to your cmake line:

Code: Select all

-DENABLE_CLANG=0
Eran
Make sure you have read the HOW TO POST thread
ctrauma
CodeLite Curious
Posts: 5
Joined: Mon May 05, 2014 5:55 pm
Genuine User: Yes
IDE Question: C++
Location: US
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by ctrauma »

Thanks guys.. yep already made those changes and kicked off a build a few hours ago. I don't have a cross compile toolchain setup yet for ARM, but I will soon, so for now I'm compiling on the device which is SLOOOOOOOOW, only at 40% as we speak will let you know how it works out.. stay tuned..

UPDATE: just made it past the point where it bailed out last time, so fingers crossed. 60% complete :D
"Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it." -- Alan Perlis
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by Gibbon1 »

You might find a pre-built cross compiler from these guys.

https://releases.linaro.org/13.09/compo ... n/binaries
ctrauma
CodeLite Curious
Posts: 5
Joined: Mon May 05, 2014 5:55 pm
Genuine User: Yes
IDE Question: C++
Location: US
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by ctrauma »

Thanks for the tip on the cross compiler, will have a look.. I just created a toolchain for armv7 linux with crosstool-NG and built a simple hello world app to test and it seems to work well, but in the meantime the build on the pengpod finished and it works great.. Thanks for all the help getting this going..
You do not have the required permissions to view the files attached to this post.
"Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it." -- Alan Perlis
ctrauma
CodeLite Curious
Posts: 5
Joined: Mon May 05, 2014 5:55 pm
Genuine User: Yes
IDE Question: C++
Location: US
Contact:

Re: Codelite on Fedora ARM Cortex-A8

Post by ctrauma »

Unfortunately I had to give up on Fedora on the pengpod, there were just too many issues, so I'm giving debian wheezy a go... Figured I'd post some eye candy from that too.. It took a bit of fiddling to get wxWidgets and CodeLite to build, but in the end it is quite usable..

:mrgreen:
codelite_arm_debian_screenshot.png
You do not have the required permissions to view the files attached to this post.
"Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it." -- Alan Perlis
Post Reply