The following versions were used: fltk v1.3.3, Code::Blocks 16.01, and Windows 7
1. Download fltk-1.3.3-source.tar.gz from http://www.fltk.org/software.php and extract it to C:\
2. Download the installer mingw-get-setup.exe from http://sourceforge.net/projects/mingw/files/. In the MinGW Installation Manager, make sure to install mingw-developer-toolkit, mingw32-base, mingw32-gcc-g++ and msys-base
3. Start msys by launching msys.bat found in C:\MinGW\msys\1.0\
4. Type the following in msys:
cd /c/ (This changes the directory to the C drive)
cd fltk-1.3.3 (This changes the directory to C:\fltk-1.3.3. To check your current working directory, you can type pwd)
./configure
make
make install
5. To successfully create a FLTK project in Code::Blocks, use Solution #1 in http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
Sources:
https://groups.google.com/forum/#!topic/ppp-public/CuTWEfUcPiw
https://sites.google.com/site/bauyt008/code--blocks-tips--tricks-and-tutorials/c-fltk
http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
https://users.cs.jmu.edu/bernstdh/Web/common/labs/skills_windows-command-shell/msys/index.php
The first actual tutorial that works.
ReplyDeleteI am using Windows 10 (home edition), Code::Blocks 17.12 and MingGW-get-setup.exe asyou described. Only tricky bit (which you didn't give instructions on) was the MinGW Installation Manager, once you tick the packages you want to install, you need click on the installation menu, and select "allow changes" to install the packages. Recommend also for future versions of this tutorial some screenshots, if possible. Other than that great tutorial!!
I was trying to install fltk-1.3.5 but got an error message:
ReplyDeleteg++.exe: error: fast_slow.cxx: No such file or directory
What would you advise?
Sweet Jesus... Thank you so much. You save at least one computer from sudden death :)
ReplyDelete