I was able to cross compile the library using another post on this forum (http://www.friendlyarm.net/forum/topic/932). I have a question to ask. Is the library needed just on the host linux computer at the time of compilation or it has to be installed on the mini 2440 too? If it needs to be installed on mini2440 I guess I will have to copy couple of files on 2440. If I am correct what all files I will have to copy to mini 2440? Thanks in advance!
Install SDL on mini2440
Any cross-compiled libraries required by an application running on the target will need the cross-compiled libraries on the target. They won't run on the host. Maybe, you can use NFS or tftp to access cross-compiled libraries that are on the host or some other media . . . but I've never done it. I'd start off placing all cross-compiled libraries on the target where they are expected to be found.
Thanks for the info. So when I compiled SDL it created 2 symbolic links libSDL.so and libSDL-1.2.so.0 which point to libSDL-1.2.so.0.11.4. Now I have also heard that there is another dev library. I did not find it getting created. Is it expected to get created? Is it required? What is the difference between those 2 libraries? Thanks in advance!
dev libraries . . . from what I understand, sometimes to have to get some files out of a dev library. I never have had to, maybe if you are doing "bleeding edge" development or bug fixing. I never have had to copy include files. I believe they are only used to build your target image.
Libraries intended to only make your application work at runtime can be aggressively "stripped" to save space on the target's root filesystem. But you can't use these stripped for development anymore (due to the linker ld needs some of the information stripped away from the files in this case). So, our buildsystem PTXdist uses a different way: all libraries gets stripped and copied to the target's root filesystem, but a full blown copy is always kept on the host for further development and to make the linker happy. The package's include files are only required to compile/link other applications against this package's library. They are not required at runtime on the target.
Hi Gaurav and others, I am new to mini2440, trying to design a media player of my own. In the process, I came to know I need to install SDL for this. I did compile SDL(using http://hcg888.blogspot.in/2008/11/sdl-12-cross-compile-for-arm9.html) and wondering how to proceed from now on. Is it enough if I compile the libSDL*.so files to /lib on target or I need anything more? Next, when I proceed for compiling an application with SDL, should it be dynamic or static linking? Thanks in advance! Sreekanth