Results 1 to 10 of 37

Thread: Linking Issues on MacOS X 10.6.5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Ah yesw, I have a bad habit of that... sorry.

    If its the runtime - try putting those dynalib thingys in the same folder as the executeable or somehwere the system can find them. I would guess that the problem here is you need some type compiling libs? Perhaps try http://sourceforge.net/projects/jedi-sdl/ since in my windows expereince these worked a treat. My mac user-time extands to a comprehensive 7 hours so I'm far from expert (that one button mouse gets to me. I rightclick once every 10 seconds by habit to do everything, and on mac I click everything I shouldn't. Thank god it doesnt crash at the first glimpse of trouble s) )

    Anyway, dont forget that you may need the LibSdl AND the libsdl-DEV for thins t work, as I found out. Beyond that is unkown for me so this will most likely be my last post on this topic.

    Mac users: I am very sorry to have offended you in any way. I totally admit that MacWorld and Steve Jobs makes for a much saner atmosphere at product launches than M$. Also - please understand: not everyone is blessed with error-free computing like you and that not all devices are made by apple. so they break. and when things break we get dpressed. so we make jokes

    Edit: and oh, this is my 250th post? whaaaat? that many alreadyy?

  2. #2
    No, the angry smiley was not directed at you! It was directed at MacOS ...

    Since several versions, the JEDI SDL libs are not needed anymore, they are included in FPC, and it is SAID that these units care themselves about the correct libraries.

    It all works different on MacOS than on Linux or Windows, regardless of MacOS having a Unix core ...
    Last edited by Mario Donick; 08-01-2011 at 10:25 AM.

  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Ah, now - wait wwwhaaaat? So is the problem compiling, or running sdl programs? I am totally lost.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    The problem is compiling SDL programs, for now. I did this once, some days ago, but then stupidly lost my whole setup and now don't remember how it was.

    I then had several attempts, all with the SDL units provided by FPC (the JEDI-SDL units which I use on Windows and Linux never gave me any positive results on Mac), plus the SDLmain library which is found in the "devel-lite" folder of the SDL Mac Download. This "SDLmain" is required for developing, too.

    1) The Frameworks only. The Frameworks are, I think, always needed on Mac, because in these are both the runtime and the development headers.

    2) Frameworks + the classic Unix/Linux way: I compiled SDL from source, which lead to several libs with correct names in /usr/local/lib. The compiler found the libs, but they somehow did not contain the correct functions expected by the SDL units, and FPC complained about it.

    3) Ports: Ports are similar to a package manager on Linux, but usually install everything in /opt/var/... This gave me the same negative result as 2)


    According to the FreePascal wiki, with FPC 2.2.2 and 2.4.2, the 1st variant should be sufficient. But somehow ...

  5. #5
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    I hear that apt-get also works on mac. Would that mean that you could use t commands I did on ubuntu? I know a lot of mac users dont like it - but it might work as a last resort:

    http://techline4teens.com/archives/81

    seems to make a decent summary. I wonder if tHat would work? althoughbyou may need to use it to install all the apps you need for development. Just abother thought.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  6. #6
    Yep. This is the 2nd variant I mentioned (ports). Fink is another approach (but currently not working on Snow Leopard). Both work like apt-get. Hmmm... perhaps they also have a FreePascal port ... if this would be the case, I could use the Ports or Fink version of SDL and FPC.

    If that worked, I only fear that the end users would need to install Ports, too ... or at least X11. I don't know if the casual Mac user, who would perhaps play my roguelike game, would do this.

    However, I'll check this idea out.


    Edit: Ok, there's no Ports version of FPC *sigh*
    Last edited by Mario Donick; 08-01-2011 at 12:22 PM.

  7. #7
    Some sdl wiki page mentioned that you needed to use Projectbuilder to build sdl properly(as frameworks). Did you do that?

    And when you used frameworks+the unix way what was the problem then, precisely?
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

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
  •