墨香年少 32 发布于 2023年8月6日 1.enter duilib source code folder, the folder looks like this : D:\duilib\include\DuiLib, and the folder's content looks like this: 2.double click DuiLib.vcxproj using Visual Studio 2022 (you can use any version Visual Studio, vs203 or vs2015 or vs2017 or vs2019) right click project and config it click apply or click ok.close config dialog. 3.DO NOT run project, just click Build menu in top menu bar. 4.you will get this message: 1>XUnzip.cpp 1>D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1389,5): warning MSB8012: TargetPath(D:\duilib\include\DuiLib\Build\Release\DuiLib.dll) does not match the Linker's OutputFile property value (D:\duilib\include\bin\DuiLib.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1> Creating library ../Lib/DuiLib.lib and object ../Lib/DuiLib.exp 1>DuiLib.vcxproj -> D:\duilib\include\DuiLib\Build\Release\DuiLib.dll 1>Done building project "DuiLib.vcxproj". ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Build started at 3:34 AM and took 27.846 seconds ========== 5.the dll generated success, location is : D:\duilib\include\DuiLib\Build\Release\DuiLib.dll 目之所及,皆是回忆,心之所想,皆是过往 分享这篇帖子 链接帖子 分享到其他站点