Help - Search - Members - Calendar
Full Version: Emelfm2 0.1.6 And Crosscompiling Questions
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
0xDEADBEEF
Cross compiling is fun!
I wanted to learn how to cross compile stuff.
I downloaded cross sdk.
And this is my first try. emelFM2 - simple GTK file manager. It only requires GTK2. I installed it and it works! Yay!
If anyone is interested please try it. (attached)
Next step is to try some packages dependant on other libraries.
How do I compile multiple libraries and dependency chains? Should I install compiled libs and headers into /opt/cross/arm or somewhere and maintain a little tree there? Or do I need to use pdaxrom build system for that? Inquiring minds need to know!

Now I shall troll freshmeat to see what useful app should I compile next! wink.gif
desertrat
QUOTE(0xDEADBEEF @ Mar 16 2006, 07:23 AM)
Now I shall troll freshmeat to see what useful app should I compile next!  wink.gif

I think there are quite a few outstanding requests for apps that people would like to see compiled. Maybe you should troll this forum first biggrin.gif

Personally, I would like to see a native compilation of OOo 2.x rolleyes.gif

Failing that I would settle for Glom

-- cheers
azalin
QUOTE
Next step is to try some packages dependant on other libraries.
How do I compile multiple libraries and dependency chains? Should I install compiled libs and headers into /opt/cross/arm or somewhere and maintain a little tree there? Or do I need to use pdaxrom build system for that? Inquiring minds need to know!

I would like to know the same, I succesfully compiled a library (OpenAL) than an app (GemRB) needs I am trying to cross compile, but if I make install for the library I have no clue where it puts it and the configure of the app (GemRB) can not find that the library is installed.
I have some .so, .so.0, .so.0.0.0, .lai, .la and .a files (the .0 and .0.0.0 are symlinks of course) after I did a make, I saw /opt/cross/arm/3.4.5-xscale-softvfp/lib exists and a /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/
also where do I need to put the includes? just in
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/ and it should
work? The app depends on SDL, OpenAL, Python and zlib, of which I think zlib and SDL are in the SDK, not sure about python so I need to check but it does exist for the PdaXrom so if not in the SDK then I suppose there is a way to convert the ipk back to a set of libraries and includes and copy those in the proper places so that the configure of the app finds them.
0xDEADBEEF
QUOTE(desertrat @ Mar 16 2006, 12:47 AM)
QUOTE(0xDEADBEEF @ Mar 16 2006, 07:23 AM)
Now I shall troll freshmeat to see what useful app should I compile next!  wink.gif

I think there are quite a few outstanding requests for apps that people would like to see compiled. Maybe you should troll this forum first biggrin.gif

Personally, I would like to see a native compilation of OOo 2.x rolleyes.gif

Failing that I would settle for Glom

-- cheers
*




It seems to require a whole bunch of gnome libraries (probably each one with more dependencies).
Right now I dont know how to compile it.
0xDEADBEEF
QUOTE(azalin @ Mar 16 2006, 01:28 AM)
QUOTE
Next step is to try some packages dependant on other libraries.
How do I compile multiple libraries and dependency chains? Should I install compiled libs and headers into /opt/cross/arm or somewhere and maintain a little tree there? Or do I need to use pdaxrom build system for that? Inquiring minds need to know!

I would like to know the same, I succesfully compiled a library (OpenAL) than an app (GemRB) needs I am trying to cross compile, but if I make install for the library I have no clue where it puts it and the configure of the app (GemRB) can not find that the library is installed.
I have some .so, .so.0, .so.0.0.0, .lai, .la and .a files (the .0 and .0.0.0 are symlinks of course) after I did a make, I saw /opt/cross/arm/3.4.5-xscale-softvfp/lib exists and a /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/
also where do I need to put the includes? just in
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/ and it should
work? The app depends on SDL, OpenAL, Python and zlib, of which I think zlib and SDL are in the SDK, not sure about python so I need to check but it does exist for the PdaXrom so if not in the SDK then I suppose there is a way to convert the ipk back to a set of libraries and includes and copy those in the proper places so that the configure of the app finds them.
*



/opt/cross/arm/3.4.5-xscale-softvfp/lib/ seems to contain i386 libraries, for instance
file libglib-2.0.so.0.800.1
libglib-2.0.so.0.800.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

the other directory
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/

file libglib-2.0.so.0.800.1
libglib-2.0.so.0.800.1: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped

So my bet is that you should put .so and .a files into
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/
and
include files into
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include

if the package used "configure" script
you can try
PREFIX=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/ make install
(examine makefile whether it uses PREFIX variable or something)
humit
Hi, after I compiling new libraries you can manually place the files under
CODE
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/

or giving the command:
CODE
make DESTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/ install

will do the trick smile.gif

-umit

QUOTE(azalin @ Mar 16 2006, 10:28 AM)
QUOTE
Next step is to try some packages dependant on other libraries.
How do I compile multiple libraries and dependency chains? Should I install compiled libs and headers into /opt/cross/arm or somewhere and maintain a little tree there? Or do I need to use pdaxrom build system for that? Inquiring minds need to know!

I would like to know the same, I succesfully compiled a library (OpenAL) than an app (GemRB) needs I am trying to cross compile, but if I make install for the library I have no clue where it puts it and the configure of the app (GemRB) can not find that the library is installed.
I have some .so, .so.0, .so.0.0.0, .lai, .la and .a files (the .0 and .0.0.0 are symlinks of course) after I did a make, I saw /opt/cross/arm/3.4.5-xscale-softvfp/lib exists and a /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/
also where do I need to put the includes? just in
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/ and it should
work? The app depends on SDL, OpenAL, Python and zlib, of which I think zlib and SDL are in the SDK, not sure about python so I need to check but it does exist for the PdaXrom so if not in the SDK then I suppose there is a way to convert the ipk back to a set of libraries and includes and copy those in the proper places so that the configure of the app finds them.
*

0xDEADBEEF
QUOTE(humit @ Mar 16 2006, 02:05 AM)
Hi, after I compiling new libraries you can manually place the files under
CODE
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/

or  giving the command:
CODE
make DESTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/ install

will do the trick smile.gif

-umit


Excellent! Thank you!
azalin
Thank you for the suggestions! In my case something still goes wrong but I suspect that is a different problem.
make DESTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux install
(if I put a slash behind the path I saw some generated paths with two slashes so I removed it) then it installs stuff in /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/usr/local/lib/
so it adds usr/local/lib to the paths, wonder if that is correct. I think I'll try what a manual copy will do after I fixed the following thing:

The error message in the configure script I am getting is this one
checking for alutInit in -lopenal... no
checking for alutInit in -lalut... no
configure: error: *** You need OpenAL (www.openal.org) to compile GemRB
The one I compiled is openal, not alut so perhaps that is the problem, there was not much documentation on the site but these names look similar to OpenGL and Glut, so alut are probably functions that add to base functions of openAL and you need both compiled and installed. Compiling alut gives me some trouble though and I have to look into that.
humit
if you specify --prefix=/usr for ./configure script, and then issue the command:
CODE
make DESTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux install

it should copy the files relative to /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/usr instead of /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/usr/local.

good luck.


QUOTE(azalin @ Mar 16 2006, 12:38 PM)
Thank you for the suggestions! In my case something still goes wrong but I suspect that is a different problem.
make DESTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux install
(if I put a slash behind the path I saw some generated paths with two slashes so I removed it) then it installs stuff in /opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/usr/local/lib/
so it adds usr/local/lib to the paths, wonder if that is correct. I think I'll try what a manual copy will do after I fixed the following thing:

The error message in the configure script I am getting is this one
checking for alutInit in -lopenal... no
checking for alutInit in -lalut... no
configure: error: *** You need OpenAL (www.openal.org) to compile GemRB
The one I compiled is openal, not alut so perhaps that is the problem, there was not much documentation on the site but these names look similar to OpenGL and Glut, so alut are probably functions that add to base functions of openAL and you need both compiled and installed. Compiling alut gives me some trouble though and I have to look into that.
*
Armagon
QUOTE(0xDEADBEEF @ Mar 15 2006, 11:23 PM)
How do I compile multiple libraries and dependency chains? Should I install compiled libs and headers into /opt/cross/arm or somewhere and maintain a little tree there? Or do I need to use pdaxrom build system for that? Inquiring minds need to know!
*


I had to compile libraries when I was doing inkscape (and it was my first cross-compilation, too.) The whole inkscape thread may be useful, but most useful are the build notes I posted when I finally figured out what I needed to do. I later posted a build script, which may prove useful.

Armagon
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.