Advertisement
Guest User

Installing Infra Arcana from Github on Windows

a guest
Apr 13th, 2017
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. Installing Infra Arcana from Github on Windows
  2.  
  3. First, download the Infra Arcana source code. While you can do this via git on
  4. Windows, it's simplest (in terms of programs installed) to just download the
  5. project's zip and unzip it.
  6.  
  7. https://github.com/martin-tornqvist/ia/
  8.  
  9. IMPORTANT: You will separately have to do the same with the rl-utils folder.
  10. Just unzip it or copy-paste its contents into the same-named rl-utils folder
  11. in the ia directory.
  12.  
  13. https://github.com/martin-tornqvist/rl_utils
  14.  
  15. ---
  16.  
  17. Now, install CMake. The actual version doesn't matter too much, since it's
  18. just building makefiles and not doing anything deeper than that.
  19.  
  20. https://cmake.org/download/
  21.  
  22. ---
  23.  
  24. Install Code::Blocks. IMPORTANT: Do *not* install versions with MinGW. We will
  25. separately install MinGW-w64 ourselves.
  26.  
  27. http://www.codeblocks.org/downloads/26#windows
  28.  
  29. ---
  30.  
  31. Install MinGW-w64.
  32.  
  33. https://mingw-w64.org/doku.php/download/mingw-builds
  34.  
  35. Follow the link, which goes to a SourceForge download page. The installer will
  36. list some options to use with MinGW-w64 -- the defaults (i686, posix, dwarf)
  37. got me the least amount of errors. In any case, I recommend *not* using the
  38. x86_64 options, which did not work with CMake.
  39.  
  40. ---
  41.  
  42. Run CMake.
  43.  
  44. As the IA Github says:
  45. "For 'Where is the source code?' select the root folder of the ia repo (NOT
  46. the 'src' folder), and for 'Where to build the binaries?' select a folder
  47. called 'build' in the ia repo (the "build" folder may not actually exist yet,
  48. but it doesn't matter, just specify this path). Run 'Configure' and
  49. 'Generate'."
  50.  
  51. When you run 'Configure', you'll be asked about the generator and compilers.
  52. Use "CodeBlocks - MinGW Makefiles" and "Specify native compilers". On the
  53. screen to specify the compilers, you'll want to find the MinGW-w64 execs and
  54. put them in. They'll be at somewhere like:
  55. C:\Program Files (x86)\mingw-w64\i686-posix...\mingw32\bin
  56. where the ... is in place of the long config'd name. You'll want to use
  57. "i686-w64-mingw32-gcc.exe" for the C compiler and "i686-w64-mingw32-g++.exe"
  58. for the C++ compiler. We can ignore the Fortran one.
  59.  
  60. If you get a series of errors complaining about a missing libintl-8.dll, you
  61. need to put the bin folder containing the MinGW-w64 execs into your PATH.
  62.  
  63. You can follow the steps here:
  64. http://www.computerhope.com/issues/ch000549.htm
  65.  
  66. But essentially, right-click on the Windows logo in your taskbar. Go to
  67. System. Click "Advanced system settings" in the left pane, and then
  68. "Environment variables" in the window that pops up. In the bottom section --
  69. System variables -- you should click on the Path line and then edit. Add a
  70. line with the bin folder of the MinGW-w64 execs, as you located before.
  71.  
  72. So, again, do all the above, and you should be able "Configure" and "Generate"
  73. the Makefile successfully.
  74.  
  75. ---
  76.  
  77. Run Code::Blocks.
  78.  
  79. In Code::Blocks, you'll have to set some minor things up first.
  80.  
  81. In the top menu bar, go to Settings->Compiler. Go to the "Toolchain
  82. executables" header. You can try and see if Code::Blocks detects the MinGW-w64
  83. install with "Auto-detect." If that doesn't work, input the bin folder with
  84. the MinGW-w64 execs as you did before in CMake.
  85.  
  86. Change the existing names to their correct MinGW-w64 counterparts. So, gcc.exe
  87. should be "i686-w64-mingw32-gcc.exe" and so on. The last two programs --
  88. windres.exe and mingw32-make.exe -- will probably keep their names unchanged.
  89.  
  90. From there, you can begin building:
  91.  
  92. In the file menu, open up "ia.cbp" located in the build folder of the Infra
  93. Arcana folder.
  94.  
  95. Now, per the IA github:
  96. "In the drop-down target list (near the top of the screen) select the 'ia'
  97. target. Build by clicking on the yellow cogwheel, then run the game by
  98. clicking on the green arrow."
  99.  
  100. ---
  101.  
  102. If you followed everything, hopefully you shouldn't get any errors while
  103. building and hopefully the game will run (via CodeBlocks, at least).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement