Hello Guillaume,
Thankyou for your response, I am not  trying to build this module alone 
without OTB, I am configuring OTB from source Code for this remote module 
compilation, OTB alone easily compiles but when I enable the remote module 
option (after copying the Remote Mosaic Module file 
[https://github.com/remicres/otb-mosaic ] to OTB\Modules\Remote) , CMake 
gives following error

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:/OTB-develop/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:/otb_configured/CMakeFiles/CMakeTmp



Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe"
"cmTC_39413.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:03:57 AM.



Project "C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" on node
1 (default targets).



PrepareForBuild:



Creating directory "cmTC_39413.dir\Debug\".


Creating directory "C:\otb_configured\CMakeFiles\CMakeTmp\Debug\".


Creating directory "cmTC_39413.dir\Debug\cmTC_39413.tlog\".



InitializeBuildStatus:



Creating "cmTC_39413.dir\Debug\cmTC_39413.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_39413.dir\Debug\\" 
/Fd"cmTC_39413.dir\Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue 
/bigobj /bigobj 
"C:\OTB-develop\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_39413.dir\Debug\\" /Fd"cmTC_39413.dir\Debug\vc140.pdb" /Gd /TP 
/analyze- /errorReport:queue /bigobj /bigobj 
"C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx"



gdalVersionTest.cxx




C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78):
warning C4018: '<': signed/unsigned mismatch
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



Link:



C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe 
/ERRORREPORT:QUEUE 
/OUT:"C:\otb_configured\CMakeFiles\CMakeTmp\Debug\cmTC_39413.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:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.pdb" 
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
/IMPLIB:"C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.lib" 
/MACHINE:X86 /SAFESEH /machine:X86 cmTC_39413.dir\Debug\gdalVersionTest.obj


Creating library C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.lib 
and object C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.exp



gdalVersionTest.obj : error LNK2019: unresolved external symbol
_GDALVersionInfo@4 referenced in function _main
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64'
conflicts with target machine type 'X86'
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



C:\otb_configured\CMakeFiles\CMakeTmp\Debug\cmTC_39413.exe : fatal error
LNK1120: 1 unresolved externals
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



Done Building Project
"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default
targets) -- FAILED.





Build FAILED.





"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default target)
(1) ->



(ClCompile target) -> 



C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78): 
warning C4018: '<': signed/unsigned mismatch 
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]







"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.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:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]







"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default target)
(1) ->



(Link target) -> 



gdalVersionTest.obj : error LNK2019: unresolved external symbol 
_GDALVersionInfo@4 referenced in function _main 
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]


C:\otb_configured\CMakeFiles\CMakeTmp\Debug\cmTC_39413.exe : fatal error 
LNK1120: 1 unresolved externals 
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]





2 Warning(s)


2 Error(s)





Time Elapsed 00:00:01.68



'

Invalid character escape '\o'.
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)

Configuring incomplete, errors occurred!

See also "C:/otb_configured/CMakeFiles/CMakeOutput.log".

See also "C:/otb_configured/CMakeFiles/CMakeError.log".

-- 
-- 
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.

Reply via email to