One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2018-05-02 18:13:17

woodcol
Member
Registered: 2018-04-22
Posts: 8

How to add SDL.framework under the command line

ld: framework not found SDL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [OneLife] Error 1


I tried to compile app under MacOSX. It is found that there is no SDL library compiled, but I don't know how to add SDL.framework to the project.

My process is:
    cd OneLife
    ./configure

    cd gameSource
    make

Offline

#2 2018-05-02 18:23:52

Drakulon
Member
Registered: 2018-03-31
Posts: 136

Re: How to add SDL.framework under the command line

Maybe this here: https://github.com/vladon/libsdl1.2/blo … DME.MacOSX
but idk

Also check out this thread: https://onehouronelife.com/forums/viewtopic.php?id=1438

Last edited by Drakulon (2018-05-02 18:25:20)

Offline

#3 2018-05-02 18:42:17

woodcol
Member
Registered: 2018-04-22
Posts: 8

Re: How to add SDL.framework under the command line

The problem that I copied the SDL.framework into the /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks SDL was solved, but the final compiled OneLife.app still didn't run. It is possible to feel a lack of a image library

Offline

#4 2018-05-02 18:47:38

Drakulon
Member
Registered: 2018-03-31
Posts: 136

Re: How to add SDL.framework under the command line

Here is a list of packages you need: http://onehouronelife.com/compileNotes.php

Last edited by Drakulon (2018-05-02 18:48:33)

Offline

#5 2018-05-02 19:48:18

woodcol
Member
Registered: 2018-04-22
Posts: 8

Re: How to add SDL.framework under the command line

Drakulon wrote:

Here is a list of packages you need: http://onehouronelife.com/compileNotes.php

I did not install another library, maybe because the version of the SDL library I downloaded was wrong, I used the "OneLife_v78.app/Contents/Frameworks/SDL.Framework" library downloaded on the web site, and the problem was solved.Thank you for helping me!

Offline

Board footer

Powered by FluxBB