Hello, I am trying to configure OTB from source code, but getting this error in CMake, I would appreciate any sort of help.
Setting GDAL_CONFIG_CHECKING to ON. (all GDAL tests will run again) CMake Error at Modules/ThirdParty/GDAL/otb-module-init.cmake:51 (message): Syntax error in cmake code at C:/Develop_OTB/OTB-develop/Modules/ThirdParty/GDAL/otb-module-init.cmake:60 when parsing string Compiling Test GDAL_VERSION - Failed COMPILE_OUTPUT_GDAL_VERSION: 'Change Dir: C:/Configure_OTB/CMakeFiles/CMakeTmp Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_c0b00.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0" Microsoft (R) Build Engine version 14.0.25420.1 Copyright (C) Microsoft Corporation. All rights reserved. Build started 02-Aug-17 9:22:18 AM. Project "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTC_c0b00.dir\Debug\". Creating directory "C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\". Creating directory "cmTC_c0b00.dir\Debug\cmTC_c0b00.tlog\". InitializeBuildStatus: Creating "cmTC_c0b00.dir\Debug\cmTC_c0b00.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_c0b00.dir\Debug\\" /Fd"cmTC_c0b00.dir\Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue /bigobj /bigobj "C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx" Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_c0b00.dir\Debug\\" /Fd"cmTC_c0b00.dir\Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue /bigobj /bigobj "C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx" gdalVersionTest.cxx C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78): warning C4018: '<': signed/unsigned mismatch [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] Link: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe" /INCREMENTAL /NOLOGO C:\OSGeo4W64\lib\gdal_i.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.lib" /MACHINE:X86 /SAFESEH /machine:X86 cmTC_c0b00.dir\Debug\gdalVersionTest.obj Creating library C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.lib and object C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.exp gdalVersionTest.obj : error LNK2019: unresolved external symbol _GDALVersionInfo@4 referenced in function _main [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86' [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe : fatal error LNK1120: 1 unresolved externals [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] Done Building Project "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target) (1) -> (ClCompile target) -> C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78): warning C4018: '<': signed/unsigned mismatch [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target) (1) -> (Link target) -> C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86' [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target) (1) -> (Link target) -> gdalVersionTest.obj : error LNK2019: unresolved external symbol _GDALVersionInfo@4 referenced in function _main [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe : fatal error LNK1120: 1 unresolved externals [C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj] 2 Warning(s) 2 Error(s) Time Elapsed 00:00:01.80 ' Invalid character escape '\C'. Call Stack (most recent call first): Modules/ThirdParty/GDAL/otb-module-init.cmake:67 (error_message) Modules/ThirdParty/GDAL/otb-module-init.cmake:92 (gdal_try_run) CMake/OTBModuleEnablement.cmake:390 (include) CMakeLists.txt:324 (include) Regards -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
