Author Topic: Using FLTK and Creating FLTK project  (Read 11272 times)

Offline tcsmith

  • Single posting newcomer
  • *
  • Posts: 3
Using FLTK and Creating FLTK project
« on: September 15, 2010, 05:00:48 am »
From C::B main page I click "Create a New Project", when the wizard comes up I click FLTK Project then go.  I type in a Project name, click next and the next wizard page reads "Please select FLTK location".  I use the browse button and navigate to the location that I have FLTK downloaded. When I click next I get an error message that reads

With fltk-1.1.10 I get, "The path you entered seems valid, but the wizard can't locate the include directory.  The wizard cannot continue."

With fltk-1.1.8 I get, "The path you entered seems valid, but the wizard can't locate the following FLTK's include file: Fl.h in it."

Neither version of FLTK that I downloaded had an "include" folder so I tried what one post suggested and created one and copied the contents of the "FL" folder into it, didn't work.  None of the other posts seemed to help me much.  I didn't find much on FLTKs website or by google searching. 

Does anyone know of a website/forum/etc. that has clear instructions for getting FLTK working with C::B ?

Thanks

Offline tpieciak

  • Single posting newcomer
  • *
  • Posts: 4
Re: Using FLTK and Creating FLTK project
« Reply #1 on: September 16, 2010, 11:41:48 pm »
I had had the same problem with FLTK and C:B.
I have chosen New project as a "Empty project" and then supplemented include and library paths manually.

It is my escape method of this error. Good luck!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Using FLTK and Creating FLTK project
« Reply #2 on: September 17, 2010, 01:52:35 am »
What Compiler name and version?
Did either of you Compiler FLTK for your Compiler?
If not, how did use get the Library?

Tim S.
« Last Edit: September 17, 2010, 06:11:49 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tcsmith

  • Single posting newcomer
  • *
  • Posts: 3
Re: Using FLTK and Creating FLTK project
« Reply #3 on: September 17, 2010, 04:33:23 pm »
I downloaded the CodeBlocks about 6 weeks ago so whatever compiler and version that would be. (I'm at work so don't have access to the program)

I downloaded fltk from www.fltk.org about a month ago and got both fltk-1.1.8 and -1.1.10.

I have not tried "Compiler FLTK for my Compile", I'm not sure what exactly your talking about with that.

Thanks for any help you can provide Tim.

Tpieciak,
as a back up I'll try your method.  Thanks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Using FLTK and Creating FLTK project
« Reply #4 on: September 17, 2010, 06:11:14 pm »
These are NOT trick questions!!
If you do not know the answer then that is likely why it does not work for you.

Note: Code::Blocks IS NOT an Compiler!!!!!

What Compiler are you using?
What version of the Compiler are you Using?

How did you Compile the source code of the FLTK Library? Or, where did you get an precompiled/binary library/DLL?

Edit: If you got precompiled/binary library/DLL, what is the full filename?

Tim S.
« Last Edit: September 17, 2010, 06:22:31 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Using FLTK and Creating FLTK project
« Reply #5 on: September 17, 2010, 06:38:57 pm »
Partial Answer to set up

Define the Global Variable FL to:

Base: The folder that holds the FL subfolder
Include: The folder that holds the FL subfolder
Lib: Unknown since the source I got does not include the Binary DLLs

A sub-forum that support the FTLK Library
http://www.gidforums.com/f-48.html

Remember to Tell them what Compiler you are using.
And, turn on "Full Compiler Logging".
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


Tim S
« Last Edit: September 17, 2010, 07:26:27 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tcsmith

  • Single posting newcomer
  • *
  • Posts: 3
Re: Using FLTK and Creating FLTK project
« Reply #6 on: September 18, 2010, 08:41:14 pm »
Tim S,

I'm using GNU GCC compiler that came with Code Blocks 10.05 download.

I downloaded the FLTK files straight from fltk.org and have not been able to compile them / build them / integrate them with Code Blocks IDE.  I have tried setting the as described below.  Thanks for your help, I'll keep plugging away.

Thad

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Using FLTK and Creating FLTK project
« Reply #7 on: September 18, 2010, 11:02:07 pm »
I tried the makefile.mingw that came with the source and it failed in the jpeg section for me; it looks to be about 2 years older than the source code. You will likely need to use CMake to build the library.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ebachalo

  • Single posting newcomer
  • *
  • Posts: 1
Re: Using FLTK and Creating FLTK project
« Reply #8 on: December 16, 2023, 12:25:43 am »
Old topic but in case someone else sees this error.
I am are using msys2 in environment UCRT64.

Ensure you have installed    mingw-w64-ucrt-x86_64-gcc and mingw-w64-ucrt-x86_64-autotools i.e.
$ pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-autotools


I downloaded lastest FLTK
Uncompress using: tar -xvzf fltk-1.3.#...

Then in the uncompressed directory run "make" and then on success "make install"
It will install the include files in msys64/ucrt64/include/
In Code::Blocks select the directory above the include directory, i.e. msys64/ucrt64/

- Eric