Core 300 Building Error

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Core 300 Building Error

Postby pr0t0z » Mon Dec 10, 2012 8:07 am

What steps will reproduce the problem?
1. Download Core 303, unzip.
2. Use CMake to generate the VS2010 project.
3. Build project in Debug mode
4. Get this output:

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>Build started 07-12-2012 16:02:51.
1>InitializeBuildStatus:
1> Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>CustomBuild:
1> Checking Build System
1> CMake does not need to re-run because C:/Work/NewtonWin-3.03/build/CMakeFiles/generate.stamp is up-to-date.
1>FinalizeBuildStatus:
1> Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
1> Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.11
2>------ Build started: Project: Newton, Configuration: Debug Win32 ------
2>Build started 07-12-2012 16:02:51.
2>InitializeBuildStatus:
2> Touching "Newton.dir\Debug\Newton.unsuccessfulbuild".
2>CustomBuild:
2> Building Custom Rule C:/Work/NewtonWin-3.03/CMakeLists.txt
2> CMake does not need to re-run because C:\Work\NewtonWin-3.03\build\CMakeFiles\generate.stamp is up-to-date.
2>cl : Command line warning D9035: option 'Ge' has been deprecated and will be removed in a future release
2>cl : Command line error D8016: '/Gd' and '/Gr' command-line options are incompatible
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:02.39
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>Build started 07-12-2012 16:02:54.
3>InitializeBuildStatus:
3> Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.
3>CustomBuild:
3> Build all projects
3> Building Custom Rule C:/Work/NewtonWin-3.03/CMakeLists.txt
3> CMake does not need to re-run because C:\Work\NewtonWin-3.03\build\CMakeFiles\generate.stamp is up-to-date.
3>FinalizeBuildStatus:
3> Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
3> Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
3>
3>Build succeeded.
3>
3>Time Elapsed 00:00:00.12
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Product version 3.03. OS Windows 7 32-bits.

I already tried using different Runtime Library options (/MDd and /MTd) but the error is the same.

Any suggestions?
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: Core 300 Building Error

Postby JoeJ » Mon Dec 10, 2012 8:29 am

pr0t0z wrote:1. Download Core 303, unzip.


The zip is very old. To get the actual version, select the 'source' tab and use the 'svn checkout...' command in cmd.
You may need to install a client svn tool first, some linked at the bottom of the page.
User avatar
JoeJ
 
Posts: 1489
Joined: Tue Dec 21, 2010 6:18 pm

Re: Core 300 Building Error

Postby Julio Jerez » Mon Dec 10, 2012 9:28 am

yes there were some build issues with alpha 303, I uploaded alpha 304 try that one, see if it works.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Core 300 Building Error

Postby pr0t0z » Wed Dec 12, 2012 12:15 pm

I compiled each the core project and the packages project individually.

However, I am getting 'identifier not found' for several functions that I used in core 230:
    -NewtonCreateBody
    -NewtonSetWorldSize
    -NewtonSetPlatformArchitecture
    -NewtonReleaseCollision... etc

How can I get the same functionalities with the new core 300?

Cheers
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: Core 300 Building Error

Postby pr0t0z » Wed Dec 12, 2012 12:41 pm

Hmm, so I just figured that there is now 2 functions to create bodies.

NewtonCreateDynamicBody and NewtonCreateKinematicBody, so what is the difference between both? Is there a document or site where i can see the core 200 to core 300 changes?
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: Core 300 Building Error

Postby Sweenie » Wed Dec 12, 2012 1:04 pm

These were changed quite recently so there isn't much documented yet.
Search the forum for info, but in short NewtonCreateDynamicBody is the same as the old NewtonCreateBody.

Setworldsize and platformarchitecture aren't used anymore.
NewtonReleaseCollision is replaced by NewtonDestroyCollision and works pretty much the same except the colliders are instance based now instead of reference based.
Sweenie
 
Posts: 503
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Core 300 Building Error

Postby pr0t0z » Wed Dec 12, 2012 7:52 pm

Yep, that's what I thought. I wandered a bit in the forums, found a nice post about the transition from 2xx to 3xx http://newtondynamics.com/forum/viewtopic.php?f=9&t=7390&p=50628&hilit=NewtonSetPlatformArchitecture#p50628, but as I haven't got a clarifying response about the NewtonCreateBody function I left this post up.
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron