On 10.12.2016 21:42 Rob McDonald wrote:
> I'm attempting to build FLTK 1.3.4-1 with Visual Studio 2010 on Windows
> 7 using CMake to build the build files. I end up with one error
> (repeated many times) in flstring.h.
>
> fatal error C1083: Cannot open include file: 'strings.h': No such file
> or directory
First of all: I just checked FLTK 1.3.4 with CMake and Visual Studio
2015 Community and everything worked well (except the known compiler
warnings which can be ignored or suppressed).
> Is there a config option I'm missing?
There's no config option that would allow you to change that.
> Is one of CMake's tests failing?
Looks so. Please check the generated config.h, it should contain:
/* #undef HAVE_STRINGS_H */
If you have instead:
#define HAVE_STRINGS_H 1
then you may change this as a workaround for a first build success
(maybe), but that would not be a real solution. See below...
> Any suggestions?
CMake can fail finding header files etc. (false positives or false
negatives, both is possible) if it is executed with a wrong environment
so that it can find header files that belong to MinGW, Cygwin, or any
other installed software.
You can find out which header was found if you check the CMake cache,
either by running cmake-gui or opening CMakeCache.txt in the build
directory with an editor or some other tool (maybe grep?). If you use
cmake-gui, check the "Advanced" check box and search for HAVE_STRINGS_H.
If it was found it should contain the file path which could help to find
the culprit. For instance, in my Linux build I have:
HAVE_STRINGS_H:FILEPATH=/usr/include/strings.h
How did you run CMake? The recommended way is to run cmake-gui from a
"Visual Studio Developer Command Prompt" window.
If you have additional software like MinGW, Cygwin, or something else
installed I suggest that you check the environment (Windows: command
'env') and particularly the PATH variable.
Please let us know what you found out, that's interesting for our build
instructions.