ZSNES for X64 linux (ubuntu)
Moderator: ZSNES Mods
ZSNES for X64 linux (ubuntu)
Hello Community,
i'm new here and want so say hello and just ask my first question:
is there somewhere a "how to" for compiling the source in a x64 system (ubuntu 6.06 dapper drake) > or does is there some binaries?
i'm a linux newb, have done a lot of work with that terminal to get all stuff working (expect 2 little things, but i need zsnes first *g*).
thanks for help
edit:
well i have compiled it, but it wont start:
if i start it from terminal, the terminal gives out:
Illegal instruction
help me help me!!
i dont want to reinstall my linux again, it took me many hours to config it :-/
i'm new here and want so say hello and just ask my first question:
is there somewhere a "how to" for compiling the source in a x64 system (ubuntu 6.06 dapper drake) > or does is there some binaries?
i'm a linux newb, have done a lot of work with that terminal to get all stuff working (expect 2 little things, but i need zsnes first *g*).
thanks for help
edit:
well i have compiled it, but it wont start:
if i start it from terminal, the terminal gives out:
Illegal instruction
help me help me!!
i dont want to reinstall my linux again, it took me many hours to config it :-/
that really makes me dissappointed
it really sucks, its just because of that Evil Intel!
AMD released 64bit CPUs... what happend? Nothing... only Linux comes out with 64bit Support.
And then:
Intel releases 64bit CPU and suddently a Win64 bit came out, but that really sucked.
Somehow i think intel want to "exhaust" the 32bit CPUs, before they really make a 64 bit support with Microsoft.
the user dont know nothing about 64bit, they are just consumers and dump... only because of they dont know nothing *g*
that sucks that sucks!!!!!
it really sucks, its just because of that Evil Intel!
AMD released 64bit CPUs... what happend? Nothing... only Linux comes out with 64bit Support.
And then:
Intel releases 64bit CPU and suddently a Win64 bit came out, but that really sucked.
Somehow i think intel want to "exhaust" the 32bit CPUs, before they really make a 64 bit support with Microsoft.
the user dont know nothing about 64bit, they are just consumers and dump... only because of they dont know nothing *g*
that sucks that sucks!!!!!
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Well, I got zSNES to compile on my SuSE 10.1 64-bit distribution, but it won't run.
Here's what I did to get it to compile:
export CLFAGS=-m32
export CXXFLAGS=-m32
./configure
make
(Setting CFLAGS and CXXFLAGS each to -m32 tells the gnu compiler to output 32-bit code. NASM only supports 32-bit code, so this should be fine.)
It compiled fine this way, but I get the following error:
*** glibc detected *** ./zsnes: munmap_chunk(): invalid pointer: 0xffffdaa1 ***
...then follows a trace of the memory. It looks like this memory pointer is allocated to the stack:
ffffa000-ffffe000 rwxp ffffa000 00:00 0 [stack]
Now, this same exact error also shows up if I compile on a 32-bit machine and copy it over to my 64-bit machine. I'm at a loss as to the reason.
Here's what I did to get it to compile:
export CLFAGS=-m32
export CXXFLAGS=-m32
./configure
make
(Setting CFLAGS and CXXFLAGS each to -m32 tells the gnu compiler to output 32-bit code. NASM only supports 32-bit code, so this should be fine.)
It compiled fine this way, but I get the following error:
*** glibc detected *** ./zsnes: munmap_chunk(): invalid pointer: 0xffffdaa1 ***
...then follows a trace of the memory. It looks like this memory pointer is allocated to the stack:
ffffa000-ffffe000 rwxp ffffa000 00:00 0 [stack]
Now, this same exact error also shows up if I compile on a 32-bit machine and copy it over to my 64-bit machine. I'm at a loss as to the reason.
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Chalnoth: Use SVN, v1.42 has too many invalid memory things going on.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
Excellent, works great now, thanks!
Edit:
Suggestion: You could add the option -m32 as a default option when compiling ZSNES in Linux. It looks like this option doesn't do anything when compiling on a 32-bit machine, but would allow those of us with 64-bit distributions to compile and run zsnes painlessly.
Edit:
Suggestion: You could add the option -m32 as a default option when compiling ZSNES in Linux. It looks like this option doesn't do anything when compiling on a 32-bit machine, but would allow those of us with 64-bit distributions to compile and run zsnes painlessly.
Hi there,
I have the same/similar problem as described above (zsnes won't run on my SuSE 10.2 x64). But I think its more the way I compile zsnes. I'm using the exports described above also tried it with "linux32 ./configure". But any time I run "make" there are a bunch of "type cast pointer/integer" warnings and NASM plots stuff about "/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: warning: i386 architecture of input file `linux/sdlintrf.o' is incompatible with i386:x86-64 output" (example). I fear I'm simply linking against the wrong libraries but I don't know how to fix it. As far as I know all 32bit libs are installed. The nvidia installer reported that it also installed 32bit opengl libs. There seems to be no "test program" for 32bit SDL (so "./configure --with-sdl-prefix=/usr/lib" fails)
Thanks in advanced.
I have the same/similar problem as described above (zsnes won't run on my SuSE 10.2 x64). But I think its more the way I compile zsnes. I'm using the exports described above also tried it with "linux32 ./configure". But any time I run "make" there are a bunch of "type cast pointer/integer" warnings and NASM plots stuff about "/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: warning: i386 architecture of input file `linux/sdlintrf.o' is incompatible with i386:x86-64 output" (example). I fear I'm simply linking against the wrong libraries but I don't know how to fix it. As far as I know all 32bit libs are installed. The nvidia installer reported that it also installed 32bit opengl libs. There seems to be no "test program" for 32bit SDL (so "./configure --with-sdl-prefix=/usr/lib" fails)
Thanks in advanced.
http://ubuntuforums.org/showthread.php?t=432642 should help. That's how I got it working on my Ubuntu 64. I actually still have to patch the kernel to get my controllers working properly, but ZSNES itself works fine.
v1.51 from the znsnes about btw
v1.51 from the znsnes about btw
-
- New Member
- Posts: 2
- Joined: Sun Apr 29, 2007 4:09 pm
Re: ZSNES for X64 linux (ubuntu)
I've made a tutorial for people using Ubuntu 11.04 (Natty) 64 bit:
https://docs.google.com/document/pub?id ... ors83Cqq5g
https://docs.google.com/document/pub?id ... ors83Cqq5g