This pretty much comes under the "I should know this" banner, but
I'm having trouble getting cmake to generate a MSVC sln file for
fltk-1.4 just now.
Seems you *know* this, but sorry, the failed build is my fault. See
below.
Now, as is well known, I'm not really an IDE sort of person,
but for *reasons* I need to generate a MS binary.
No problem, I have a machine with MSVC 2019 installed (which
TBH is for my kid to play with Unity and C#, so not really my
thing...)
Anyway, fire up a "Developer command prompt" from MSVC and
run a sensible looking (to me, anyway) cmake invocation:
cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE=Release
-A x64 ..
I'm always using the default build w/o `-A ...` because I can never
remember the allowed attribute values (same as for `-T ...`, BTW).
But this has nothing to do with the build failure.
Fails with:
-- Configuring incomplete, errors occurred!
See also
"D:/Tools/Ian/fltk-1.4/build-msvc/CMakeFiles/CMakeOutput.log".
See also
"D:/Tools/Ian/fltk-1.4/build-msvc/CMakeFiles/CMakeError.log".
and no fltk.sln is created. Also says...
CMake Error at documentation/CMakeLists.txt:60 (string):
string sub-command REGEX, mode REPLACE needs at least 6
arguments total to
command.
This looks like CMake can't retrieve the doxygen version, resulting
in one argument of the `string (REGEX REPLACE ...` command being empty.
This should be checked in the CMake file. Thanks for your report,
I'll look into it...
Recalling that NSVC now supports cmake directly I tried that
"GUI" way too, but it failed in the same way.
That's no surprise but thanks for trying it.
In the same repo., if I spin up an Msys shell and do my
usual:
What do I need to do differently for MSVC builds? I assume
this generally works and I'm being foolish here...
No, don't worry, it's not your fault. You *shouldn't* have to do
anything differently, except the system specific build options, of
course.
That said, just for my information: can you please tell me if
doxygen was found in *both* builds? You can post the output of the
following command in the respective build directories (the output
below is from my Linux system):
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.