LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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 Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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



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 09:10 PM.

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
Open Source Consulting | Domain Registration