Page 1 of 1

Compiling wxWidgets 3.1.4 using nmake: libtiff error

Posted: Sun Oct 18, 2020 1:15 pm
by smartmobili
Hi,

I have to use some scripts developed internally to build a staged version of wxWidgets and this script use a build\mswbuild.bat with the following content:

@CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
nmake /nologo /f makefile.vc CC="cl /MP /O2 /Ob2" CXX="cl /MP /O2 /Ob2" UNICODE=1 USE_OPENGL=1 USE_ODBC=1 USE_GDIPLUS=1 SHARED=0 BUILD=release TARGET_CPU=AMD64 DEBUG_RUNTIME_LIBS=0

but there is an error with libtiff:
d:\dev\tools\stage\source\wxwidgets\3.1.4\src\tiff\libtiff\tiffiop.h(31): fatal error C1083: Impossible d'ouvrir le fichier include : 'tif_config.h' : No such file or directory
How can I fix that ? Of course I can rename tif_config.vc.h into tif_config.h and tiffconf.vc.h into tiffconf.h but is it not supposed to be done automatically ?

Re: Compiling wxWidgets 3.1.4 using nmake: libtiff error

Posted: Sun Oct 18, 2020 3:10 pm
by New Pagodi
Are you sure you need all that extra stuff? I just tried compiling the latest git version with

Code: Select all

nmake -f makefile.vc SHARED=0 BUILD=release TARGET_CPU=X64
and it worked just fine. I don't know what most of the extra you have does, but I know at least adding MP isn't going to do any good. nmake always compiles 1 file at a time and there is no way to make it do parallel builds. If you want to do parallel builds, you'll need to use msbuild or visual studio. Also the odbc package was unmaintained and removed several years ago. So `USE_ODBC=1` won't do anything either.