Menu

#51 0.96.3 does not run on OS X (packaging issue)

v1.0 (example)
closed-fixed
nobody
5
2016-12-28
2014-11-13
No

Hi,

After excitedly downloading the game and installing it on my mac (OS X 10.10), I discovered that I was unable to run the game :-( After some quick digging around for the root of the cause (with a suspicion that it was merely a packaging bug), I discovered that I was able to resolve the problem by copying 'English.en.po' to the locale directory in the bundle's executable directory (MacOS), and running the game directly from a terminal shell.

I knew after this point that fixing the problem internally would probably be trivial for me to do, hence my attached patch to resolve the problem.

Not included in the patch is the one build setting I had to remove in the Xcode project file to build the game -- from IDE/xCode dir -- was under 'Other C++ Flags', '-mno-fused-madd'. No idea what the flag does, but it stopped complaining! :-)

If you have any questions, feel free to ask away!

Cheers,
Jeffrey Carpenter i8degrees@gmail.com

P.S. My first problem was actually bug 39, but I'm guessing either by using the latest distributions of SDL and SDL_mixer or some new feature in Xcode 6 resolved it for me -- the problem went away after building the project in Xcode using the latest sources from the git tree.

I was able to get around the missing SDL_mixer library issue initially by just passing DYLD_FRAMEWORK_PATH with a path to the Frameworks directory in the game's bundle and running the game from its MacOS directory from a shell.

1 Attachments

Related

Bugs: #51

Discussion

  • Jeffrey Carpenter

    I've attached a binary of the 0.96.3 build with my proposed patch, in the case that anybody else has trouble with this problem and is looking for a quick fix. I've already received a couple e-mails concerning this problem. I'm glad that my patch hasn't gone unnoticed! :-)

    Installation instructions:

    1. Unzip the file and move to Applications folder.
    2. Copy PAK files to their respective folder as per the instructions at DuneLegacy's FAQ.
     
  • RichieQ

    RichieQ - 2015-01-13

    Thanks for your patch Jeffrey. I just applied it to master. Sorry for the delay as I'm currently very busy with RL. But I still plan to get back to Dune Legacy when I have more free time.

     
  • Jeffrey Carpenter

    Good to hear! No worries, I was happy to be of some use :-)

    Cheers,
    Jeffrey Carpenter i8degrees@gmail.com

     
  • manu107

    manu107 - 2015-02-21

    Hello
    I moved the app to application, added the PAK to the folder, but when I launch it nothing happens (at least the first time it asked me to move the PAK files to the data folder, which I did).
    What should I do ?
    Than you

     
  • RichieQ

    RichieQ - 2015-02-21

    @manu107, what is the content of Dune Legacy.log (see FAQ on how to find it)?

     
    • manu107

      manu107 - 2016-11-16

      Sorry I have uninstalled it !

      Le 21 févr. 2015 12:44, "RichieQ" richieq@users.sf.net a écrit :

      @manu107, what is the content of Dune Legacy.log (see FAQ
      http://dunelegacy.sourceforge.net/website/faq.html on how to find it)?


      Status: open
      Group: v1.0 (example)
      Labels: osx bug packaging
      Created: Thu Nov 13, 2014 05:21 AM UTC by Jeffrey Carpenter
      Last Updated: Sat Feb 21, 2015 08:41 AM UTC
      Owner: nobody

      Hi,

      After excitedly downloading the game and installing it on my mac (OS X
      10.10), I discovered that I was unable to run the game :-( After some quick
      digging around for the root of the cause (with a suspicion that it was
      merely a packaging bug), I discovered that I was able to resolve the
      problem by copying 'English.en.po' to the locale directory in the bundle's
      executable directory (MacOS), and running the game directly from a terminal
      shell.

      I knew after this point that fixing the problem internally would probably
      be trivial for me to do, hence my attached patch to resolve the problem.

      Not included in the patch is the one build setting I had to remove in the
      Xcode project file to build the game -- from IDE/xCode dir -- was under
      'Other C++ Flags', '-mno-fused-madd'. No idea what the flag does, but it
      stopped complaining! :-)

      If you have any questions, feel free to ask away!

      Cheers,
      Jeffrey Carpenter i8degrees@gmail.com

      P.S. My first problem was actually bug 39
      https://sourceforge.net/p/dunelegacy/bugs/39, but I'm guessing either
      by using the latest distributions of SDL and SDL_mixer or some new feature
      in Xcode 6 resolved it for me -- the problem went away after building the
      project in Xcode using the latest sources from the git tree.

      I was able to get around the missing SDL_mixer library issue initially by
      just passing DYLD_FRAMEWORK_PATH with a path to the Frameworks directory in
      the game's bundle and running the game from its MacOS directory from a
      shell.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dunelegacy/bugs/51/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #51

  • Philipp Keller

    Philipp Keller - 2016-11-16

    @RichieQ, first: thank you for providing the .app. Only issue I have is that the game only works once, if I start it a second time nothing happens (I think the same issue as @manu107 has). I can play the game though, I just have to unzip the .app every time.

    Can you tell me how you got it to compile? I came pretty far by:

    1. downloading and unpacking the source code from http://dunelegacy.sourceforge.net/website/downloads.html
    2. patching a few files (applying https://github.com/freebsd/freebsd-ports/tree/master/games/dunelegacy )
    3. cp IDE/xCode3/*.m /usr/local/include/SDL/ (which is of course wrong but it gets make to the linker state)
    4. run ./configure and make

    now I only need to somehow compile MacFunctions.m and SDLMain.m in IDE/xCode3/ and I guess it's done.

    Can you provide how you got that to work or provide a new .app file which doesn't have the issue described above?

     

    Last edit: Philipp Keller 2016-11-16
  • RichieQ

    RichieQ - 2016-12-28
    • status: open --> closed-fixed
     
  • RichieQ

    RichieQ - 2016-12-28

    This bug is for an old version of Dune Legacy. We just released version 0.96.4 and hope this bug is resolved (and thus close it). Please recheck the reported problem and file a new bug in case the problem is also valid for version 0.96.4.

     

Log in to post a comment.