Configuring SDL under Linux (Mandrake)

This is a discussion on Configuring SDL under Linux (Mandrake) within the Tech Board forums, part of the Community Boards category; I'm having trouble getting SDL working on my Linux installation. I downloaded the SDL 1.2 RPM from www.libsdl.org and installed ...

  1. #1
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

    Configuring SDL under Linux (Mandrake)

    I'm having trouble getting SDL working on my Linux installation. I downloaded the SDL 1.2 RPM from www.libsdl.org and installed it, yet I get pages of errors whenever I compile.
    [eibro@u58n100 eibro]$ g++ sdltest.o -o test `sdl-config --libs`
    /usr/lib/libSDL.a(SDL_x11video.lo): In function `X11_Available':
    SDL_x11video.lo(.text+0x1d): undefined reference to `XOpenDisplay'
    SDL_x11video.lo(.text+0x2f): undefined reference to `XCloseDisplay'
    /usr/lib/libSDL.a(SDL_x11video.lo): In function `create_aux_windows':
    SDL_x11video.lo(.text+0x453): undefined reference to `XDestroyWindow'
    SDL_x11video.lo(.text+0x4ff): undefined reference to `XCreateWindow'
    SDL_x11video.lo(.text+0x528): undefined reference to `XSelectInput'
    SDL_x11video.lo(.text+0x583): undefined reference to `XInternAtom'
    SDL_x11video.lo(.text+0x5da): undefined reference to `XSendEvent'
    SDL_x11video.lo(.text+0x5ff): undefined reference to `XGetWMHints'
    SDL_x11video.lo(.text+0x61b): undefined reference to `XGetWMName'
    SDL_x11video.lo(.text+0x638): undefined reference to `XGetWMIconName'
    SDL_x11video.lo(.text+0x64e): undefined reference to `XDestroyWindow'
    SDL_x11video.lo(.text+0x6a0): undefined reference to `XCreateWindow'
    <snip>
    If anyone could help me out, it'd be greatly appreciated.

  2. #2
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32
    I have Mandrake too.

    Its alot easier to install off the CDs.

    Just go to the install software thingy, search for SDL, then install the SDL-devel package.

    If you don't have the CDs try to find Mandrake ISOs at http://rpmfind.net
    Those who live by the sword get shot by those who don't.

    I can C.

    Compiler: gcc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't compile an SDL program under Linux
    By dwks in forum Game Programming
    Replies: 2
    Last Post: 01-16-2006, 07:51 PM
  2. Im getting ManDrake PowerPack Linux 9.0!
    By DarkViper in forum Tech Board
    Replies: 8
    Last Post: 12-02-2002, 12:19 PM
  3. Mandrake Linux
    By MethodMan in forum Tech Board
    Replies: 6
    Last Post: 10-28-2002, 02:08 PM
  4. mandrake linux 9.0 help
    By hostensteffa in forum Tech Board
    Replies: 5
    Last Post: 10-24-2002, 05:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21