LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-14-2016, 03:24 AM   #1
EVSpl
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Rep: Reputation: Disabled
Question Help: Installing MegaMario as a complete newbie


Hello,

after long trial and error I decided to register here and try to solve my problem/questions with the community.

I'm trying to install Megamario to my Linux laptop.
I downloaded the ZIP.file and unpacked it.
There is a "linux.txt" and it reads:
To play under Linux you have to run the makefile located in the Megamario directory, just type :

> make PREFIX=/usr/local
> make PREFIX=/usr/local install


The libraries

SDL
SDL_image
SDL_mixer
SDL_ttf

need to be installed!!!


I don't know what to do now.
How do I run the makefile and how do I install the libraries?

It would be great if you guys could help me.
Thanks in advance

EVSpl
 
Old 11-14-2016, 09:00 PM   #2
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,690

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
install your developer packages for each of them
SDL
SDL_image
SDL_mixer
SDL_ttf

usually it is dev or devel at the end of the file in most Linux repos then if there is a config file in that directory,
Code:
./configure -> make -> sudo make install
make PREFIX=/usr/local

that is where it will install it to.

Last edited by BW-userx; 11-15-2016 at 07:11 AM.
 
Old 11-14-2016, 09:00 PM   #3
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,690

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
install your developer packages for each of them SDL
SDL_image
SDL_mixer
SDL_ttf

usally it is dev or devel in most Linux repos then if there is a config file in that directory,
Code:
./configure -> make -> sudo make install
make PREFIX=/usr/local

that is where it will install it to.
 
Old 11-15-2016, 04:02 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,563
Blog Entries: 13

Rep: Reputation: Disabled
http://askubuntu.com/questions/31886...t-found#318865
"maybe" can help.

Last edited by Habitual; 11-15-2016 at 04:25 AM.
 
Old 11-15-2016, 07:14 AM   #5
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,690

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
oh yes make use you have gcc and make installed as well.
Code:
./configure --prefix=/usr/local
make
sudo make install
 
Old 11-24-2016, 03:54 AM   #6
EVSpl
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
I can't even install the packages.
If I write "sudo apt install SDL_image" in the console for example I just get the error message back:
E: Unable to locate package SDL_image
So my first question is how exactly can I install the libraries or packages that needed to be installed? Or where do I get those packages?

Best

EVSpl
 
Old 11-25-2016, 06:41 AM   #7
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,690

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by EVSpl View Post
I can't even install the packages.
If I write "sudo apt install SDL_image" in the console for example I just get the error message back:
E: Unable to locate package SDL_image
So my first question is how exactly can I install the libraries or packages that needed to be installed? Or where do I get those packages?

Best

EVSpl
did you query your repo first to ensure you're spelling it correctly?
it maybe SDL-image and not SDL_image...

just whatever your commands are to query and the search word SDL or SDL* should give you everything related to SDL

if you are going strictly source code a simple query to google "SDL download" then figure out how to manipulate the address. I clicked on this one https://www.libsdl.org/projects/SDL_mixer/
then just backed off the address in the address bar to get this one.
https://www.libsdl.org/projects/

which gives you everything SDL Source code

note:
when compiling from source, you have to have the developers source installed too, so that whatever it is you are compiling from source code can read the header files to ensure function calls are being used properly. It needs them definitions to insure proper data types are being handled properly, (in short).

That means, all of these have to be source code. that maybe spelled like this
Code:
SDL-devel
SDL_image-devel
SDL_mixer-devel
SDL_ttf-devel
or with just dev instead with either a hyphen or underscore, maybe even a period to separate the words. All depending on the developer/maintainer. This is why it is a good idea to query your repo if you are pulling off of that to get source code so you know which spelling conventions they are using, so, you'll get it right when you go to install it.

Last edited by BW-userx; 11-25-2016 at 07:08 AM.
 
  


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
Complete newbie needs help installing Belkin Wireless card on Suse 10.1 OldDogNewTrick Linux - Wireless Networking 3 06-24-2007 06:35 AM
Complete newbie needs help installing printer mpooley Linux - Hardware 5 03-10-2007 06:34 PM
Installing Slackware COMPLETE NEWBIE HERE brianc Slackware 19 01-12-2007 01:24 PM
A Complete newbie to linux and having probs installing modem driver :'( XDR Linux - Hardware 2 09-25-2003 04:22 PM
Installing Slackware... how? (complete newbie) zsejk Slackware 12 04-19-2003 12:12 AM

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

All times are GMT -5. The time now is 07:23 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