A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Hattress » Sat Nov 01, 2014 7:51 am
Hi,
I am looking for a step-by-step tutorial for those who are completely new to this engine. All the tutorials I have found are very old and not working for the latest version of Newton.
My problem is that I am unsure how and which folders you should compile to get the library file, as Visual Studio 2013 gets this message:
Error 1 error LNK1104: cannot open file 'Newton.lib' c:\Users\User\documents\visual studio 2013\Projects\build\build\LINK build
According to the info I've found there is supposed to be a SDK folder, however - that is not the case. These are the existing folders: /applications/cmake/coreLibrary_300 and /packages
Where is Newton.lib located?
-
Hattress
-
- Posts: 9
- Joined: Sat Nov 01, 2014 7:37 am
by JoeJ » Sat Nov 01, 2014 8:31 am
I'm not up to date, but i open demosSandbox project from here:
applications\demosSandbox\projects\visualStudio_2012
I can complile and run that out of the box (have had no luck nith newton-only-project because VS2013 did not want to update this project).
However, demosSandbox builds newton as well and newton_d.lib goes there:
coreLibrary_300\projects\windows\project_vs2012_static_mt\Win32\newton\Debug\
-

JoeJ
-
- Posts: 1489
- Joined: Tue Dec 21, 2010 6:18 pm
by Hattress » Tue Nov 04, 2014 3:26 am
Hello, thanks your your reply!
Now I have completed these steps:
- Compile in VS13: /packages/project/visualStudio_2013/build
- Copied Newton DLL file to my projects Debug folder in VS13.
- Included newton_d.lib and newton.h in project
And I get these errors:
Error 3 error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function _main C:\Users\User\Documents\Visual Studio 2013\Projects\build\build\build.obj build
Error 4 error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function _main C:\Users\User\Documents\Visual Studio 2013\Projects\build\build\build.obj build
It looks like it can find the .lib file and the header file, but I am missing something...?
-
Hattress
-
- Posts: 9
- Joined: Sat Nov 01, 2014 7:37 am
by Julio Jerez » Tue Nov 04, 2014 10:47 am
if you are going to use it as dll you need to build project
C:\Development\newton-dynamics\packages\projects\visualStudio_2013_dll/build
C:\Development\newton-dynamics\packages\projects\visualStudio_2013/build
is a mix project that have many different configurations, it probably has the dll configuarion, but It simpler to use the specific configuration
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Hattress » Tue Nov 18, 2014 4:07 pm
Julio Jerez wrote:if you are going to use it as dll you need to build project
C:\Development\newton-dynamics\packages\projects\visualStudio_2013_dll/build
After doing that and adding newton_d.lib as an additional dependency(project Properties->Configuration Properties->Linker-Input->Additional dependencies) it worked!
-
Hattress
-
- Posts: 9
- Joined: Sat Nov 01, 2014 7:37 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest