Community
ReCap SDK Forum
Welcome to Autodesk’s ReCap SDK Forum. Share your knowledge, ask questions, get support and explore popular ReCap SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK 25.1.1 Samples not working

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
360-for-you_com
651 Views, 11 Replies

SDK 25.1.1 Samples not working

Hello, 

I'm not good with VS, but I used to be able to compile a project in the "samples" folder. Now I'm getting an error:

 

3>LINK : fatal error C1047: Das Objekt oder die Bibliotheksdatei "C:\Dropbox\_lenovo\ReCap_SDK\25.1.1\Doc\samples\..\..\lib\AdskRcCompressUtils.lib" wurde von einer anderen Version des Compilers erstellt als andere Objekte wie "C:\Dropbox\_lenovo\ReCap_SDK\25.1.1\Doc\samples\build\int\x64\Release\RCPReaderSample\RCPReaderSample.obj". Kompilieren Sie alle Objekte und Bibliotheken mit dem gleichen Compiler neu.
3>LINK : fatal error LNK1257: Fehler bei Codegenerierung.

 

There seems to be a conflict between v142 and v143 versions.

Could you please check and suggest a solution to this problem?

11 REPLIES 11
Message 2 of 12

Hi @360-for-you_com,

 

Thank you for reporting the error.

 

I have rebuilt ReCap SDK sample projects but have not encountered any error.

 

It looks to me the error could probably be due to the version of Visual Studio you are using. This normally happens when a library was built with a higher version of Visual Studio and then it is used to link with a component built with a lower version of Visual Studio. 

 

The exact version of Visual Studio we used to build our ReCap SDK is 17.8.3. If your Visual Studio is lower than this version, could you please update it and try again?

 

Thanks,

Jing



Jing H
Priciple Engineer
Message 3 of 12

Hi,
thanks for the quick response.

 

I use VS 2022 Community, version 17.10.5, MSVC v142 and MSVC v143.

 

SDK 24.0.2 requires MSVC v142 version and it worked for me.

 

But the configuration files in SDK 25.1.1.1 require v143 (RCPReaderSample.vcxproj, for example), but the core files are apparently compiled using v142.

 

I am working with python and am not at all familiar with C++, please excuse me if I am writing something stupid.

Message 4 of 12

ReCap SDK 25.1.1 is built with VS 2022 v143. The same is true for all sample projects. While 24.0.2 was built with v142.



Jing H
Priciple Engineer
Message 5 of 12

Hello, 

 

Thanks for the clarification. It is great that you are using modern technology.

 

I checked again.

The problem occurs only with one of the files: "\lib\AdskRcCompressUtils.lib".

If I comment lines 37, 177, 180 in the RCPReaderSample.cpp file, everything compiles without problems.

Message 6 of 12

Hi, I have no clue how this can be resolved. 

Maybe you can try to follow the method here and see if it helps.



Jing H
Priciple Engineer
Message 7 of 12

Hello, 
unfortunately, I don't understand how I can recompile the lib\AdskRcCompressUtils.lib

Message 8 of 12

Unfortunately, this is an issue that we are unable to resolve. Microsoft has stated that "both the major and minor update numbers of the toolset used to compile the objects and libraries must match exactly." We cannot make sure users like you use the same version of Visual Studio as us when building the sample projects.  We will discuss it internally and see what can be done.

 

Thanks,



Jing H
Priciple Engineer
Message 9 of 12

Hi @360-for-you_com,

 

Could you have a try by disabling global optimization for the sample project you are trying to build?

 

Here is how to do this:

  • In Visual Studio 2022, right click on the sample project in the Solution Explorer
  • In the pop-up menu, click "Properties"
  • In the pop-up dialog, navigate to "Configuration Properties" -> "C/C++" -> "Optimization"
  • In the right side of the dialog, change "Whole Program Optimization" to "No"

NOTE: as this will disable whole program optimization, it has an impact to speed.

Message 10 of 12

It worked! Thank you!

Message 11 of 12

I checked the speed on a test project and did not notice any degradation: for version 24.0.2 the time is 16.7s, for version 25.1.1 the time is 16.5s

Message 12 of 12

Hi @360-for-you_com,

 

It is great to know that the suggestion works for you! Could you help click the "ACCEPT SOLUTION" button for the answer to accept it as a solution?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report