Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most current way to install (on Windows) #9

Open
kingoftheconnors opened this issue Jul 18, 2019 · 3 comments
Open

Most current way to install (on Windows) #9

kingoftheconnors opened this issue Jul 18, 2019 · 3 comments

Comments

@kingoftheconnors
Copy link

I notice that the luaRocks versions haven't been updated in 3 years, and that the makefile is pretty much built for a UNIX environment. What is the preferred way to install this on a windows computer? Cygwin? MinGW?

@siffiejoe
Copy link
Owner

I have used LuaRocks (configured for MinGW or MSVC) to build fltk4lua. I have never tried it with Cygwin. Some short instructions are in the Wiki here.

@s-ol
Copy link

s-ol commented May 13, 2020

@siffiejoe: I managed to build using MSVC today, but the instructions seem outdated. Your luarocks-build-cpp package does not seem to be compatible with luarocks 3, while the 'main' manifest version does work.

Also, the fltk .lib libraries in $FLKT/libs were called differently than what your rockspec looks for:

           libraries = {
-           "fltk_images",
-           "fltk_jpeg",
-           "fltk_png",
-           "fltk_z",
+           "fltkimages",
+           "fltkjpeg",
+           "fltkpng",
+           "fltkzlib",
            "fltk",

with these changes everything worked fine :)

For others struggling with this: to get FTLK in the first place, I downloaded and unpacked the source, then opened the "2010" SLN file in the ide/ subdirectory and built the fltkdll project (in release mode). I then built it with FLTK_INCDIR=/path/to/fltk-1.3.5 FLTK_LIBDIR=/path/to/fltk-1.3.5/libs. As far as I understand this should link fully statically, which means that you can then delete/remove the fltk directory, and it should be possible to move the resulting fltk4lua.dll to other systems.

@siffiejoe
Copy link
Owner

luarocks-build-cpp has a new maintainer and has been updated in the main LuaRocks manifest. I've removed the section recommending my own (now obsolete) version from this wiki. The library names seem to have changed at some point. I still have the old names on my Ubuntu installation of libfltk-1.3, so I haven't changed the rockspec just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants