Build problems in newton_tests

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Build problems in newton_tests

Postby misho » Wed Mar 15, 2023 4:16 pm

Hi all!

My Newton 4.00 Project is MD, double precision. This is today's package, downloaded 2 hours ago, freshly created from CMake. I am getting 3 errors during the 4.00 build, as follows:

Severity Code Description Project File Line Suppression State
Error C2440 'initializing': cannot convert from 'float [1359]' to 'const ndFloat32 *' newton_tests D:\newton-dynamics-master\newton-4.00\tests\staticBody_test.cpp 1416

Severity Code Description Project File Line Suppression State
Error C2664 'ndShapeConvexHull::ndShapeConvexHull(ndInt32,ndInt32,ndFloat32,const ndFloat32 *const ,ndInt32)': cannot convert argument 4 from 'float [1359]' to 'const ndFloat32 *const ' newton_tests D:\newton-dynamics-master\newton-4.00\tests\instancing_test.cpp 493

Severity Code Description Project File Line Suppression State
Error C2512 'ndShapeInstance::ndShapeInstance': no appropriate default constructor available newton_tests D:\newton-dynamics-master\newton-4.00\tests\instancing_test.cpp 493
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 673
Joined: Tue May 04, 2010 10:13 am

Re: Build problems in newton_tests

Postby Julio Jerez » Thu Mar 16, 2023 3:13 pm

Got it, fixed
Please try again
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Build problems in newton_tests

Postby misho » Thu Mar 16, 2023 3:48 pm

Thanks Julio!

What's the best way to apply this fix? Do I have to re-create the projects in CMake? Or can I download specific files and just insert them into my project(s)? I am not using git, I use ZIP archive which I download periodically.
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 673
Joined: Tue May 04, 2010 10:13 am

Re: Build problems in newton_tests

Postby Julio Jerez » Thu Mar 16, 2023 5:28 pm

If you Are you downloading the last commit?
Just recreate the solution in cmake.

Even not recreation the solution should work, since the gis was in cpp files.

The problem was that some test where using float, instead of ndFloat32, son in double that's a mistake.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 5 guests