DualSPHysics icon indicating copy to clipboard operation
DualSPHysics copied to clipboard

Couldn‘t load project file "DualSPHysics4Re.vcxproj"

Open CNYH opened this issue 5 years ago • 8 comments

Excuse me. When I open "\DualSPHysics_v4.4\src\VS\DualSPHysics4Re_vs2015.sln" with VS, the program reports "project load failed"“Couldn‘t load project file "DualSPHysics4Re.vcxproj" ” and "Couldn't find project file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.2.props”", why? Is CUDA necessary for CPU version ?And what should I do to run this program? I run the program with VS 2015 on the Windows platform. Looking forward for your help! Thank you

CNYH avatar Nov 12 '19 13:11 CNYH

The CUDA SDK installation is necessary to use the project for Visual Studio included in the package. You can create a new project without this limitation using cmake.

Best regards, Jose

jmdalonso avatar Nov 12 '19 14:11 jmdalonso

Thank you very much for your guidance, I will have a try. And  thank for your contribution! Best regards. Howard

------------------ 原始邮件 ------------------ 发件人: "Jose M. Dominguez"<[email protected]>; 发送时间: 2019年11月12日(星期二) 晚上10:13 收件人: "DualSPHysics/DualSPHysics"<[email protected]>; 抄送: "风起于青萍之末"<[email protected]>;"Author"<[email protected]>; 主题: Re: [DualSPHysics/DualSPHysics] Couldn‘t load project file "DualSPHysics4Re.vcxproj" (#25)

The CUDA SDK installation is necessary to use the project for Visual Studio included in the package. You can create a new project without this limitation using cmake.

Best regards, Jose

>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

CNYH avatar Nov 12 '19 14:11 CNYH

Hello, When I try to create a project using cmake I get "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\He\Desktop\DualSPHysics_v4.4\src\source\build\CMakeFiles\3.15.5\VCTargetsPath.vcxproj]" When I try to retarget I do not get any options. Using registry editor I checked the installed SDK version and it is v6.0A. I also have 8.1 folder under "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1", but I don't know how to set it as the default version. Thank you.

CirclestheSecond avatar Nov 15 '19 03:11 CirclestheSecond

I figured it out. Now, I am getting the following error

CMake Error at CMakeLists.txt:97 (set_target_properties): set_target_properties Can not find target to add properties to: DualSPHysics4.4

CMake Error at CMakeLists.txt:102 (target_link_libraries): Cannot specify link libraries for target "DualSPHysics4.4" which is not built by this project.

CirclestheSecond avatar Nov 15 '19 04:11 CirclestheSecond

I just commented out gpu part and it fixed it.

CirclestheSecond avatar Nov 15 '19 04:11 CirclestheSecond

Now, DualSPHysics4.4CPU is created in build directory. When I open it in VS2015 and click on Build Solution it says "unresolved external symbol "public;static void....... And I get this error for 104 .obj files.

CirclestheSecond avatar Nov 15 '19 04:11 CirclestheSecond

Could someone please help me?

CirclestheSecond avatar Nov 15 '19 17:11 CirclestheSecond

The repository has already updated with the Visual Studio project for CPU compilation. You can also find it on the DualSPHysics download web.

Best regards, Jose

jmdalonso avatar Nov 15 '19 22:11 jmdalonso