New version

2005-04-10
2013-06-04
  • Lee Thomason

    Lee Thomason - 2005-04-10

    A beta of 2.1 is available in the files sections. Lots of little improvements, including a new license (LGPL), a command line encoder, and bug fixes.

    Tell me how it works!

    Also, it needs automake support for the build if anyone would like to take that on.

    lee

     
    • Andrew

      Andrew - 2005-05-04

      After messing around with the Makefiles and a few other things I managed to get it to compile on OSX.  On my system (10.3.8) there was no sqrtf() function, so I included code from the Cephes library (http://www.moshier.net/singldoc.html) to get it to work.

      I've zipped up everything I did & made it available at http://projectmagma.net/~iron/kyra-macosx.zip

      One thing I noticed though, running the demo on Mac shows different colours on the background tiles compared to on Windows.  For example...

      http://projectmagma.net/~iron/kyrademo-mac.jpg
      http://projectmagma.net/~iron/kyrademo-win.jpg

      Lastly, I've been trying to get it to compile on Windows using MingW, but for some reason am getting link errors on the functions SDL_ReadLE32() and SDL_WriteLE32().

       
    • Lee Thomason

      Lee Thomason - 2005-05-05

      Wow! That's great -- thanks for posting that.

      On sqrtf(), the easy way may be to put in the correct #ifdef MAC and define:

      float sqrtf( float v ) { return (float) sqrt( (double) v ); }

      On the colors - that may be because "DARWIN" isn't defined. Check out

      void KrPaintInfo::InitCopies()

      Is there a better #define to use that DARWIN?

      On MingW, there is a Dev-C++ project, if you want to go that way.

      It's great to see a Mac version posted.
      thanks again,
      lee

       
      • Andrew

        Andrew - 2005-05-06

        I tried again with DARWIN defined, but it didn't fix the problem.  I'm not a really experienced Mac programmer - I'm sure there's a define that's automatically set by the compiler but offhand I don't know what it is.  If you want me to try other things just let me know.

        The sqrtf() suggestion works well & makes a lot more sense than including that extra code :)

         
    • Lee Thomason

      Lee Thomason - 2005-05-06

      I do some Mac programming professionally, but I don't have a Mac for Kyra development. It's definitely a problem with little vs. big endian in the drawing functions. But without a good debugger, it is hard for me to say more.

      If only Apple would donate a G5 to Kyra. :)

      lee

       
      • Andrew

        Andrew - 2005-05-06

        Notice how its only those background tiles that are wrong?  The sprites look the same as on windows.  Could that possibly help narrow it down?

         

Log in to post a comment.