On 31 Jan 2010, at 13:35, Frede wrote:

> CDT don't works with fltk.
> CDT don't find include files, fltk/Window.h, fltk/Widget.h and fltk/ 
> run.h. Show message "No include files were found that matched that  
> name."

And do you think that this is a fltk problem?

For me, I don't think it is a fltk problem - rather I think you have  
not configured CDT correctly, setting the required paths.
I know that others have managed to make this work, so I have to  
conclude that the issue is one of configuring your set-up.

Did you follow the advice given before about project settings? What  
happened? Did that not work for you?

> Note: fltk in console "#fltk-config  --compile" works perfect.

Hmm, a couple of questions arise from this comment:

1) In your examples, you give paths of "fltk/Window.h" and so forth.
Those are fltk-2 file names, but you appear to have called up "fltk- 
config" which is a fltk-1.x package script.
The correct package script for fltk-2 is "fltk2-config".
So, are you using fltk-1 or fltk-2?
You need to sort that out before we can understand your questions fully.
Perhaps this is what you are doing wrong? Fltk-1 and fltk-2 are not  
interchangeable.

2) The "#" before "fltk-config" in your example - is that the console  
prompt? If so, that would imply you are running as root (on *nix  
systems, root gets a # prompt, normal users get a $ prompt.)
If so, then do not do that - doing dev work as root is potentially  
hazardous to your system...


>
>
>> Am 23.01.2010 07:54, schrieb Frede:
>>> Dear,
>>> I use Ubuntu9.04 and CDT 6.0.1
>>> How to set up FLTK 1.1.10 in CDT?
>>
>> I'm using Fedora, but it should be the same. It's a matter of project
>> settings:
>>
>> [Project] -> [Properties] -> "C/C++Build" -> "Settings"
>>
>> For "GCC C++ Compiler" -> "Directories" you need to insert the  
>> include
>> directory for header files: "/usr/local/include"
>>
>> After that includes like <FL/Fl_Window.H> should be found by the  
>> CDT. If
>> not you should control the output of "make install" when setting up
>> FLTK, there the include directory is shown.
>>
>> Next you need to setup the Linker by telling the libraries "GCC C++
>> Linker" -> "Libraries":
>>
>> fltk_images
>> fltk_jpeg
>> fltk_png
>> fltk_z
>> fltk
>> pthread
>> dl
>> m
>> Xext
>> X11
>> Xpm
>>
>> "fltk_images" to "fltk_z" are optional, Xpm is for using an icon.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to