Compiling Wesnoth on Ubuntu 5.10 gives errors: clipboard.cpp

This is a discussion on Compiling Wesnoth on Ubuntu 5.10 gives errors: clipboard.cpp within the Tech Board forums, part of the Community Boards category; I posted this on the Wesnoth forum, but I didn't get any help. Perhaps you programmers might know something more ...

  1. #1
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498

    Compiling Wesnoth on Ubuntu 5.10 gives errors: clipboard.cpp

    I posted this on the Wesnoth forum, but I didn't get any help. Perhaps you programmers might know something more about this problem, especially because it seems like it's coming from SDL....

    I'm trying to compile Wesnoth 1.1.8 on a friend's Ubuntu box, and although I've installed all the required libraries, it gives the following errors when compiling clipboard.cpp:
    Code:
    clipboard.cpp: In member function ‘Display* XHelper::dpy()’:
    clipboard.cpp:103: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
    clipboard.cpp: In member function ‘Window XHelper::window()’:
    clipboard.cpp:108: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
    clipboard.cpp: In member function ‘void XHelper::acquire()’:
    clipboard.cpp:118: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
    clipboard.cpp: In member function ‘void XHelper::release()’:
    clipboard.cpp:126: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
    clipboard.cpp: In function ‘void handle_system_event(const SDL_Event&)’:
    clipboard.cpp:178: error: ‘struct SDL_SysWMmsg’ has no member named ‘event’
    clipboard.cpp:185: error: ‘XA_PRIMARY’ was not declared in this scope
    clipboard.cpp:211: error: ‘XA_ATOM’ was not declared in this scope
    clipboard.cpp: In function ‘void copy_ucs2_to_clipboard(const ucs2_string&)’:
    clipboard.cpp:248: error: ‘XA_PRIMARY’ was not declared in this scope
    clipboard.cpp: In function ‘void copy_to_clipboard(const std::string&)’:
    clipboard.cpp:262: error: ‘XA_PRIMARY’ was not declared in this scope
    clipboard.cpp: In function ‘ucs2_string copy_ucs2_from_clipboard()’:
    clipboard.cpp:340: error: ‘XA_STRING’ was not declared in this scope
    clipboard.cpp: In function ‘std::string copy_from_clipboard()’:
    clipboard.cpp:363: error: ‘XA_STRING’ was not declared in this scope
    make[2]: *** [clipboard.o] Error 1
    Is there something I forgot to compile/install? Thanks.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,506
    > clipboard.cpp:103: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
    Probably got the right library (it didn't complain about the struct).
    Possibly got the wrong version (.info is/was a member in another version).
    Possibly a porting issue - .info is conditionally compiled for certain platforms only.

    Just guessing...
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    .info is in the newest version, so it might be an old version that's causing the problem.

    .info is also conditionally compiled, but it's supposed to be available on X11, so it might be some incorrect compile settings.

    http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSysWMInfo
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Quote Originally Posted by CornedBee
    .info is in the newest version, so it might be an old version that's causing the problem.

    .info is also conditionally compiled, but it's supposed to be available on X11, so it might be some incorrect compile settings.

    http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSysWMInfo
    ...do you think it could be that it's an old version of Ubuntu? What do you think I should try? (It may not be Ubuntu 5.10; could be older)

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    You could just apt-get install it, though I guess the version you get is too old.

    I am running Ubuntu 5.10, libsdl version 1.2.8 (installed either by default or via apt-get).

    rob:/etc$ cat /etc/issue
    Ubuntu 5.10 "Breezy Badger" \n \l

    rob:/etc$ sdl-config --version
    1.2.8

    wesnoth-1.1.8 built fine for me.

    Got the package from http://prdownloads.sourceforge.net/w...use_mirror=umn

    A simple "./configure ; make" worked fine for me.

    BTW, if you want to play multiplayer, I am up for some matches. I've played a lot of single player wesnoth, but I have never played multiplayer.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Quote Originally Posted by SilentStrike
    You could just apt-get install it, though I guess the version you get is too old.

    I am running Ubuntu 5.10, libsdl version 1.2.8 (installed either by default or via apt-get).

    rob:/etc$ cat /etc/issue
    Ubuntu 5.10 "Breezy Badger" \n \l

    rob:/etc$ sdl-config --version
    1.2.8

    wesnoth-1.1.8 built fine for me.

    Got the package from http://prdownloads.sourceforge.net/w...use_mirror=umn

    A simple "./configure ; make" worked fine for me.

    BTW, if you want to play multiplayer, I am up for some matches. I've played a lot of single player wesnoth, but I have never played multiplayer.
    Thanks, I found out that the SDL version was 1.11; I know I installed 1.2.11, but I had done some apt-getting out of frustration, and I must have accidently wiped out the version of SDL I installed.

    Thanks, and I'll let you know if the new version of SDL works (oh, and it is Breezy Badger)

    EDIT: It worked! Wesnoth is now compiled and installed....
    BTW, if you want to play multiplayer, I am up for some matches. I've played a lot of single player wesnoth, but I have never played multiplayer.
    Remember, this is my friend's computer, I never said anything about me having Wesnoth.
    Last edited by joeprogrammer; 08-21-2006 at 04:56 PM.

  7. #7
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    You should install it. It's really a great game. Perhaps it is even the best open source game availible.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling errors again
    By Jessica in forum C++ Programming
    Replies: 2
    Last Post: 04-04-2002, 08:47 AM
  2. compiling errors
    By Jessica in forum C++ Programming
    Replies: 5
    Last Post: 04-03-2002, 07:20 PM
  3. I get errors, but not from compiling
    By Leeman_s in forum C++ Programming
    Replies: 1
    Last Post: 01-20-2002, 01:07 PM
  4. Compiling errors
    By Olland in forum C Programming
    Replies: 1
    Last Post: 01-08-2002, 04:54 AM
  5. stupid errors i got after compiling!! HELP ME!
    By Leeman_s in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2001, 04:13 PM

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