Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gdal] x64-windows-static-md build failure #15124

Closed
ankurvdev opened this issue Dec 15, 2020 · 0 comments · Fixed by #15541
Closed

[gdal] x64-windows-static-md build failure #15124

ankurvdev opened this issue Dec 15, 2020 · 0 comments · Fixed by #15541
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@ankurvdev
Copy link
Contributor

Host Environment

  • OS: Windows
  • Compiler: MSVC (Visual studio 16.8)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install gdal:x64-windows-static-md

Failure logs

Seems to failing because its trying to link against the ibexpatdMT.lib' rather than the MD

gdalmdimtranslate_lib.cpp
	cd ..
	echo @SETLOCAL EnableExtensions > clean_main_build_output.bat
	echo if exist gdal_d.lib del gdal_d.lib >> clean_main_build_output.bat
	echo if exist gdal301_d.dll del gdal301_d.dll >> clean_main_build_output.bat
	echo if exist gdal301_d.dll.manifest del gdal301_d.dll.manifest >> clean_main_build_output.bat
	echo if exist *.ilk del *.ilk >> clean_main_build_output.bat
	call clean_main_build_output.bat

S:\vcpkg.2020.11.12\vcpkg\buildtrees\gdal\x64-windows-static-md-dbg>if exist gdal_d.lib del gdal_d.lib 

S:\vcpkg.2020.11.12\vcpkg\buildtrees\gdal\x64-windows-static-md-dbg>if exist gdal301_d.dll del gdal301_d.dll 

S:\vcpkg.2020.11.12\vcpkg\buildtrees\gdal\x64-windows-static-md-dbg>if exist gdal301_d.dll.manifest del gdal301_d.dll.manifest 

S:\vcpkg.2020.11.12\vcpkg\buildtrees\gdal\x64-windows-static-md-dbg>if exist *.ilk del *.ilk 
	lib /nologo /LTCG /out:gdal_d.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj third_party\o\*.obj apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj apps\ogr2ogr_lib.obj  apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj  apps\gdalmdiminfo_lib.obj apps\gdalmdimtranslate_lib.obj   S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libexpatdMT.lib  S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libpq.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libpgcommon.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libpgport.lib Secur32.lib Shell32.lib Advapi32.lib Crypt32.lib Gdi32.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libcrypto.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libssl.lib                S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/proj_d.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/sqlite3.lib    S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/geos_cd.lib        S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libcurl-d.lib wsock32.lib wldap32.lib winmm.lib    legacy_stdio_definitions.lib odbc32.lib odbccp32.lib user32.lib  S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libpng16d.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/zlibd.lib  S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/openjp2.lib          S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/webpd.lib       S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/libxml2.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/iconv.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/charset.lib S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib/lzmad.lib       ws2_32.lib      kernel32.lib psapi.lib
LINK : fatal error LNK1181: cannot open input file 'S:\vcpkg.2020.11.12\vcpkg\installed\x64-windows-static-md\debug\lib\libexpatdMT.lib'

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

@JonLiu1993 JonLiu1993 assigned JackBoosY and unassigned JackBoosY Dec 15, 2020
@JonLiu1993 JonLiu1993 added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
3 participants