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...