Results 1 to 8 of 8

Thread: Patch for ClanLib 0.9 svn 368 (Linux compatibility)

  1. #1
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default Patch for ClanLib 0.9 svn 368 (Linux compatibility)

    Attached is my "work in progress" patch to get ClanLib 0.9 to compile using Linux.

    To do:
    ClanGL, ClanMikMod and ClanSound.

    (These can be disabled in configure.ac - remove dnl in:
    dnl CLANLIB_DISABLE_MODULE(clanMikMod, [ clanMikMod requires fixing ] )
    dnl CLANLIB_DISABLE_MODULE(clanGL, [ clanGL requires fixing ] )
    dnl CLANLIB_DISABLE_MODULE(clanVorbis, [ clanVorbis requires fixing ] )
    )

    Mark Page.
    Attached Files Attached Files

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Ignore this patch ... it is currently being applied with an updated patch :)

    clanMikmod and clanGL both compile. However i created a new file: Sources/GL/GLX/display_message_queue_unix.(cpp and h) that contains stubs ... so clanGL will not work.

    (clanVorbis did not require modifications)

    For interest, the patch is attached here (someone else is applying it, assuming that it is okay).

    Please note, my previous patches were incorrect, all tabs were replaced by spaces in the diff file (i copied and pasted the kdesvn diff output into a text editor, loosing the tabs. I should have used the command line svn diff )

    Also, the current svn ClanLib-0.9/Sources/GL/GLX/opengl_window_provider_glx.cpp contains duplicated source code, the entire source code appears twice in the same source code file.
    This is also the same in ClanLib-0.9/Sources/GL/GLX/input_device_x11keyboard.cpp
    My patch removes the duplicated source code
    Attached Files Attached Files
    Last edited by rombust; 05-10-2007 at 11:50 AM.

  3. #3
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    Thanks for the great work Mark. You are putting presure on us now to soon stabilize this version of clanlib.

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Just to make it clear, that patch only fixes the build system, so that ClanLib0.9 compiles, it does not fix all the problems with Linux ClanLib.

    Note, the patch that was applied, did not include the "display_message_queue_unix.*" stubs ... that is okay, as i am going to have a look at them today.

  5. #5
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Well i had a look, and I got the Basic2D example to display a blue screen

    I am taking a couple of days off, back on Monday.

    I have attached a patch to the latest ClanLib 0.9 svn - if anyone else wants to have a look at it over the weekend to fix the programs.

    Also if someone can get Basic2D to fully work (in Windows), i would be very grateful (The version of Basic2D in my patch contains a couple of fixme's.)
    Attached Files Attached Files

  6. #6
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    I have now got Basic2D, and GLCube, GLFog to run on the Windows platform.
    I also have got mikmod example working on linux

    The shadowofthebeast, Basic2D, GLCube all work on linux if i comment out the keyboard reading functions.

    This fault is caused by:
    void CL_OpenGLWindowProvider_GLX::create_new_window(con st CL_DisplayWindowDescription &desc), not calling get_ic()->add_keyboard()

    Note: a couple of source code files contained CTRL-M characters, this has been fixed.

    My latest work in progress patch is attached here (to replace patch5.zip)
    Attached Files Attached Files
    Last edited by rombust; 05-14-2007 at 04:02 PM.

  7. #7
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    This is my latest patch to get ClanLib0.9 working on Linux

    Basic2D, GlCube, ShadowofTheBeast, MikMod fully work on Linux (I think!)

    This patch replaces all the other patches (that have NOT been applied)

    (shadow of the beast demo, there is a transparency problem, but i will ignore that for now ;)
    Attached Files Attached Files

  8. #8
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Patch has been applied. Thanks

Similar Threads

  1. Working with Linux
    By Ciperl in forum Other RTsoft Games
    Replies: 3
    Last Post: 04-17-2013, 09:58 AM
  2. Patch to ClanLib-0.9 svn rev 365
    By rombust in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-09-2007, 01:08 PM
  3. Patch to ClanLib-0.8 svn rev 364
    By rombust in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-06-2007, 01:14 PM
  4. FQ and Linux
    By jjohn in forum Funeral Quest
    Replies: 0
    Last Post: 09-04-2004, 12:23 AM
  5. Linux port
    By in forum Dink Smallwood HD
    Replies: 2
    Last Post: 09-12-2002, 05:03 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •