Log in

View Full Version : Compiling Instructions (Windows)



ZoriaRPG
12-19-2016, 08:17 PM
Someone may wish to pin this topic.

Building ZC With MSYS
A simple guide by ZoriaRPG
4th December, 2016



1. If you have not already done so, install MinGW and MYSY on your system.
1a. Be sure to install all the basic packages.

2. Download the ZC '2.50.x' branch to your local filesystem.

3. Download this revised makefile (http://timelord.insomnia247.nl/zc/zc_dev/makefile), and keep it handy in the event of errors.

4. On your local filesystem, locate and open this path:
drive:\MinGW\lib\gcc\mingw32\5.3.0\include

5. On your local filesystem, open the path to the zc sources, to this point:
drive:\pathto\zeldaclassic-2.50.x\allegro

6. In this 'allegro' directory, you will find:
allegro\
fixed\
allegro.h
winalleg.h

7. COPY (do not move) the two directories, and the two headers, to the path from (4).

8. In the zc files path, make the following directory:
obj\
Note: This should be at the same level as src\, allegro\, bin\, include\, libs\, other\, projects\, and utils\

9. Inside the newly made obj\ directory, create the subdirectory:
parser\
Thus, you should have: drive:\zcfiles\obj\parser

10. On your filesystem, find and open this path:
drive:\MinGW\msys\

11. Run the batch file, msys.bat

12. A terminal window will open.

13. Use the cd command to move to the path containing the zc sources and makefile[/I, one directory at a time].
NOTE: MSYS uses Linux style paths, not MS-DOS style paths, so the path will be represented as:
[I]DRIVE:/pathto/zeldaclassic-2.50.x/

14. Once the path containing the makefile is your current directory, enter the command:
make

15. This will start the building process.

16. If you encounter early errors on missing headers, replace the makefile with the makefile that your downloaded in ( 3 ).

15. If you encounter late-compiling header errors, ensure that you copied all the files in steps ( 4 ) to ( 7 ).