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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-10-2009, 01:31 AM
|
#1
|
Member
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188
Rep:
|
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 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.
|
|
|
01-10-2009, 04:58 AM
|
#2
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by dannyk1
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\*
|
|
|
01-10-2009, 05:24 AM
|
#3
|
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:
|
output of uname -r
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.
|
|
|
01-10-2009, 06:05 AM
|
#4
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
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.
|
|
|
01-10-2009, 10:49 PM
|
#5
|
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:
|
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.
|
|
|
01-11-2009, 03:49 AM
|
#6
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by dannyk1
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.
|
|
|
01-12-2009, 12:16 AM
|
#7
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 05:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|