Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Simulator problems
« previous next »
  • Print
Pages: [1] 2

Author Topic: Simulator problems  (Read 7517 times)

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 920
Simulator problems
« on: February 24, 2006, 12:05:56 PM »
I just can't get the simulator to compile in linux...
I'm getting loads of undefined reference errors... this is how it starts:
Code: [Select]
LD rockboxui
/home/Martin/build/_rockbox/sim/libcomsim.a(io.o)(.text+0x7b9): In function `sim_codec_load_ram':
/home/Martin/build/_rockbox/uisimulator/common/io.c:354: undefined reference to `dlopen'
/home/Martin/build/_rockbox/sim/libcomsim.a(io.o)(.text+0x7e3):/home/Martin/build/_rockbox/uisimulator/common/io.c:362: undefined reference to `dlerror'

Then it goes on to lots more undefined references with X in the name:
Code: [Select]
/usr/lib/libSDL.a(SDL_x11events.o)(.text+0x969): In function `X11_KeyToUnicode':
: undefined reference to `XLookupString'
/usr/lib/libSDL.a(SDL_x11events.o)(.text+0xa2b): In function `X11_SetKeyboardState':
: undefined reference to `XQueryPointer'
/usr/lib/libSDL.a(SDL_x11events.o)(.text+0xc2e): In function `.L127':
: undefined reference to `XQueryKeymap'
/usr/lib/libSDL.a(SDL_x11events.o)(.text+0xc97): In function `X11_PumpEvents':
: undefined reference to `XNextEvent'
/usr/lib/libSDL.a(SDL_x11events.o)(.text+0xf20): In function `.L168':
: undefined reference to `XCheckTypedEvent'
This goes on for pages and pages (full log file attached)

I've only just installed linux so I thought I'd probably not installed a certain package, but as far as I can tell I've got all the Xlib packages and SDL packages..

Anyone have any ideas?  ???

[attachment deleted by admin, too old]
« Last Edit: February 26, 2006, 11:14:28 AM by Mmmm »
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline bk

  • Member
  • *
  • Posts: 264
Re: Simulator compiling problems
« Reply #1 on: February 24, 2006, 07:47:36 PM »
What distribution are you using? It sounds like your LDOPTS are screwed up and you may have some packages missing from your Linux install (you shouldn't be getting unreferenced symbol errors from within the SDL libs). If you're using Fedora or some RPM-based distro, make sure you have all the relevent *-devel packages installed (sdl-devel, xorg-devel, glibc-headers, etc).
« Last Edit: February 24, 2006, 07:49:39 PM by bk »
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 920
Re: Simulator compiling problems
« Reply #2 on: February 25, 2006, 10:54:33 AM »
I'm using SUSE9.2 which is an RPM based distro...
I have:

sdl-devel 1.2.9-1
glibc-devel 2.3.3-118
but no xorg-devel...ooh..maybe that's it, I'll give that a go..Thanks
All I needed was a list of what should be installed...
 :D
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 920
Re: Simulator compiling problems
« Reply #3 on: February 25, 2006, 11:06:36 AM »
 :(

oh well... it didn't work, I still get the same error
Now I also have:

xorg-x11-devel 6.8.1-15.4

Is there anything else that I should make sure I have?
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline bk

  • Member
  • *
  • Posts: 264
Re: Simulator compiling problems
« Reply #4 on: February 25, 2006, 01:44:18 PM »
You are getting undef ref errors in your SDL installation which makes me think that whatever SDL packages you installed weren't compiled for your distribution, or you have some other dependency problem. In any event, I suspect your SDL packages are the root of the problem.

EDIT: Problem #1 is that you have different versions of sdl and sdl-devel installed. Problem #2 is that (according to google), the sdl that shipped with SUSE 9.2 was buggy wrt ALSA and possibly other things as well. Uninstall your SDL packages, reinstall SDL and make sure it is at least 1.2.8. Also make sure you update any dependencies.
« Last Edit: February 25, 2006, 01:53:31 PM by bk »
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 920
Re: Simulator compiling problems
« Reply #5 on: February 25, 2006, 03:05:00 PM »
WOOOOOOOOOOOOOOHOOOOOOOOOOOOOOOOOOO

Bk, you are my hero!!!

I could only find SDL 1.2.7-41.1 but that works fine, it compiles very nicely now....

thankyouthankyouthankyouthankyouthankyou....  :D

Ok, now for the next problem..

below is a screen shot of the simulator...hmmmm seems the bmp file is not loading.. what do you think?

[attachment deleted by admin, too old]
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline bk

  • Member
  • *
  • Posts: 264
Re: Simulator compiling problems
« Reply #6 on: February 25, 2006, 03:32:04 PM »
Yeah, the player bmps don't load for me either. I assumed that was intentional since the old X11 sim didn't have the pretty bmps either.

Glad to hear you got it working.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Simulator compiling problems
« Reply #7 on: February 25, 2006, 03:33:25 PM »
Yeah, at the moment I think you have to actually use a command line parameter to get the background image, or something. I don't know what it is, but I know that by default it intentionally doesn't display it. I'm not 100% sure you can, but I think you can.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1447
    • Daniel's site
Re: Simulator compiling problems
« Reply #8 on: February 25, 2006, 04:15:09 PM »
./rockboxui --background
Logged

Offline nicolinux

  • Member
  • *
  • Posts: 35
Re: Simulator compiling problems
« Reply #9 on: February 26, 2006, 05:40:39 AM »
Ah, I see you have fixed your problems ! I still have mine but I hope I'll be able to resolve it ! ;)
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 920
Re: Simulator compiling problems
« Reply #10 on: February 26, 2006, 07:48:12 AM »
Yep....

./rockboxui --background did the trick as you can see below!

How come this doesn't load by default? I suppose it's not really important eh?

[attachment deleted by admin, too old]
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Bagder

  • Member
  • *
  • Posts: 1447
    • Daniel's site
Re: Simulator compiling problems
« Reply #11 on: February 26, 2006, 08:27:08 AM »
Quote
How come this doesn't load by default?

Since it is just eye candy fluff with no useful purpose.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Simulator compiling problems
« Reply #12 on: February 26, 2006, 08:32:07 AM »
I have to ask, is there a text or text-like file somewhere other than the source that tells the button->key mappings for any given simulator, or is it just the backgrounds and the source?

I'll admit I haven't looked around too much for this yet since I just thought of it, but since you mentioned that the image is "eye candy fluff" but it's also a quick easy way to reference the controls. Is there another way?
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1447
    • Daniel's site
Re: Simulator compiling problems
« Reply #13 on: February 26, 2006, 08:38:27 AM »
Quote from: Llorean on February 26, 2006, 08:32:07 AM
I have to ask, is there a text or text-like file somewhere other than the source that tells the button->key mappings for any given simulator, or is it just the backgrounds and the source?

I don't think we have a document for it (yet). Most the sims do output a brief key mapping explanation on stdout when you start it though.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Simulator compiling problems
« Reply #14 on: February 26, 2006, 08:40:43 AM »
Which would be fine, except I think the SDL sim doesn't show stdout in the console on cygwin at least. Well, no worries either way, I've gotten the hang of the sims I use.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Simulator problems
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.127 seconds with 22 queries.