coding:wolf4sdl:setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
coding:wolf4sdl:setup [2020/06/10 21:43]
zombie Added a section to help set up for compiling with recent Code::Blocks versions (Version 18 and above)
coding:wolf4sdl:setup [2020/06/11 14:57] (current)
zombie
Line 5: Line 5:
 === What you will need === === What you will need ===
  
-  * [[http://​www.codeblocks.org/​downloads/​binaries|Code::​Blocks with MinGW]]+  * [[http://​www.codeblocks.org/​downloads/​source/5|Code::​Blocks with MinGW]] ​- Make sure to get version 16.01 to make sure everything runs smoothly!
   * [[http://​www.libsdl.org/​download-1.2.php|SDL Devel Win32\MinGW]]   * [[http://​www.libsdl.org/​download-1.2.php|SDL Devel Win32\MinGW]]
   * [[https://​www.libsdl.org/​projects/​SDL_mixer/​release-1.2.html|SDL Mixer Devel Win32]]   * [[https://​www.libsdl.org/​projects/​SDL_mixer/​release-1.2.html|SDL Mixer Devel Win32]]
Line 49: Line 49:
   - Select the '​Linker'​ tab and repeat the previous step, this time inputting the directory with the SDL lib files (C:\Program Files\CodeBlocks\MinGW\lib in this tutorial).   - Select the '​Linker'​ tab and repeat the previous step, this time inputting the directory with the SDL lib files (C:\Program Files\CodeBlocks\MinGW\lib in this tutorial).
   - Click OK on the Project build options window to close it and save your changes.   - Click OK on the Project build options window to close it and save your changes.
- 
-===== Changes required for Code::​Blocks version 18 and above ===== 
- 
-If you download the most recent builds of Code::​Blocks,​ you might receive an error that reads as follows: 
- 
-{{ codeblocks20error.png }} 
- 
-This is very easily fixed. In Code::​Blocks,​ go to Settings->​Compiler Settings and click on the Toolchain Executables tab. You should see something similar to the following. 
- 
-{{ freshcompilersettings.png?​600 }} 
- 
-For some reason, Code::​Blocks doesn'​t immediately identify where MinGW is (Despite being installed with it!), and mislabels the '​Program Files'​. If you navigate to your Code::​Blocks folder, then go to /MinGW/bin, you will see there are no files with titles starting with "​mingw32"​. 
- 
-{{ mingwfolder.png?​ }} 
- 
-To fix it, first change the listed '​Compiler'​s installation directory'​ to the actual location of the MinGW installation so Code::​Blocks knows where the files *really* are. 
- 
-Then, change the listed files in the '​Program Files' subtab to their appropriate names (Example: '​mingw32-gcc.exe'​ should just be '​gcc.exe'​). 
- 
-It should now look similar to this (Though your '​Compiler'​s installation directory'​ will vary): 
- 
-{{ coding:​wolf4sdl:​compilersettings.png?​600 }} 
- 
-Once all that is correct, you should be ready for compiling. 
  
 ===== Building your Wolf4SDL.exe ===== ===== Building your Wolf4SDL.exe =====
  
-Provided everything above has been done correctly, you should now be able to compile your code! Click on Build->​Build to test it!+Provided everything above has been done correctly, you should now be able to compile your code! Click on Build->​Build to test it! If not, look below.
  
 Remember! To test your EXE file, you will need to put it in the same directory as your game, along with the SDL.dll and SDL_Mixer.dll files. Click here to find out where to get them. Remember! To test your EXE file, you will need to put it in the same directory as your game, along with the SDL.dll and SDL_Mixer.dll files. Click here to find out where to get them.
  • coding/wolf4sdl/setup.txt
  • Last modified: 2020/06/11 14:57
  • by zombie