www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Installing fltk4d

reply AnIHiL <aanihill hotmail.com> writes:
Hello,

I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my program
but all the time i have:
main.d(1): module all cannot read file 'fltk4d\all.d'

I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.

Anyone can help me ?
Nov 21 2007
next sibling parent reply Robert Fraser <fraserofthenight gmail.com> writes:
AnIHiL wrote:
 Hello,
 
 I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my
program but all the time i have:
 main.d(1): module all cannot read file 'fltk4d\all.d'
 
 I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.
 
 Anyone can help me ?
You need an import file (a ".di" file) (similar to a C/C++ ".h" file). Add this to the include path when building.
Nov 21 2007
parent reply AnIHiL <aanihill hotmail.com> writes:
Where I could find ".di" file ? I already checked all files that I have but
none of them have .di extension. 

Robert Fraser Wrote:

 AnIHiL wrote:
 Hello,
 
 I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my
program but all the time i have:
 main.d(1): module all cannot read file 'fltk4d\all.d'
 
 I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.
 
 Anyone can help me ?
You need an import file (a ".di" file) (similar to a C/C++ ".h" file). Add this to the include path when building.
Nov 21 2007
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
AnIHiL wrote:
 Where I could find ".di" file ? I already checked all files that I have but
none of them have .di extension. 
 
 Robert Fraser Wrote:
 
 AnIHiL wrote:
 Hello,

 I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my
program but all the time i have:
 main.d(1): module all cannot read file 'fltk4d\all.d'

 I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.

 Anyone can help me ?
You need an import file (a ".di" file) (similar to a C/C++ ".h" file). Add this to the include path when building.
You need to download the source, and add it to the include path. Check the instructions below "Download": http://dronten.googlepages.com/fltk4d
Nov 21 2007
parent reply AnIHiL <aanihill hotmail.com> writes:
I don't have now problem with:
main.d(1): module all cannot read file 'fltk4d\all.d'

I just change FLAGS in file sc.ini to:
DFLAGS="-I% P%\..\src\phobos" -Id:\d\dmd\import

But now I have another problem :)
d:\d\dmd\import\fltk4d\all.d(341): pragma link string expected for link, not '1'

I don't understand what I should do know.
PS:
It's my first program in D maybe that's why i have so many problems.

Ary Borenszweig Wrote:

 AnIHiL wrote:
 Where I could find ".di" file ? I already checked all files that I have but
none of them have .di extension. 
 
 Robert Fraser Wrote:
 
 AnIHiL wrote:
 Hello,

 I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my
program but all the time i have:
 main.d(1): module all cannot read file 'fltk4d\all.d'

 I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.

 Anyone can help me ?
You need an import file (a ".di" file) (similar to a C/C++ ".h" file). Add this to the include path when building.
You need to download the source, and add it to the include path. Check the instructions below "Download": http://dronten.googlepages.com/fltk4d
Nov 21 2007
parent anon <nomail gm.com> writes:
I managed to build all examples from fltk4d page, but to do that I had to wrap
every pragma link in 'all.d' in quotes:
         pragma(link, "fltk");
         pragma(link, "fltk_images");
etc...

AnIHiL Wrote:

 I don't have now problem with:
 main.d(1): module all cannot read file 'fltk4d\all.d'
 
 I just change FLAGS in file sc.ini to:
 DFLAGS="-I% P%\..\src\phobos" -Id:\d\dmd\import
 
 But now I have another problem :)
 d:\d\dmd\import\fltk4d\all.d(341): pragma link string expected for link, not
'1'
 
 I don't understand what I should do know.
 PS:
 It's my first program in D maybe that's why i have so many problems.
 
 Ary Borenszweig Wrote:
 
 AnIHiL wrote:
 Where I could find ".di" file ? I already checked all files that I have but
none of them have .di extension. 
 
 Robert Fraser Wrote:
 
 AnIHiL wrote:
 Hello,

 I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my
program but all the time i have:
 main.d(1): module all cannot read file 'fltk4d\all.d'

 I know that i should link libraries to my project but I don't know how to do
it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I
already try to put fltk.lib file in dmd\lib folder but this doesn't work.

 Anyone can help me ?
You need an import file (a ".di" file) (similar to a C/C++ ".h" file). Add this to the include path when building.
You need to download the source, and add it to the include path. Check the instructions below "Download": http://dronten.googlepages.com/fltk4d
Nov 24 2007
prev sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
Where did you download it from? If it is GregoR's package, either ask 
him directly on IRC , irc://irc.freenode.org/D , or via mail. He 
probably has forum for it somewhere on DSource...
Nov 24 2007