User forums > Using Code::Blocks
Building FLTK with Code::Blocks/ mingw
nji:
Hello.
I'm still new to CB etc. (coming from VS) and did fairly good
with the standard installation (still 16.02).
Now I wanted to use FLTK for smaller executables,
but am not successful in generating it.
The installation instruction for fltk is in
README.MSWindows.txt
There it says to configure fltk by typing "configure" in a
dos box opened in the fltk directory.
But in whole CB/ mingw there is no "configure" so similar.
Same with make.
So I chose mingw32-make
But this gave an error
Makefile:19: makeinclude: No such file or directory
Why must be there hurdles in the most simplest things?
In VS I double-click the solution file, build, done.
Please help.
sodev:
You need to differentiate between two things: building the library and using the library. First you need to build the library and it is very unlikely that it ships with project files for CodeBlocks like it does for Visual Studio. The next difference is that CodeBlocks is not bound to a specific compiler like Visual Studio, you can even use the Visual Studio compiler with CodeBlocks! If you are doing this you are already done with step one, you can use the library you created with the Visual Studio project files.
But it seems like you are not doing this but instead use GCC? Unfortunately you have to compile the library first and that most probably not by using CodeBlocks. The instructions you refer sound like they are for a posix like environment like MSYS2. I don't know if they also ship pregenerated Makefiles or offer some other way to build with native tools only, you have to refer to their documentation and better ask in their forums for help.
If you need help integrating the library into a CodeBlocks project you can get help here.
nji:
Please excuse if my description was not clear enough.
I just want to make FLTK usable in CB.
And I know I have to build FLTK for that.
I use CB 16.0.2 with mingw.
I did not expect that FLTK includes CB projects for its build process.
But it includes makefiles of course.
And I had expected that these makefiles can be used by
mingw tools (mingw32-make etc.).
But sadly the mingw tools seems not sufficient for building FLTK.
As there is need for a "pre makefile" step = configuration step.
And for this step there seems to be necessary additional tools
(like autoconf or cmake if I get it right).
These are MANY steps (let me call them hurdles ;-)
for someone coming from the convenient "VS paradise".
Moreover the documentation is completely unsufficient, incomplete.
stahta01:
Code::Blocks is an IDE/Editor it is not a Compiler!!!!!
Tim S.
stahta01:
Please read the directions for FLTK and ask questions about them at another website!
Please read and follow the rules for this website!
http://forums.codeblocks.org/index.php/topic,9996.0.html
--- Quote ---3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.
--- End quote ---
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version