skela Posted August 23, 2011 Report Share Posted August 23, 2011 open up the pyrogenesis Xcode project, then hit build and run, it started up alright with no issues, in bothdebug 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 Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 23, 2011 Report Share Posted August 23, 2011 yeah, and it builds successfully, but it tells me "error starting executable pyrogenesis: no executable file specified. use file or exec file command"but I don't know how/where to use the command. Quote Link to comment Share on other sites More sharing options...
Yves Posted August 24, 2011 Report Share Posted August 24, 2011 Please check 0ad/binaries/system/ if there's a pyrogenesis.app created after building.There should be a binary called pyrogenesis inside this app package. Try copying it to 0ad/binaries/system and running it directly. Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 24, 2011 Report Share Posted August 24, 2011 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 ttys000Pearce-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 foundTrace/BPT trap: 5logout[Process completed] Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 (edited) 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 ttys000Pearce-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 foundTrace/BPT trap: 5logout[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/pyrogenesisdyld: Library not loaded: libnvcore.dylib Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis Reason: image not found Edited August 25, 2011 by skela Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 25, 2011 Report Share Posted August 25, 2011 it won't run through xcode either. it tells me the binary is not found. the main issue is, i can't figure out how to build a "release" build in xcode 4. Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 what happens when u hit build and run ? Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 25, 2011 Report Share Posted August 25, 2011 a dialogue pops up that sayserror starting executable 'pyrogenesis'no executable file specifieduse the 'file' or 'exec-file' commands Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 a dialogue pops up that sayserror starting executable 'pyrogenesis'no executable file specifieduse the 'file' or 'exec-file' commandsto 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? Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 25, 2011 Report Share Posted August 25, 2011 there are no errors, and it is saying pyrogenesis built correctly. Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 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. Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 25, 2011 Report Share Posted August 25, 2011 (edited) how do you build it in xcode via the command line?BTW, skela, could you get on the irc channel later today, anytime after 5:00PM, EDT? (#0ad-dev) it may be easier to figure this out there. Edited August 25, 2011 by theShadow Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 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-pchcd gccmake CONFIG=Debug -j3in particular, look at what comes out from make CONFIG=Debug -j3 Quote Link to comment Share on other sites More sharing options...
theShadow Posted August 25, 2011 Report Share Posted August 25, 2011 http://pastie.org/2428662this is the output from that. Quote Link to comment Share on other sites More sharing options...
skela Posted August 25, 2011 Report Share Posted August 25, 2011 (edited) http://pastie.org/2428662this is the output from that.ok ill try and get on irc later ;D#0ad-dev Edited August 25, 2011 by skela Quote Link to comment Share on other sites More sharing options...
Yves Posted August 25, 2011 Report Share Posted August 25, 2011 oh, and when i run the binary in the system folder, it does this:./system/pyrogenesisdyld: Library not loaded: libnvcore.dylib Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis Reason: image not foundIt 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. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted August 27, 2011 Report Share Posted August 27, 2011 oh, and when i run the binary in the system folder, it does this:./system/pyrogenesisdyld: Library not loaded: libnvcore.dylib Referenced from: /Users/skela/Desktop/0ad/git/0ad/binaries/./system/pyrogenesis Reason: image not foundIt looks like you're running the binary from the binaries directory instead of system, where it expects to find all the libraries. Quote Link to comment Share on other sites More sharing options...
skela Posted August 27, 2011 Report Share Posted August 27, 2011 It looks like you're running the binary from the binaries directory instead of system, where it expects to find all the libraries.but i thought the system folder was inside the binaries folder.anyway, its working ok for me Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted August 27, 2011 Report Share Posted August 27, 2011 but i thought the system folder was inside the binaries folder.anyway, its working ok for me To put it another way, the location where you run the binary becomes the working directory and the game only supports binaries/system (because all the game data paths are relative to that, not just the libraries) Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted September 1, 2011 Report Share Posted September 1, 2011 Just an FYI, I committed the latest patch to our new build system (r10154). So "--without-pch" should no longer be necessary for building with Xcode, please test if you can Quote Link to comment Share on other sites More sharing options...
theShadow Posted September 1, 2011 Report Share Posted September 1, 2011 I can confirm that it works. thanks History bruno. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted October 3, 2011 Report Share Posted October 3, 2011 Another heads-up: the new premake4 build system is now the default and the old has been removed. So you'll want to use update-workspaces.sh now Quote Link to comment Share on other sites More sharing options...
theShadow Posted October 4, 2011 Report Share Posted October 4, 2011 awesome. any news on the sound issues? Quote Link to comment Share on other sites More sharing options...
JuliusColtranePille Posted October 4, 2011 Report Share Posted October 4, 2011 sorry for only taking a glimpse...but what is the thing to do to run atlas now in alpha 7?regards!!! Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted October 4, 2011 Report Share Posted October 4, 2011 sorry for only taking a glimpse...but what is the thing to do to run atlas now in alpha 7?regards!!!It requires a custom build from SVN, since the required changes were made after Alpha 7 was released. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.