fltkd.lib is 32bit while libfltk.a is 64bit ???

61 views
Skip to first unread message

roger tunnicliffe

unread,
Oct 15, 2022, 10:18:08 PM10/15/22
to fltk.general
After working with Linux I have built fltk using VisualStudio on Windows and it appears that the static library fltkd.lib is only 32bit (unusable in my case).

Am I correct and can I build a 64bit version

Thx
Roger


lifeatt...@gmail.com

unread,
Oct 16, 2022, 10:39:41 AM10/16/22
to fltk.general
You can build a 64 bit version of FLTK by modifying the configuration in the solution file.

A quick google found this which might be helpful.

imm

unread,
Oct 16, 2022, 11:41:13 AM10/16/22
to fltkg...@googlegroups.com
On Sun, 16 Oct 2022 at 03:18, roger wrote:
>
> After working with Linux I have built fltk using VisualStudio on Windows and it appears that the static library fltkd.lib is only 32bit (unusable in my case).
>
> Am I correct and can I build a 64bit version

How do you convert the fltk cmake into a VS IDE .sln solution file?

I do it from the VS Developer console (a command line, basically)
before I launch the VS IDE.

So for a 64-bit .sln I use the "x64 Native Tools Command Prompt", cd
to the fltk folder then:

mkdir build-64
cd build-64
cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE=Release -A x64 ..

(note the trailing .. there, that is part of the command!)
That then generates a 64-bit solution, I double click the .sln file,
VS launches, build away.

For a 32-bit solution, I use the "x86 Native Tools Command Prompt", cd
to the fltk folder then:

mkdir build-32
cd build-32
cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE=Release -A Win32 ..

And so on. Both work.
This assume Vs2019, but I assume other VS versions are analogous.

There's also a cmake GUI inside of VS these days, but I've not really
used it so can not comment...

Philip Rose

unread,
Oct 16, 2022, 2:29:23 PM10/16/22
to fltkg...@googlegroups.com

From: imm
Sent: 16 October 2022 16:41
To: fltkg...@googlegroups.com
Subject: Re: [fltk.general] fltkd.lib is 32bit while libfltk.a is 64bit ???

<PVR>

Yes Ian, Earlier versions used say

 

-G “Visual Studio 14”

 

I’ve not upgraded to VS2021 yet.

</PVR>

 

There's also a cmake GUI inside of VS these days, but I've not really

used it so can not comment...

 

<PVR>

Nor have I, the documented flow works and I only need it for FLTK once in a blue moon.

 

Phil

</PVR>

roger tunnicliffe

unread,
Oct 16, 2022, 3:58:27 PM10/16/22
to fltk.general
This is great news. Thanks everyone for the answer. I'll give it try later on this afternoon.
Cheers
Roger

Reply all
Reply to author
Forward
0 new messages