-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
visual studio uses erroneous paths #42934
Comments
I've seen this issue (encountered many times in your log)
do you have this header on your machine? |
According to CUDA release notes: 1.1. CUDA 11.2 |
Yes, it is installed via vcpkg.json in manifest mode.
As you will see from my report, the problem is that msbuild is looking in the wrong place. Adding a duplicate x64 layer to the compiler includes. Look for the command line it uses to build the project, not the error. The command line produced by msbuild is obviously wrong.
On 26 Dec 2024, at 10:21, Alex ***@***.***> wrote:
I've seen this issue (encountered many times in your log)
110>C:\Users\xxxxxxxxxx\Documents\temp\cuda-samples\Common\UtilNPP\ImageIO.h(34,10): error C1083: Cannot open include file: 'FreeImage.h': No such file or directory
110>(compiling source file 'boxFilterNPP.cpp')
110>Done building project "boxFilterNPP_vs2022.vcxproj" -- FAILED.
do you have this header on your machine?
if yes, what is the absolute path to it?
—
Reply to this email directly, view it on GitHub<#42934 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABQWN67BMU22VMIPLC2EADD2HPKANAVCNFSM6AAAAABUGP56BCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRSGQYDQNBUGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Not so fast. AFAICT the installation is expected to be placed in a path which is a combination of host triplet and target triplet. |
I think you might have a point. I have checked and in fact the folder "vcpkg_installed\x64-windows\include\vulkan" exists but the folder "vcpkg_installed\x64-windows\x64-windows\include\vulkan" also exists! I took one of the freeimage projects for which i have introduced a vcpkg.json file; (freeImageInteropNPP) and zipped up the vcpkg_installed folder and the vcpkg.json file I used to share. For some reason the zipped folder structure is huge (250 MB). Unfortunately github does not let me upload 7z files. here is a dropbox link https://www.dropbox.com/scl/fi/wp3x3xcw3znx3ba9b0ohp/vcpkg.7z?rlkey=5owtislml6qfkybibxgwzyhea&dl=0 I am happy to remove all the installed vcpkg clutter, and try again once with just the |
Describe the bug
Using manifest based vcpkg, many projects fail to find the installed targets with errors such as cannot open the header file,... but it has become obvious that the include /I command is simply wrong. For example it contasins "vulkanImageCUDA\vcpkg_installed\x64-windows\x64-windows\include" ! The repeated x64-windows is an error and not repeated in the folder structure. In fact vcpkg has installed everything expected in "vcpkg_installed\x64-windows\include\vulkan" above the folder containing the vcpkg.json
Environment
Released December 3rd, 2024
To Reproduce
I am working with the NVidia Demo examples - and adding the appropriate dependencies.
Expected behavior
Paths to be fed by msbuild to command line that are accurate
vcpkg.json
Rebuild started at 0009....txt
The text was updated successfully, but these errors were encountered: