Hello,
Please , I would like to find out if I could implement SDL on Sparc
architecture (Linux)?
Based on the SDL_platform.h file, it was said one has to define the
architecture which one is porting to. Done that, but but don’t seem to know
what to do next. Would appreciate some guidance.
I am doing the above, because I tried to make SDL libraries that would be
compatible with sparc-linux-gcc (a cross compiler), by using the commands
below:
./configure --host=sparc-linux CC=sparc-linux-gcc
(this was before I edited SDL_platform.h)
and everything was goin well, but then I got this error (had to do with
dmaaudio.c)
Did that, but still got the same output as before.
Now upon checking the config.log file. I found out that I’m having problems
with a conftest.c file.
Are these linked (asm in dmaaudio.c and contest)?
I get theses errors when I try to ‘make all’
Did some research on ‘conftest.c’, apparently it’s a source that gets
created temporary for testing purpose. So why then am I getting an error
relating to it.
To show specifically what I found in config.all
configure:3120: checking how to run the C preprocessor
configure:3160: sparc-linux-gcc -E conftest.c
configure:3166: $? = 0
configure:3197: sparc-linux-gcc -E conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3203: $? = 1
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| / end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3236: result: sparc-linux-gcc -E
I obtained this (which is different to what you had in your post)
–enable-assembly Enable assembly routines [default=yes]
–enable-nasm use nasm assembly blitters on x86 [default=yes]
–enable-altivec use altivec assembly blitters on PPC [default=yes]
they were only what I could disable
–MikeOn Sun, Feb 22, 2009 at 3:37 PM, Mike Mike <@Mike_Mike> wrote:
Did that, but still got the same output as before.
Now upon checking the config.log file. I found out that I’m having
problems with a conftest.c file.
Are these linked (asm in dmaaudio.c and contest)?
I get theses errors when I try to ‘make all’
Did some research on ‘conftest.c’, apparently it’s a source that gets
created temporary for testing purpose. So why then am I getting an error
relating to it.
To show specifically what I found in config.all
configure:3120: checking how to run the C preprocessor
configure:3160: sparc-linux-gcc -E conftest.c
configure:3166: $? = 0
configure:3197: sparc-linux-gcc -E conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3203: $? = 1
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| / end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3236: result: sparc-linux-gcc -E
What version of SDL are you trying to build?On Sun, Feb 22, 2009 at 10:53 AM, Mike Mike wrote:
I obtained this (which is different to what you had in your post)
–enable-assembly Enable assembly routines [default=yes]
–enable-nasm use nasm assembly blitters on x86 [default=yes]
–enable-altivec use altivec assembly blitters on PPC [default=yes]
Ah yes, I was speaking from a perspective of SDL 1.3 when I told you
which architecture-dependent options to switch off.On Sun, Feb 22, 2009 at 1:07 PM, Mike Mike wrote:
The version I have is SDL-1.2.13
I’m trying to cross-compile from i386 (or 686) to sparc-linux
Ah ok. So, would you say you know what’s wrong?
And, what other files or libraries do you think I would need if I want to
cross-compile to LEON Architecture (Sparc)?>
My question is, ‘Are these the libraries SDLgears need, so it could run?’
It’s all the libraries that SDLgears needs to run on this system,
directly or indirectly.
I’m saying this because, if they are the libraries it needs, would that mean
I have to cross-compile them all to Sparc version, right?
Many of those will be provided by the target system, such as the
libpthread, and quite importantly (because it probably has
hardware-specific bits in it), libGL. Many of those libraries are
dependencies of libX11 or libGL, which are themselves pulled in by
libSDL.
Ideally, all those (except possibly libSDL) are included in the
cross-compiler kit. If not, then it gets tricky…On Tue, Mar 10, 2009 at 6:21 AM, Mike Mike wrote:
??? libc.so.6 => /lib/libc.so.6 (0x00101000)
This one is the C standard library
??? libm.so.6 => /lib/libm.so.6 (0x00dd2000)
This one contains math functinos
??? libdl.so.2 => /lib/libdl.so.2 (0x0026c000)
This is part of the dynamic linker
You can see how probably all of these libs are things that will be
available on your target system already, unless you’re doing something really exotic.– http://codebad.com/