LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2009, 02:31 AM   #1
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Rep: Reputation: 31
svgalib on gentoo trouble


Hi all. I am trying to setup advancemame on my gentoo machine and am having trouble with svgalib.

When I emerge svgalib, it successfully installs svgalib-1.9.25 but when I try to run advmame from a console, it tells me svgalib is missing.

If I try
Quote:
lsmod |grep svga
it returns nothing.

I have been following instructions from Here but cant get (or find) the kernel module to load.

I have also tried older versions of svgalib and manually tried to compile them but they all fail with different errors.

The closest I can get is when I let emerge install it.

Any help getting svgalib working would be great.
 
Old 01-10-2009, 05:58 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by dannyk1 View Post
Hi all. I am trying to setup advancemame on my gentoo machine and am having trouble with svgalib.

When I emerge svgalib, it successfully installs svgalib-1.9.25 but when I try to run advmame from a console, it tells me svgalib is missing.

If I try it returns nothing.

I have been following instructions from Here but cant get (or find) the kernel module to load.

I have also tried older versions of svgalib and manually tried to compile them but they all fail with different errors.

The closest I can get is when I let emerge install it.

Any help getting svgalib working would be great.
You can start checking if the module was compiled against the right kernel.

Code:
uname -r
find /lib/modules -name \*svga\*
 
Old 01-10-2009, 06:24 AM   #3
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Original Poster
Rep: Reputation: 31
output of uname -r

Quote:
2.6.26-gentoo-r4
Output of find /lib/modules -name \*svga\*

Quote:
/lib/modules/2.6.26-gentoo-r4/misc/svgalib_helper.ko
If I do
Quote:
insmod /lib/modules/2.6.26-gentoo-r4/misc/svgalib_helper.ko
I get

Quote:
insmod: error inserting '/lib/modules/2.6.26-gentoo-r4/misc/svgalib_helper.ko': -1 Invalid module format

I also re-emerged svgalib and took note of the output.


Quote:
* Updating module dependencies for 2.6.26-gentoo-r4 ...
*
* /lib/modules/2.6.26-gentoo-r4/build/System.map not found.
* You must manually update the kernel module dependencies using depmod. [ !! ]
*
* Adding module to moduledb.
>>> Regenerating /etc/ld.so.cache...

>>> Recording media-libs/svgalib in "world" favorites file...

* Messages for package media-libs/svgalib-1.9.25:

*
* /lib/modules/2.6.26-gentoo-r4/build/System.map not found.
* You must manually update the kernel module dependencies using depmod.
*
after this I ran depmod but that didn't make a difference.
 
Old 01-10-2009, 07:05 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I never was a big fan of svgalib, for one reason or another it always cause trouble. The only thing I can think of is to clean the kernel source tree from object code file and rebuild from scratch. Maybe the problem is that the kernel and the module have been compiled with different gcc versions though I highly doubt it.

If you can't get it to work, you can still use advancemame with fbcon. Or you could even use it thru sdl, since sdl has support for directfb, which I highly prefer to the rest of alternatives.
 
Old 01-10-2009, 11:49 PM   #5
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Original Poster
Rep: Reputation: 31
I have sdlmame installed which works fine on X, (so does advmame) but I eventually want to plug it into an arcade cabinet and run on a 15khz monitor. Thats why I have been persisting with svgalib.


The kernel and module have been built with the same version of gcc so I doubt that is the problem.
 
Old 01-11-2009, 04:49 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by dannyk1 View Post
I have sdlmame installed which works fine on X, (so does advmame) but I eventually want to plug it into an arcade cabinet and run on a 15khz monitor. Thats why I have been persisting with svgalib.
My whole point is that sdl can work without X, on top of directfb. That way you wouldn't need svgalib, just a working framebuffer driver on your kernel.
 
Old 01-12-2009, 01:16 AM   #7
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Original Poster
Rep: Reputation: 31
Ill have to give that a try.

At the moment my framebuffer driver doesn't work properly

Quote:
---------------------- DirectFB v0.9.25 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-12-18 09:39)
(*) Direct/Memcpy: Using linux kernel memcpy()
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
--> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
variable.
(!) DirectFB/Core: Could not initialize 'system' core!
--> Initialization error!
Could not initialize SDL: DirectFBCreate: Initialization error!

Not sure why, I built the kernel with "genkernel all".

Might have to have a crack at a manual build.

Thanks for the help.
 
  


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
Trouble with Gentoo... DrunkenDisciple Linux - Software 1 07-16-2005 06:16 AM
Trouble installing Gentoo robpo Linux - Distributions 2 01-19-2005 08:34 AM
Svgalib and Svgalib-devel on FC1 Michele Spinolo Fedora 1 11-11-2004 10:56 AM
Having Gentoo trouble lancelott Linux - Newbie 1 06-12-2004 11:51 AM
Gentoo / ALSA trouble Bigun Linux - Software 1 09-21-2003 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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