mtkaz Posted June 19, 2011 Report Share Posted June 19, 2011 I was requested to modify the makefiles of pyrogenesis to build it on OS X (see Forums> 0 A.D.> General Discussion & Ideas > Alpha 5 Binaries For Mac Os X). I uploaded the files to my site. Please check them. The URL is:http://ciderhouse.opal.ne.jp/wp/english/zeroad Quote Link to comment Share on other sites More sharing options...
theShadow Posted June 19, 2011 Report Share Posted June 19, 2011 ok, I am not sure what I did wrong, but when I ran "make CONFIG=Release clean", it started trying to delete everything on my computer! I canceled the process, and don't think anything is gone, but I am really really confused as to what the hell just happened.any ideas? Quote Link to comment Share on other sites More sharing options...
wrod Posted June 19, 2011 Report Share Posted June 19, 2011 i think "clean" cleans out the whole computer lol Quote Link to comment Share on other sites More sharing options...
theShadow Posted June 19, 2011 Report Share Posted June 19, 2011 (edited) but it should only do that if I were in the root directory. I was in the gcc directory, like the instructions said.also, the commands for leopard, are those for snow leopard as well?EDIT:when I try to compile, i get this error message Pearce-Michals-MacBook-Pro:gcc pearcemichal$ make config=release==== Building mocks_real ====mocks_real.cpp/bin/sh: ”g++-mp-4.5: command not foundmake[1]: *** [obj/mocks_real_Debug/mocks_real.o] Error 127make: *** [mocks_real] Error 2Pearce-Michals-MacBook-Pro:gcc pearcemichal$ Edited June 19, 2011 by theShadow Quote Link to comment Share on other sites More sharing options...
mtkaz Posted June 20, 2011 Author Report Share Posted June 20, 2011 (edited) I also experienced "make" try to delete files under the root when I made a typo like "make CONFIG=Relese clean". It's not my fault. It had occurred before I modified makefiles. Perhaps the makefiles which Premake generated is not so gentle for user's mistake.BTW, Snow Leopard users don't need to use gcc-4.5. TheShadow's error message tells gcc-4.5 is not installed. You don't need the commands (export CC=...) just after update-workspaces.sh.P.S. You don't need make "CONFIG=Release clean" if you installed the source code the first time. Edited June 20, 2011 by mtkaz Quote Link to comment Share on other sites More sharing options...
theShadow Posted June 20, 2011 Report Share Posted June 20, 2011 ok, i figured. also, as it turns out, it DID delete stuff. all of my files are intact, but almost all of my applications are gone. I am working on replacing them now. what's odd is, it deleted the application, but the application data is still intact (like when I reinstalled chrome web browser, all of my bookmarks were still there.) Quote Link to comment Share on other sites More sharing options...
feneur Posted June 20, 2011 Report Share Posted June 20, 2011 ok, i figured. also, as it turns out, it DID delete stuff. all of my files are intact, but almost all of my applications are gone. I am working on replacing them now. what's odd is, it deleted the application, but the application data is still intact (like when I reinstalled chrome web browser, all of my bookmarks were still there.)I don't know anything about how Mac does things, but perhaps it works like Windows (and afaik Linux as well for the most part) and installs the application data in another place than the applicatoin itself? Quote Link to comment Share on other sites More sharing options...
Sebovzeoueb Posted June 20, 2011 Report Share Posted June 20, 2011 OS X seems to keep stuff in /Library/Application Support/ and /System/Library/ it is confusing how there are two folders called Library, both with similar functions. Quote Link to comment Share on other sites More sharing options...
theShadow Posted June 20, 2011 Report Share Posted June 20, 2011 one is a library for the system, and one is a library for a specific user. also, application data is only installed in different places if you use an actual installer. here I am compiling the data from source, so it mostly stays in the source folder. Quote Link to comment Share on other sites More sharing options...
Sebovzeoueb Posted June 20, 2011 Report Share Posted June 20, 2011 Wow, I have just realised there are actually 3 folders called Library! The two that I mentioned above don't include the user specific one. The user one is in /Users/username/Library/. Quote Link to comment Share on other sites More sharing options...
kissofdeath Posted June 21, 2011 Report Share Posted June 21, 2011 Those of you who have tried it, does it work fine?Though I wouldn't need to type make CONFIG=Release cleanthe first time, I'm just a little apprehensive about it.Great work mtkaz! Is this going to be part of the svn repo soon? Quote Link to comment Share on other sites More sharing options...
mtkaz Posted June 21, 2011 Author Report Share Posted June 21, 2011 The role of each Library directories is very clear. But it's nothing to do with this matter. The problem is Premake or Premake script. "clean" section of makefile which Premake generated is:-@rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR)If you misspelled the words, CONFIG or Release, the variables aren' set. They must be null. In this case clean section become:rm -rf /This command means deleting all files on your system. 'rm' command try to delete files by alphabetical order. So /Applications becomes the first victim. File permission allowed, it delete the file.It's dangerous. I think this doesn't depend on OS X. Quote Link to comment Share on other sites More sharing options...
theShadow Posted June 21, 2011 Report Share Posted June 21, 2011 ok, thank you for adding that warning to the directions.also, when you do this, just be aware of what the terminal is doing. If it starts doing things in a place it should not belong, then something is wrong, and you should kill the application. btw, as of this moment I am pretty much back on my feet in terms od applications. Quote Link to comment Share on other sites More sharing options...
kissofdeath Posted June 21, 2011 Report Share Posted June 21, 2011 Ah thanks for the info mtkaz.Just to save others the search:/System/Library is the location for the core parts of the operating system needed by your Mac to function./Library is the location for the parts of the operating system that apply to ALL users and applications running on the Mac like fonts and system wide application preferences./Users//Library is the location for all the user specific parts of the operating system like preferences, favorites, recent items, etc. 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.