OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on September 25, 2006, 08:45:04 pm

Title: How Do I Add Libs To The Cross Compiler?
Post by: Capn_Fish on September 25, 2006, 08:45:04 pm
I am running Ubuntu 6.06.1 with the Beta1 cross compiler. I am trying to compile VisualBoy Advance, but it wants libpng. I have it installed, but the compiler can't find it. How do I make it recognize this library?

Thanks.
Title: How Do I Add Libs To The Cross Compiler?
Post by: pgas on September 26, 2006, 04:39:26 am
change the prefix during configure so that it installs the libs in /opt/cross.../
or
move the headers and .so files manually together with the other libs and headers
Title: How Do I Add Libs To The Cross Compiler?
Post by: Antikx on September 26, 2006, 07:07:43 am
Quote
I am running Ubuntu 6.06.1 with the Beta1 cross compiler. I am trying to compile VisualBoy Advance, .
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142299\"][{POST_SNAPBACK}][/a][/div]
ohhh.. this sounds interesting.
Title: How Do I Add Libs To The Cross Compiler?
Post by: Capn_Fish on September 26, 2006, 07:41:44 am
I copied four or so files like "libxxx.so.x.x.x", three of which were symbolic links, and it till didn't work. Do I have to delete them from /usr/lib as well or edit any files?

Thanks.
Title: How Do I Add Libs To The Cross Compiler?
Post by: pgas on September 26, 2006, 08:24:45 am
you have to tell more about what you do and what error you get
Title: How Do I Add Libs To The Cross Compiler?
Post by: Meanie on September 26, 2006, 10:47:02 am
in some cases you will need to compile two versions of the library, one native library (for the host architecture) and one cross compiled for the zaurus. the cross compiled libraries need to go under /opt/cross/.../armv5tel-linux/lib.
you also need to make sure you put the .pc file for your libary into the pkgconfig directory and/or the -config files under the bin directory of native/cross environment with the references to where to find the libraries updated to refer to the right location
Title: How Do I Add Libs To The Cross Compiler?
Post by: Capn_Fish on September 26, 2006, 02:19:30 pm
pgas: I simply (as root) do a #CC=armv5tel-cacko-linux-gcc ./configure --host=armv5tel-cacko-linux --build=i686-linux --disable-sound", and I get

"checking for png_create_write_struct in -lpng... no
configure: error: *** Cannot compile without libpng."

Meanie: Could you explain what you mean? I take it I have to copy the libs from my Zaurus to the .../lib directory of the cross compiler as well as edit some files. Could you walk me through that?

Thanks