Capn_Fish
Sep 25 2006, 04:45 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.
pgas
Sep 26 2006, 12:39 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
Antikx
Sep 26 2006, 03:07 AM
QUOTE(Capn_Fish @ Sep 25 2006, 06:45 PM)
I am running Ubuntu 6.06.1 with the Beta1 cross compiler. I am trying to compile VisualBoy Advance, .
ohhh.. this sounds interesting.
Capn_Fish
Sep 26 2006, 03:41 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.
pgas
Sep 26 2006, 04:24 AM
you have to tell more about what you do and what error you get
Meanie
Sep 26 2006, 06:47 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
Capn_Fish
Sep 26 2006, 10:19 AM
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.