Jump to content

For Mac?


Recommended Posts

open up the pyrogenesis Xcode project, then hit build and run, it started up alright with no issues, in both

debug and release mode.

i was using xcode4 though, but not sure if that makes a difference.

if its not managing to get to pyrogenesis, that means its bailing before that,

did u run:

sh update-workspaces-new.sh --without-pch

Link to comment
Share on other sites

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

there is a pyrogenesis_debg.app and when i try to run the binary inside it, i get this.

Last login: Wed Aug 24 18:50:57 on ttys000
Pearce-Michals-MacBook-Pro:~ pearcemichal$ /Users/pearcemichal/0ad/binaries/system/pyrogenesis_dbg ; exit;
dyld: Library not loaded: libnvcore.dylib
Referenced from: /Users/pearcemichal/0ad/binaries/system/pyrogenesis_dbg
Reason: image not found
Trace/BPT trap: 5
logout

[Process completed]

Link to comment
Share on other sites

there is a pyrogenesis_debg.app and when i try to run the binary inside it, i get this.

Last login: Wed Aug 24 18:50:57 on ttys000
Pearce-Michals-MacBook-Pro:~ pearcemichal$ /Users/pearcemichal/0ad/binaries/system/pyrogenesis_dbg ; exit;
dyld: Library not loaded: libnvcore.dylib
Referenced from: /Users/pearcemichal/0ad/binaries/system/pyrogenesis_dbg
Reason: image not found
Trace/BPT trap: 5
logout

[Process completed]

I can't get it running in the newest commit unless i run it through Xcode ;)

build and run in the pyrogenesis.xcodeproj seems to work ok.

oh, and when i run the binary in the system folder, it does this:



./system/pyrogenesis
dyld: Library not loaded: libnvcore.dylib
Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis
Reason: image not found

Edited by skela
Link to comment
Share on other sites

a dialogue pops up that says


error starting executable 'pyrogenesis'
no executable file specified
use the 'file' or 'exec-file' commands

to me it sounds like its not building it, mainly because one or more of the projects pyrogenesis require is not being built,

perhaps due to some libraries missing.

When you build it, make sure there are no errors in any of the other projects.

Can you see anything wrong in engine , etc?

Link to comment
Share on other sites

there are no errors, and it is saying pyrogenesis built correctly.

but surely, if you can't find the binary, that means its not being built.

i had pyrogensis compiling and building ok, but it wouldn't run until i made sure all the projects it depended on were building ok too.

best test was to build via command line, once i got no errors in there, it all started working in Xcode.

Link to comment
Share on other sites

how do you build it in xcode via the command line?

sorry, forget Xcode first, just do something like:



./clean-workspaces.sh
./update-workspaces-new.sh -j3 --without-pch
cd gcc
make CONFIG=Debug -j3

in particular, look at what comes out from make CONFIG=Debug -j3

Link to comment
Share on other sites

oh, and when i run the binary in the system folder, it does this:



./system/pyrogenesis
dyld: Library not loaded: libnvcore.dylib
Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis
Reason: image not found

It looks like an installname issue... I hope I get this right from my memory:

Each library (dylib) defines an installname which is a patch where programs expect to find it.

otool -L pyrogenesis_dbg shows you where pyrogenesis_dbg looks for libnvcore.dylib (and other libraries).

otool -D libnvcore.dylib shows you the installname of libnvcore.dylib, which is written into pyrogenesis_dbg when it's linked.

install_name_tool allows you to change the installname of a library.

You could try checking where these paths don't match.

As far as I remember I copied libnvcore.dylib to binaries/system, but I don't remember exactly if that's all I did and if that's still needed.

Link to comment
Share on other sites

oh, and when i run the binary in the system folder, it does this:


./system/pyrogenesis
dyld: Library not loaded: libnvcore.dylib
Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis
Reason: image not found

It looks like you're running the binary from the binaries directory instead of system, where it expects to find all the libraries.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...