LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2004, 01:58 PM   #1
NoS Sr50
Member
 
Registered: Sep 2004
Distribution: Mandrake 10.0 Download
Posts: 66

Rep: Reputation: 15
How do I compile this? or anything really


Well I download Zsnes for linux and it needs me to compile it, heres something from the readme.

Code:
Linux port:
I assume the standard development tools are installed (gcc, make, ...)
You'll also need : 
- SDL (Simple DirectMedia Layer) : check www.libsdl.org to grab SDL 1.2.0 or
                                   later. If you are using rpm packages, don't
                                   forget the -devel package.
- NASM v0.98 : http://www.kernel.org/pub/software/devel/nasm/
                   the version found on http://nasm.2y.net/ DOES NOT WORK
                   with zsnes sources. When you type nasm -r, you must get
                   'NASM version 0.98' and not 'NASM version 0.98.08' if you
                   have the correct version
- zlib : http://www.info-zip.org/pub/infozip/zlib/
                                   it is probably already installed on your 
                                   system, maybe you are just missing the 
                                   development headers. Check in the 
                                   packages available with your distribution 
                                   or go to the page above
- libpng : http://www.libpng.org/
                    You might also need libpng, ZSNES will compile without
                    PNG support but I have found doing so to make ZSNES
                    unstable for some weird reason.  If you don't have
                    libpng, either get it and install it or pass the
                    --without-png option to the 'configure' script.

Then to build the executable, go to the src directory and type:
./configure && gmake && gmake install

Note: you require root to install zsnes to the the default (/usr/local/*) 
directory

Also Note: libpng (optional) needs to be recent, or zsnes will not use it 

You may also want to compress the zsnes executable with upx
(http://upx.sourceforge.net), it will divide its size by 10.
Can anyone walk me through this? Im running mandrake 10.0 and im pretty new to this.
 
Old 09-05-2004, 02:01 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Then to build the executable, go to the src directory and type:
./configure && gmake && gmake install
I assume you have untar and unzipped the the downloaded file. Now you have to go the the directory that was created after you untar and unzipped. and then you do as told in readme file i.e.

./configure && gmake && gmake install

As said in the readme, this will install the executable binary in /usr/local folder.
 
Old 09-05-2004, 02:03 PM   #3
NoS Sr50
Member
 
Registered: Sep 2004
Distribution: Mandrake 10.0 Download
Posts: 66

Original Poster
Rep: Reputation: 15
And this is done in the terminal?
 
Old 09-05-2004, 02:15 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi there NoS Sr50!

Take a look into this thread to understand better how to install/remove programs in Linux, be it source or rpm:

http://www.linuxquestions.org/questi...threadid=45094

I have to tell you though, that zsnes is quite temperamental to compile... seems like it compiles or not randomly... specially in a rpm-based distribution as Mandrake. If I was you, I'd get a pre-compiled rpm here:

http://rpm.pbone.net/index.php3/stat.../idg/Emulators

and save yourself a good amount of time to actually enjoy playing great Snes games as Megaman X ratter then compiling that emulator

The choice is yours young padawan...

Regards!
 
Old 09-05-2004, 02:16 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hmmm ...

In the GUI - how would you do that?
Enter text into an editor?


Cheers,
Tink
 
Old 09-05-2004, 02:30 PM   #6
NoS Sr50
Member
 
Registered: Sep 2004
Distribution: Mandrake 10.0 Download
Posts: 66

Original Poster
Rep: Reputation: 15
Well you saved me time with zsnes but I have another game I must compile(zdaemon), and I would really like to know how to compile incase I need to do this in the future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 04:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 01:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM
How do I compile? icecream33 Programming 2 10-07-2002 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration