Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

vcxproj x64 issue
matelich
#1 Posted : Wednesday, March 25, 2020 7:13:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/25/2020(UTC)
Posts: 1

Using VS 2019 and 4.3.0.13, solution with 166 projects, mostly C#.

I've been on a mission to make our codebase usable in x64 mode with NCrunch. I made a script to replace the default platform with x64 and that's gotten me 95% functional. The next item on my list is a VS2010 C++ project being tested by a C# test app. It was building x86, so I added some default platform settings. That got it to start building x64, but now its not copying over a 3rd party lib to go with its dll.

x86 linking has:
Code:
      <AdditionalDependencies>oncrpc.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>$(OutDir);$(ProjectDir)..\..\..\..\ThirdParty\Oncrpc\BIN\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

x64 has:
Code:
      <AdditionalDependencies>oncrpc.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>$(OutDir);$(ProjectDir)..\..\..\..\ThirdParty\Oncrpc\BIN\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

When I look in the NCrunch build directory, I see ThirdParty/Oncrpc/BIN/x86 and ThirdParty/Oncrpc/BIN/x64. Both have oncrpc.dll, but x64 does not have oncrpc.lib. The NCrunch build is failing due to this missing file.
Remco
#2 Posted : Wednesday, March 25, 2020 10:18:13 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

At this point in time, we don't have any specialised support for C++. We basically attempt to build the projects, and if they work then we can often roll with them, but we have no special interactions with the C++ build system and have performed no extensive testing to warrant that we're able to support these projects. So basically support for them is incidental only and isn't really driven by intention. Unfortunately we have a limited capacity to support integration with different project types, mostly because everything constantly moves at pace and the C++ build system is very large and complex.

Could you perhaps copy the file with a post build event? Or include it from the foreground x64 directory using the NCrunch 'Additional Files To Include' setting?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download