[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[200] Cross Compile issues
09-29-2011, 09:46 PM
Post: #1
Cross Compile issues
Hi everybody,

I have some source code that I want to cross compile for C200.
In order to doing this, I realized my toolchain following the tutorial made by vaidyasr (and completed by other users) about creating a toolchain from scratch.

After a while, I had a GCC completely functional and my "Hello world" application works fine and I want to thank you for that !!!

As I said at the beginning, I have some source code to cross compile. This code uses libxml2. Under linux, no problem to compile and to execute.

To cross compile, I try to get libxml2.so and headers from C200, copy them on my Linux. But it doesn't work Sad I have the following message : "/path/to/libxml2.so: could not read symbols: File in wrong format"

So, I decided to get the latest release of the libxml2 and to cross compile it with my toolchain. I try a
Code:
export CFLAGS="-EL -march=74kc -fPIC"
export CC=/usr/local/mips-4.3/bin/mips-linux-gnu-gcc
./configure --prefix=/usr/local/mips-4.3 --target=mips-linux-gnu --host=x86_64-unknown-linux-gnu --enable-shared=yes
The libxml2.a is correctly generated, but nothing about libxml2.so Sad

Can you help me about my problem ?
I think my issue is about the configuration of my project.

For information, my project is under an Eclipse IDE with generated Makefile (by eclipse).

Thanks for reading me
Amenophiks

PCH-C200 + Samsung 1To
PS3 160Go
Find all posts by this user
Add Thank You Quote this message in a reply
09-30-2011, 03:24 AM
Post: #2
RE: Cross Compile issues
(09-29-2011 09:46 PM)amenophiks Wrote:  Can you help me about my problem ?
I think my issue is about the configuration of my project.

The LDFLAGS should be same as CFLAGS. Make sure the file format of the generated *.o file should say LSB (little endian) not MSB (big endian).

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-30-2011, 10:00 AM
Post: #3
RE: Cross Compile issues
Thanks for the information. Now my program is generated.Big Grin
Tests will be done tonight.

For the libxml2, shared library is still missing after cross compile step Huh

PCH-C200 + Samsung 1To
PS3 160Go
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [400] Cross compiled aria2c for A-400 with mips-linux-gnu-gcc henryleelee0326 3 200 Yesterday 08:16 AM
Last Post: vaidyasr
  [100/200/300/400] Cross Compile Request Thread - For all NMT Series vaidyasr 30 6,363 05-19-2013 02:59 AM
Last Post: studlee2
  [400] Build your own Cross Compile toolchain - Shortcut vaidyasr 18 1,752 05-13-2013 06:48 PM
Last Post: henryleelee0326
  [200] TP-LINK TL-WN723N v2 Cross Compiled Drivers black_dragon 15 3,304 03-13-2013 11:41 PM
Last Post: Nemesis247
  [200] Compile Kernel linux-2.6.22.19 JerryLutor 4 2,120 03-07-2013 10:01 AM
Last Post: romanr
  [200/300] Cross compile JAVA 6 (to run YAMJ) vaidyasr 35 7,241 12-11-2012 09:39 AM
Last Post: vaidyasr
  [200/300] Build your own Cross Compile toolchain - Shortcut vaidyasr 58 27,057 09-03-2012 07:12 PM
Last Post: kmeleon
  [300] Several Setup Issues i need help with IUnknownI 8 5,104 02-28-2012 09:58 PM
Last Post: chris57
  [200] Cross-compiling CUPS davep27 6 4,730 06-30-2011 09:57 AM
Last Post: shubh16
  [200] Trying to compile, need help with dependencies infinite.recursion 9 1,928 01-20-2011 11:48 PM
Last Post: dc11ab

Forum Jump: