On 05.12.2012 08:10, Edzard Egberts wrote:
> siaswar tompani schrieb:
>> How can I compile my projects in eclipse. It can't find th fl librarys.
>> I can Compile in command line so it is not mingw issue
>
> Select your project, than go to [File]->[Properties]->"C/C++ Build" ->
> "Settings":
>
> "GCC/MinGW C++ Compiler - Includes" there must be a path to FLTK header
> files, e.g. "c:\fltk", "/usr/local/include".
>
> "GCC/MinGW C++ Linker - Libraries" there must be the Libraries filled in
> (eg. fltk, fltk_images), also the library search path, e.g.
> "c:\fltk\lib", "/usr/local/lib".
>
> Also there must be some additional libraries entered (more or less
> depends from you project):
>
> Linux: Xft, fontconfig, Xinerama, Xext, freetype, pthread, dl, m, X11, Xpm
>
> Windows: pthread, ole32, uuid, comctl32, wsock32
>
> For MS-Windows you need to enter in addition:
>
> "MinGW C++Linker - Miscellaneous - Linker flags": -mwindows

I'd like to add something like this to the README files for FLTK.
However, I'm not using eclipse myself, so I'd depend on your knowledge
to do it right. Would you mind if we'd take your text for a README
file? Could you maybe help to make it even more clear?

However, before we do, there are some parts that look not completely
correct to me. Maybe it was written down quickly, and so there are
a few glitches:

I don't think that we should recommend adding pthread to Windows builds.
The demo programs use native threads, and that's what we'd recommend
to Windows users. See also a recent thread, replied to by Ian, if
I remember and understand this correctly.

wsock32 is deprecated, it should be ws2_32 (at least starting with
FLTK 1.3), but fltk 1.3 itself doesn't need it added explicitly,
since it will be loaded dynamically. But in the context it appears
above, it's used somehow as an option, "depending from (better: on)
your project", so it appears sensible to add it as an option?

Also, for all builds, we should probably separate fltk's own
dependencies (e.g. Xext, dl, X11 and some more) and optional
dependencies (e.g. pthread, Xinerama, maybe also Xft, although
this is the default, and so on...).

Thoughts and comments, anybody?

Where should we add it? A file of its own (since it is for more
than on OS, like README.CMake.txt, maybe README.Eclipse.txt)?
Is it considered a FAQ, should we add it to the docs in the new
FAQ section?

Albrecht

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

Reply via email to