SDL and SMPEG

Juha Haapakorpi,

Hi, my name is Mark Unemori and I am a member of a clinic team at Harvey
Mudd College. I found an article you had written about trouble with pixel
format, and noticed that you had successfully cross-compiled SDL and
SMPEG on an ARM based system. Our clinic project involves running taking
in video from a NTSC source and displaying it on an ARM based system
called Bitsy. It runs Linux and Microwindows, but we are having trouble
actually cross-compiling SDL and SMPEG.

I already contacted Greg Haerr, the person who manages microwindows.org,
and he pointed me to a version of SDL and SMPEG that he modified to use
with Microwindows and Nano-X but it compiles off a regular c or c++
compiler. He included a few different script files but there is something
missing or wrong because after running ./configure the compiler is not
identified as a cross-compiler and after running make it simply gives us
errors regarding some function fbinfo. The cross compiler we are
attempting to run is arm-linux.

I have tried using the script file you have posted on the web. I noticed
that you have referenced /atools/local/bin/arm-linux in several places. I
am not entirely sure why you had done so, and this path would not be the
same on my computer, so I omitted this path from the rest of the
scripting and the errors from ./configure went away. Unfortunately the
program still has other problems, and we’re still not sure how to tell if
it has properly cross-compiled in the first place since we can’t run the
program.

We also are going to have to target the USB as the source, so if you have
any info about changing the video source, that would be a great help.

If you can lend your assistance we would be eternally grateful.-------------------
Mark Unemori
Harvey Mudd College
(909)607-4912

> program still has other problems, and we're still not sure how to tell if > it has properly cross-compiled in the first place since we can't run the > program.

You can use “file” to see if it built. For example:

$ file xsc

xsc: ELF 32-bit LSB executable, Advanced RISC Machines ARM, version 1,
dynamically linked (uses shared libs), stripped

I can’t help much more, though… Good luck!

-bill!On Thu, Apr 25, 2002 at 02:23:35AM -0700, Mark J. Unemori wrote:

I have tried using the script file you have posted on the web. I noticed
that you have referenced /atools/local/bin/arm-linux in several places. I
am not entirely sure why you had done so, and this path would not be the
same on my computer, so I omitted this path from the rest of the
scripting and the errors from ./configure went away. Unfortunately the
program still has other problems, and we’re still not sure how to tell if
it has properly cross-compiled in the first place since we can’t run the
program.

It sounds like you need to replace the /atools/… path with the path
to your cross-compiler toolchain in the script, otherwise you’ll be
building it for the host system, which seems to be what is happening.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment