You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I kind of figuring out the reason for this bug. I open this issue just in case you guys can have a better solution.
I install assimp package successful, and the CMake complains about the imported library path of target assimp::assimp which doesn't exist in the file system. But, it does exist with a different name.
I have both MSVC2017 and MSVC2019 installed on my machine. The compiler that builds assimp is MSVC2019, so the output name of assimp is assimp-vc142-mtd.lib. When I find and link to assimp in my own project, assimp's CMake configuration is trying to find assimp-vc141-mtd.lib .
The -vc141 suffix which CMake failed to find in file system is determined at line 36 in file vcpkg\installed\x64-windows\share\assimp\assimpTargets-debug.cmake.
I believe that this problem can be avoided if the output name of assimp doesn't contain compiler version tag, -vc142.
Can we rename assimp's output name to something without redundant suffix like -vc142?
CMake Error at C:/Users/zhuwa.ADS/vcpkg/installed/x64-windows/share/assimp/assimpTargets.cmake:86 (message):
[cmake] The imported target "assimp::assimp" references the file
[cmake]
[cmake] "C:/Users/zhuwa.ADS/vcpkg/installed/x64-windows/debug/lib/assimp-vc141-mtd.lib"
[cmake]
[cmake] but this file does not exist. Possible reasons include:
[cmake]
[cmake] * The file was deleted, renamed, or moved to another location.
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/Users/zhuwa.ADS/Desktop/GraphicsEngine/Experimental/DejaVu/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "C:/Users/zhuwa.ADS/Desktop/GraphicsEngine/Experimental/DejaVu/build/CMakeFiles/CMakeError.log".
[cmake]
[cmake] * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake] * The installation package was faulty and contained
[cmake]
[cmake] "C:/Users/zhuwa.ADS/vcpkg/installed/x64-windows/share/assimp/assimpTargets.cmake"
[cmake]
[cmake] but not all the files it references.
[cmake]
[cmake] Call Stack (most recent call first):
[cmake] C:/Users/zhuwa.ADS/vcpkg/installed/x64-windows/share/assimp/assimp-config.cmake:1 (include)
[cmake] C:/Users/zhuwa.ADS/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I kind of figuring out the reason for this bug. I open this issue just in case you guys can have a better solution.
I install
assimp
package successful, and the CMake complains about the imported library path of targetassimp::assimp
which doesn't exist in the file system. But, it does exist with a different name.I have both MSVC2017 and MSVC2019 installed on my machine. The compiler that builds
assimp
is MSVC2019, so the output name ofassimp
isassimp-vc142-mtd.lib
. When I find and link toassimp
in my own project, assimp's CMake configuration is trying to findassimp-vc141-mtd.lib
.The
-vc141
suffix which CMake failed to find in file system is determined atline 36
in filevcpkg\installed\x64-windows\share\assimp\assimpTargets-debug.cmake
.I believe that this problem can be avoided if the output name of
assimp
doesn't contain compiler version tag,-vc142
.Can we rename assimp's output name to something without redundant suffix like
-vc142
?Environment
To Reproduce
Steps to reproduce the behavior:
reproduce code:
Expected behavior
no error
Failure logs
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: