gccg-meccg-macports-macOS
Posted: Mon Aug 21, 2017 1:54 am
Here are updated instructions for macOS if you want to run gccg on a new Mac.
Unfortunately, you have to have a "copy" of the 'metw' folder with all the goodies to get this going tho.
But if you saved a copy you can do all this on macOS 10.10-10.12
gccg-meccg-macports-macOS-10.12.6
1. Latest Xcode for your version of MacOS (it’s free, on the app store)
a. macOS 10.13 (macports not ready, install while on 12)
might be able to get away with sierra macports
b. macOS 10.12 Xcode 8.x
c. macOS 10.11 Xcode 7.x
d. macOS 10.10 Xcode 6.x
2. Launch and quit Xcode, then install Xcode CLT (Command Line Tools), in Terminal (most of these commands are in Terminal.app):
xcode-select --install
xcodebuild -license
3. Install X11
https://www.xquartz.org (get .dmg, install)
4. Goto macports.com and select the installer .dmg
for your version of macOS
5. Launch Terminal and do:
sudo port -v selfupdate
6. Find the Java installer dmg named:
javaforosx.dmg
Java for OS X 2015-001 (mounted name)
dated 7/22/15, best version I’ve found, most compatible
7. With macports installed run the following commands:
sudo port install jpeg build_arch=i386
sudo port install libpng build_arch=i386
(there was a problem with ncurses can't trace what it was)
try 1st: sudo port install ncurses build_arch=i386
if no problems continue
otherwise:
sudo port -fp uninstall ncurses
sudo port clean ncurses
try 2nd: sudo port install ncurses +universal
the 1st one should cut it tho from my bash log
sudo port install libsdl build_arch=i386
sudo port select --set python python27
sudo port select --set python2 python27
sudo port install libsdl_image build_arch=i386
(there is beta bug with libmikmod, right now, so just work with this)
sudo port install mikmod
sudo port install libsdl_mixer +universal
sudo port select --set python python27
sudo port select --set python2 python27
sudo port install libsdl_net build_arch=i386
sudo port install libsdl_ttf build_arch=i386
8. Make a symbolic link for /opt/local/lib, so gccg can find them:
sudo ln -s /opt/local/lib /sw/lib
9. Get this library: libjpeg.62.dylib, from here:
http://trac.greenstone.org/browser/othe ... ?rev=17620
If you can’t for some reason I’ll dropbox it. Put on your Desktop (in terminal):
cp ~/Desktop/libjpeg.62.dylib /opt/local/lib/libjpeg.62.dylib
10. Use a gui svn client or use command line, I use Versions.app
google search versions app mac (30 day trial)
11. Create gccg-svn folder in /Applications
12. Pull latest core from http://ccg@svn.code.sf.net/p/gccg/svn
user: ccg
pass: ccg
save as core inside /Applications/gccg-svn/
13. At this point we’re stuck, because we can’t get the latest metw but if you happen to have a fresh folder you’re in luck! otherwise see step 14.
14. Get latest metw from https://github.com/vastorper/dc
Now Using GitHub and you can either clone for git updating, or download the zip, it's much faster now.
15. You should have two folders:
/Applications/gccg-svn/core
/Applications/gccg-svn/metw
16. After all pulling is up to date, duplicate gccg-svn to gccg-svn copy (or right click zip it)
17. Duplicate gccg-svn again to ‘gccg-svn copy 2’ and rename to gccg
18. You should have two folders for MAIN work:
/Applications/gccg/core
/Applications/gccg/metw
note: The reason for the multiple copies is for backup and in case you have to redo the setup.
19. So at this point since you pulled from gccg/core you don’t have to build it (thankfully) but we are using the x86 version i.e. 32-bit, but you have to install it! If you have any problems just replace the folders and redo below:
20. Goto to the App folder and run:
cd /App*/gccg/core
./gccg_package install client fonts darwin-i386
./gccg_package install Metw
21. MacOS has a merge feature built into the Finder. USE IT
What you have to do is go into the /App*/gccg/metw directory and
a. Drag a Folder to /App*/gccg/core if it says replace DON’T!
“option drag” to the ../core folder and it will ask you in
finder to Merge, goto the next folder
b. Drag the next folder if it just drops in, you’re good, else
see (a)
22. Goto /App*/gccg/core/scripts/client.triggers, open in Xcode
change this:
server.name_default="NO.DEFAULT.SERVER.FOR.THIS.GAME";
server.name=server.name_default;
mode="";
to this:
# server.name_default="NO.DEFAULT.SERVER.FOR.THIS.GAME";
server.name_default="199.91.172.122";
server.name=server.name_default;
mode="";
23. If you are on say a MacBook Pro 15” retina, goto:
cd /App*/gccg/core
./Metw --geometry 1400x800 --user <your user name you want/use>
24. command-click and select reconnect to server!
25. You’re IN!
Thanks for reading! Hope this helps somebody!
n.b. Homebrew not so freindly! because i386 needed.
n.b If someone goes thru and wants to post notes, for cleaning up some stuff on a 2nd go around! Let me know!
Lagers...
Unfortunately, you have to have a "copy" of the 'metw' folder with all the goodies to get this going tho.
But if you saved a copy you can do all this on macOS 10.10-10.12
gccg-meccg-macports-macOS-10.12.6
1. Latest Xcode for your version of MacOS (it’s free, on the app store)
a. macOS 10.13 (macports not ready, install while on 12)
might be able to get away with sierra macports
b. macOS 10.12 Xcode 8.x
c. macOS 10.11 Xcode 7.x
d. macOS 10.10 Xcode 6.x
2. Launch and quit Xcode, then install Xcode CLT (Command Line Tools), in Terminal (most of these commands are in Terminal.app):
xcode-select --install
xcodebuild -license
3. Install X11
https://www.xquartz.org (get .dmg, install)
4. Goto macports.com and select the installer .dmg
for your version of macOS
5. Launch Terminal and do:
sudo port -v selfupdate
6. Find the Java installer dmg named:
javaforosx.dmg
Java for OS X 2015-001 (mounted name)
dated 7/22/15, best version I’ve found, most compatible
7. With macports installed run the following commands:
sudo port install jpeg build_arch=i386
sudo port install libpng build_arch=i386
(there was a problem with ncurses can't trace what it was)
try 1st: sudo port install ncurses build_arch=i386
if no problems continue
otherwise:
sudo port -fp uninstall ncurses
sudo port clean ncurses
try 2nd: sudo port install ncurses +universal
the 1st one should cut it tho from my bash log
sudo port install libsdl build_arch=i386
sudo port select --set python python27
sudo port select --set python2 python27
sudo port install libsdl_image build_arch=i386
(there is beta bug with libmikmod, right now, so just work with this)
sudo port install mikmod
sudo port install libsdl_mixer +universal
sudo port select --set python python27
sudo port select --set python2 python27
sudo port install libsdl_net build_arch=i386
sudo port install libsdl_ttf build_arch=i386
8. Make a symbolic link for /opt/local/lib, so gccg can find them:
sudo ln -s /opt/local/lib /sw/lib
9. Get this library: libjpeg.62.dylib, from here:
http://trac.greenstone.org/browser/othe ... ?rev=17620
If you can’t for some reason I’ll dropbox it. Put on your Desktop (in terminal):
cp ~/Desktop/libjpeg.62.dylib /opt/local/lib/libjpeg.62.dylib
10. Use a gui svn client or use command line, I use Versions.app
google search versions app mac (30 day trial)
11. Create gccg-svn folder in /Applications
12. Pull latest core from http://ccg@svn.code.sf.net/p/gccg/svn
user: ccg
pass: ccg
save as core inside /Applications/gccg-svn/
13. At this point we’re stuck, because we can’t get the latest metw but if you happen to have a fresh folder you’re in luck! otherwise see step 14.
14. Get latest metw from https://github.com/vastorper/dc
Now Using GitHub and you can either clone for git updating, or download the zip, it's much faster now.
15. You should have two folders:
/Applications/gccg-svn/core
/Applications/gccg-svn/metw
16. After all pulling is up to date, duplicate gccg-svn to gccg-svn copy (or right click zip it)
17. Duplicate gccg-svn again to ‘gccg-svn copy 2’ and rename to gccg
18. You should have two folders for MAIN work:
/Applications/gccg/core
/Applications/gccg/metw
note: The reason for the multiple copies is for backup and in case you have to redo the setup.
19. So at this point since you pulled from gccg/core you don’t have to build it (thankfully) but we are using the x86 version i.e. 32-bit, but you have to install it! If you have any problems just replace the folders and redo below:
20. Goto to the App folder and run:
cd /App*/gccg/core
./gccg_package install client fonts darwin-i386
./gccg_package install Metw
21. MacOS has a merge feature built into the Finder. USE IT
What you have to do is go into the /App*/gccg/metw directory and
a. Drag a Folder to /App*/gccg/core if it says replace DON’T!
“option drag” to the ../core folder and it will ask you in
finder to Merge, goto the next folder
b. Drag the next folder if it just drops in, you’re good, else
see (a)
22. Goto /App*/gccg/core/scripts/client.triggers, open in Xcode
change this:
server.name_default="NO.DEFAULT.SERVER.FOR.THIS.GAME";
server.name=server.name_default;
mode="";
to this:
# server.name_default="NO.DEFAULT.SERVER.FOR.THIS.GAME";
server.name_default="199.91.172.122";
server.name=server.name_default;
mode="";
23. If you are on say a MacBook Pro 15” retina, goto:
cd /App*/gccg/core
./Metw --geometry 1400x800 --user <your user name you want/use>
24. command-click and select reconnect to server!
25. You’re IN!
Thanks for reading! Hope this helps somebody!
n.b. Homebrew not so freindly! because i386 needed.
n.b If someone goes thru and wants to post notes, for cleaning up some stuff on a 2nd go around! Let me know!
Lagers...