lua-fltk4lua icon indicating copy to clipboard operation
lua-fltk4lua copied to clipboard

Using fltk4lua on windows

Open MangelMaxime opened this issue 8 years ago • 2 comments

Hello,

I am trying to use fltk4lua on windows but I encounter a problem.

When I am trying to install fltk4lua I got the following error :

luarocks install fltk4lua FLTK_DIR=D:\_working\libs\FLTK

Installing https://luarocks.org/fltk4lua-0.1-1.src.rock...
Using https://luarocks.org/fltk4lua-0.1-1.src.rock... switching to 'build' mode

Error: Could not find library file for FLTK
  No file fltk.lib in D:\_working\libs\FLTK/lib
  No file fltk.dll in D:\_working\libs\FLTK/lib
  No file libfltk.dll in D:\_working\libs\FLTK/lib
You may have to install FLTK in your system and/or pass FLTK_DIR or FLTK_LIBDIR to the luarocks command.
Example: luarocks install fltk4lua FLTK_DIR=/usr/local

Press any key to close this window...

I successfully install FLTK, and tested it using fluid for example. But I installed FLTK using gcc compiler via cygwin as it was shown on the documentation. And it's doesn't generate dll files.

Only this files for the inside of lib folder : Picture lib

Is it possible to use another format that dll files under windows ?

I am asking it as 'from the FLTK documentation dll are a depreceted way of using FLTK'.

MangelMaxime avatar Feb 10 '16 17:02 MangelMaxime

Ok, I just saw on the wiki you manage to compile it using MinGW and Visual Studio Express. I will try Visual Studio tomorrow, as for me MinGW was doing some really weird things today.

MangelMaxime avatar Feb 10 '16 20:02 MangelMaxime

What is the file name of your FLTK library? Maybe LuaRocks just need some convincing to look for the correct files (although it is strange that LuaRocks seems to use the windows section of the rockspec -- it should behave like on unix). Anyway, I don't have cygwin installed, so I can't test.

siffiejoe avatar Feb 10 '16 22:02 siffiejoe