Building root 6-14-04 from source on Windows

In the file PCRE-build-out.log there are multiple instances of

c:\mingw\include\wctype.h(100): error C2059: syntax error: 'type' [D:\buildroot\PCRE-prefix\src\PCRE\pcre.vcxproj]

c:\mingw\include\wctype.h(131): error C2061: syntax error: identifier 'towlower' [D:\buildroot\PCRE-prefix\src\PCRE\pcre.vcxproj]

c:\mingw\include\wctype.h(131): error C2059: syntax error: '<parameter-list>' [D:\buildroot\PCRE-prefix\src\PCRE\pcre.vcxproj]

c:\mingw\include\wctype.h(140): error C2143: syntax error: missing '{' before '__cdecl' [D:\buildroot\PCRE-prefix\src\PCRE\pcre.vcxproj]

c:\mingw\include\ctype.h(251): fatal error C1003: error count exceeds 100; stopping compilation [D:\buildroot\PCRE-prefix\src\PCRE\pcre.vcxproj]
  pcre_compile.c

In the file PCRE-configure-err.log

CMake Warning (dev) at CMakeLists.txt:770 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "pcregrep".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:773 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "pcretest".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

Other .log files are empty. (or have no errors)

Ouch! OK, your system has many conflicts. Please make sure you don’t have your mingw system interfere with the native one (or find a clean machine)

Should I uninstall mingw, reinstall and then rebuild root?

Well, it depend if you need it… Mingw should simply not interfere with the command prompt/Visual Studio. If you don’t need it, just uninstall it

After cleaning the system, (getting rid of minGW) and rebuilding again, root has been successfully built and the tutorials run without error.

Thanks, @bellenot for your patience, I am eternally grateful :smiley:

The command, if someone stumbles upon this:

cmake -Dall=OFF -Dmathmore=OFF -Dbuiltin_zlib=ON -Dgfal=OFF -Dbuiltin_freetype=ON -Dbuiltin_ftgl=ON -Droofit=ON -Dfftw3=ON -DFFTW_INCLUDE_DIR=<path of FFTW3 installation> -DFFTW_LIBRARY=<path of FFTW3 lib file> D:\root
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.