LinuxQuestions.org
Review your favorite Linux distribution.
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 10-02-2008, 01:12 PM   #1
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Rep: Reputation: 15
Having a problem building Nestopia 1.4.0 from source


I'm trying to get Nestopia to work with Kubuntu 8.04 x64 from source by following these directions http://rbelmont.mameworld.info/?page_id=200 and come across several errors when running make. From looking at the errors in the terminal I think I am missing sdl 1.2.12 or later from the directions and I don't know what that is. I tried to look for it in adept manager but no luck. (For future references how do I make a forum post with gray scroll box so pasting terminal results won't make the page long.)

Terminal:
Compiling source/linux/main.cpp...
/bin/sh: sdl-config: not found
/bin/sh: pkg-config: not found
source/linux/main.cpp:13:17: error: SDL.h: No such file or directory
source/linux/main.cpp:49:21: error: gtk/gtk.h: No such file or directory
In file included from source/linux/main.cpp:39:
source/linux/input.h:35: error: ‘SDL_Event’ does not name a type
In file included from source/linux/main.cpp:51:
source/linux/callbacks.h:4: error: ‘gboolean’ does not name a type
source/linux/callbacks.h:10: error: variable or field ‘on_nsfspinbutton_change_value’ declared void
source/linux/callbacks.h:10: error: ‘GtkSpinButton’ was not declared in this scope
source/linux/callbacks.h:10: error: ‘spinbutton’ was not declared in this scope
source/linux/callbacks.h:11: error: ‘GtkScrollType’ was not declared in this scope
source/linux/callbacks.h:12: error: ‘gpointer’ was not declared in this scope
source/linux/callbacks.h:15: error: variable or field ‘on_nsfspinbutton_value_changed’ declared void
source/linux/callbacks.h:15: error: ‘GtkSpinButton’ was not declared in this scope
source/linux/callbacks.h:15: error: ‘spinbutton’ was not declared in this scope
source/linux/callbacks.h:16: error: ‘gpointer’ was not declared in this scope
source/linux/callbacks.h:19: error: variable or field ‘on_open_clicked’ declared void


(There were several more errors but couldn't paste due to forum limitations but you guys can probably get the gist of it)
 
Old 10-02-2008, 04:14 PM   #2
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
If you need SDL, then it should just be the command

Code:
sudo apt-get SDL
I recommend also installing ALL SDL libraries. After installing SDL, do the same but for SDL_image, SDL_mixer, SDL_gfx and SDL_ttf. Those are the main ones that I can think of. And yes, all the name I have typed are correct. Just remove the commas. If you choose to not use apt-get, then you can build from source [HTML]http://www.libsdl.org/download-1.2.php[/HTML] However, I've never done this on any *buntu so I'm not sure of any problems. Hope this Helps!!
 
Old 10-02-2008, 04:32 PM   #3
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
Thanks I wasn't able to install (sudo apt-get SDL) but I went to my adept manager and dl the libsdl files I didn't have install. That got rid of the /bin/sh: sdl-config: not found problem but not the /bin/sh: pkg-config: not found problem.
 
Old 10-02-2008, 05:10 PM   #4
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
from what I read so far my /bin/sh: pkg-config: not found problem is somehow to do with gtk file/s. But so far I don't know which gtk files I need.

Edit: Got it working now I had to install libgtkmm-2.4-dev

I had the regular gtk installed didn't realize the dev files were needed as well. Thanks Soppy for the help.

Last edited by swalker23; 10-02-2008 at 05:31 PM.
 
Old 10-02-2008, 05:30 PM   #5
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
well, pkg-config is a COMPLETELY different program. It's used to simplify the compiling process by letting you not hard-code libraries. Please make sure that the Universe Repository is enabled for your *buntu. Then a simple
Code:
sudo apt-get pkg-config
should be efficient. I'm not exactly familiar with the Ubuntu repository as I don't use that distro. If it's not there, then try the source. http://pkgconfig.freedesktop.org/rel...ig-0.23.tar.gz

If any problems, please ask.
 
Old 10-02-2008, 06:03 PM   #6
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
I have it all working now Soppy, just trying to get the sound sorted out now. In sdl mode the sound is choppy but in alsa and oss I get no sound.
 
Old 10-02-2008, 06:22 PM   #7
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
hmm...now i really don't know a lot about alsa or anything like that. sorry. all i can say is try using alsamixer to edit volumes or make sure you're even using alsa in the system config. other than that, maybe you just need to edit Nestopia config files. are you sure that you have SDL_mixer installed? that could be a problem too.
 
Old 10-02-2008, 06:31 PM   #8
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
I just got it to work, I just enabled full duplex in sound hardware configurations.

Edit: Its some conflict between the system sounds and nestopia.

Last edited by swalker23; 10-02-2008 at 06:40 PM.
 
Old 10-02-2008, 06:41 PM   #9
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
haha! score! hope you have fun reliving the great days of the NES! i remember getting mine...playing duck-hunt for hours upon end. good times. gladd you got it to work!
 
  


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
Building Pidgin from source, problem regarding XML parser gogul2k Linux - Software 7 09-25-2008 12:29 PM
synCE: Problem building (dependency) pywbxml from source sonichedgehog Linux - Software 1 02-05-2008 02:52 AM
Building From source question duryodhan Slackware 9 11-11-2006 06:48 AM
problem building and installing rpm from ndiswrapper source steveman2000 Linux - Newbie 5 10-23-2005 07:01 PM
building from source Protex Slackware 2 02-24-2004 08:26 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration