Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Frameworks alike OSX

  1. #1
    Join Date
    Feb 2010
    Beans
    271

    Frameworks alike OSX

    Hi
    I need to compile a MAC app on Linux which uses frameworks and therefore seems to miss lots of headers etc.
    Is there something alike or hints on how to deal with such.
    Thanks

  2. #2
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Frameworks alike OSX

    What application is this? Just because OS X and Linux are both Unix based does not mean that programs written for one will always work on the other. This is especially true if GUIs are involved. OS X has X11, but Linux does not have a replacement for Cocoa. The GNUstep project is a step in the right direction, but it is nowhere near being a drop-in replacement. You can try compiling it with GNUstep, but honestly it will probably be a waste of time.
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

  3. #3
    Join Date
    Feb 2010
    Beans
    271

    Re: Frameworks alike OSX

    Gnustep seems very promising for future cross platform development, but for now I only do a x-plane plugin without gui.
    Ok so it uses lua, luajit, curl, bullet etc. Now on Linux i get lots of missing #include so i believe this is because on OSX the author has used frameworks. I'm not sure about, and new to osx->linux dev. but i wonder how to approach such on linux. I've added #include on linux as standard Unix approach but now I ran into tons of "multiple declaration of..." So i suspect osx frameworks to do special things with #include?
    Many thanks for help/hints.

  4. #4
    Join Date
    Feb 2010
    Beans
    271

    Re: Frameworks alike OSX

    anyone wanting to have a look:
    http://www.x-plugins.com/gizmo/downl...edirects=0&d=1

    would be cool to get me going. see also:
    http://forums.x-plane.org/index.php?...ic=49913&st=20
    basically a shared lib. xcode project etc. are there.

  5. #5
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Frameworks alike OSX

    It appears to rely on Carbon.framework, which is one of Apple's proprietary frameworks. Unless you know of an open source clone, you might be out of luck. Have you tried the windows version in Wine?
    Last edited by schauerlich; August 29th, 2011 at 05:43 PM.
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

  6. #6
    Join Date
    Feb 2010
    Beans
    271

    Re: Frameworks alike OSX

    No carbon is only needed for pathtranslation on OSX. Forget it on Linux.

  7. #7
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: Frameworks alike OSX

    Quote Originally Posted by ahso4271 View Post
    Gnustep seems very promising for future cross platform development, but for now I only do a x-plane plugin without gui.
    No. GNUStep is a mess that's lagging behind Cocoa... because the GNU ObjC compiler is stuck on ObjC 1.0. That's a major issue the FSF is struggling to solve, even by establishing GNUStep as a high-priority project. But without an ObjC 2.0 compiler, it's pretty hard to make GNUStep catch on

    Likewise, SideStep isn't doing any better.

  8. #8
    Join Date
    Feb 2010
    Beans
    271

    Re: Frameworks alike OSX

    gcc/g++? even apple uses this awarded compiler...well evbd. does.

  9. #9
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: Frameworks alike OSX

    Quote Originally Posted by ahso4271 View Post
    gcc/g++? even apple uses this awarded compiler...well evbd. does.
    IIRC, the current Apple Objective-C compiler is based on LLVM.

  10. #10
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Frameworks alike OSX

    Quote Originally Posted by ahso4271 View Post
    gcc/g++? even apple uses this awarded compiler...well evbd. does.
    Apple doesn't use the main GCC compiler. Theirs is based off of a fork of gcc 4.2, and has a lot of customizations that haven't been merged into GNU's GCC.

    Quote Originally Posted by nvteighen View Post
    IIRC, the current Apple Objective-C compiler is based on LLVM.
    Apple has 3 compilers available: gcc, llvm-gcc, and clang. gcc is the compiler Apple originally used, forked from 4.2 and customized for all of Apple's extensions to C/ObjC. llvm-gcc uses Apple's fork of gcc as a front end, with llvm doing the actual code generation. clang is a whole new front end based on llvm, with the goal of being more or less a drop in replacement for gcc. Currently, OS X defaults to llvm-gcc because clang's C++/ObjC++ support isn't quite production ready yet.
    Last edited by schauerlich; August 31st, 2011 at 06:36 AM.
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •