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

Broken libs list when using XdkEditionTarget > 220600 #19

Closed
ZehCastro opened this issue Jan 23, 2023 · 1 comment
Closed

Broken libs list when using XdkEditionTarget > 220600 #19

ZehCastro opened this issue Jan 23, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ZehCastro
Copy link

ZehCastro commented Jan 23, 2023

list(APPEND Console_Libs "gameinput.lib")

  • CMake 3.24.2
  • VS2019
  • GDK 221001

This yields an error:
LINK : fatal error LNK1181: cannot open input file 'xgameruntime.lib gameinput.lib'

Do notice that it wrapped those libs in quotes in the generated linker command:

C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe 
/ERRORREPORT:QUEUE 
/OUT:"C:\ZEH\GDK\2022.10--GDKX--SamplesOnly\GDKSamples\Tools\CMakeExample\Desktop\out\bin\Gaming.Desktop.x64\Debug\CMakeExampleDesktop.exe" 
/INCREMENTAL 
/ILK:"CMakeExampleDesktop.dir\Debug\CMakeExampleDesktop.ilk" 
/NOLOGO 
/LIBPATH:"C:/ZEH/GDK/221001/Microsoft GDK/221001/GRDK/gameKit/Lib/amd64" 
/LIBPATH:"C:/ZEH/GDK/221001/Microsoft GDK/221001/GRDK/gameKit/Lib/amd64/Debug" 
/LIBPATH:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/ucrt/x64"
/LIBPATH:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/ucrt/x64/Debug"
/LIBPATH:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x64"
/LIBPATH:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x64/Debug" 
/LIBPATH:"C:/ZEH/GDK/221001/Microsoft GDK/221001/GRDK/ExtensionLibraries/Xbox.Services.API.C/DesignTime/CommonConfiguration/Neutral/Lib/Release/v142" 
/LIBPATH:"C:/ZEH/GDK/221001/Microsoft GDK/221001/GRDK/ExtensionLibraries/Xbox.Services.API.C/DesignTime/CommonConfiguration/Neutral/Lib/Release/v142/Debug"
dxguid.lib d3d12.lib dxgi.lib "xgameruntime.lib gameinput.lib" libHttpClient.142.GDK.C.lib Microsoft.Xbox.Services.142.GDK.C.lib appnotify.lib winhttp.lib crypt32.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:/ZEH/GDK/2022.10--GDKX--SamplesOnly/GDKSamples/Tools/CMakeExample/Desktop/out/bin/Gaming.Desktop.x64/Debug/CMakeExampleDesktop.pdb"
/SUBSYSTEM:WINDOWS 
/LTCG 
/LTCGOUT:"CMakeExampleDesktop.dir\Debug\CMakeExampleDesktop.iobj" 
/TLBID:1 
/DYNAMICBASE 
/NXCOMPAT 
/IMPLIB:"C:/ZEH/GDK/2022.10--GDKX--SamplesOnly/GDKSamples/Tools/CMakeExample/Desktop/out/bin/Gaming.Desktop.x64/Debug/CMakeExampleDesktop.lib" 
/MACHINE:X64  
/machine:x64 
/CETCOMPAT 
/IGNORE:4075 CMakeExampleDesktop.dir\Debug\cmake_pch.obj
CMakeExampleDesktop.dir\Debug\Game.obj
CMakeExampleDesktop.dir\Debug\DeviceResources.obj
CMakeExampleDesktop.dir\Debug\Main.obj

Replacing it with this, fixed the issue for me:
list(APPEND Console_Libs gameinput.lib)

@ZehCastro
Copy link
Author

Ops, just noticed this is already fixed here.

@walbourn walbourn self-assigned this Jan 24, 2023
@walbourn walbourn added the bug Something isn't working label Jan 24, 2023
@walbourn walbourn reopened this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants