A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by ruggy » Sat Feb 25, 2012 5:05 pm
Hello,
I'm eager to start experimenting with the newton sdk for the first time. I'm on 32bit linux. I've successfully compiled the NewtonDemos.elf executable, however it seems all of the functional demos has been commented out of the makefile. When I uncommented some of the demos (such as the Walls.cpp one), it doesn't build anymore, it's looking for ../OGLModel.h but fails, and the build fails. Uncommenting other parts of the code seems to try to build code that uses HWND and similar defines, which as far as I know are windows-specific things.
I have experience with makefiles, and I could possibly investigate this problem, but I wanted to ask first, are the demos usable on linux? Is it worth my time getting this to work? Or is that a work in progress? So far, I don't know how to use any of the demos! I could try to build a simple application that links to newton, such as the ones from the tutorials, but I was really hoping to be able to experiment with the demos because they already have a lot of interesting features set-up for use.
Many thanks for any response.
-
ruggy
-
- Posts: 11
- Joined: Sat Feb 25, 2012 4:57 pm
by Julio Jerez » Sat Feb 25, 2012 7:09 pm
it's looking for ../OGLModel.h ?
it is a long tmne teh engoen does no uses that.
what version are you trying?
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Julio Jerez » Sat Feb 25, 2012 9:23 pm
version 2.35 should work
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by ruggy » Sat Feb 25, 2012 9:57 pm
Hi,
Thanks again for taking the time to reply to me. I got 2.35 and I really wasn't sure what to do with it. I can't find any online instructions about what to do with it, or any Readme within the directory structure. I went into "packages/projects/linux32" and executed make. It worked for a while, compiling a bunch of stuff, and eventually it reached a "Newton.h not found" error.
It looks like I have far too little knowledge about where to get started. Is there a page that tells me what to do with the distribution? If so I'll go there, and if not, well thanks again for the help, and I'll just move on.
I apologize if I appear to be asking stupid questions. I've been wandering this website for several hours, trying to feel prepared, yet I'm not sure that there is a simple starting point to compiling and using this library.
Many thanks.
-
ruggy
-
- Posts: 11
- Joined: Sat Feb 25, 2012 4:57 pm
by Julio Jerez » Sat Feb 25, 2012 10:10 pm
there are some tutorials in the wiki.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by ruggy » Mon Feb 27, 2012 8:14 pm
Hi,
I've found the tutorials and they seem very informative. The problem is that I'm not even able to get to the point where I've successfully built or installed the sdk. Therefore, trying out the tutorials is not yet an option.
The last thing I tried downloading was:
http://code.google.com/p/newton-dynamic ... r&can=2&q=When I decompress that (preserving paths) there is no obvious location to go and execute make; I tried it from applications/newtonDemos/projects/linux32, but this does not build without errors.
Is there somewhere I can find step-by-step instructions for obtaining and then building a recent distribution of Newton? I seriously don't want to be a bother - it's just that I really doubt newcomers are expected to write their own makefile - unless linux is not quite supported just yet.
Many thanks!
-
ruggy
-
- Posts: 11
- Joined: Sat Feb 25, 2012 4:57 pm
by goaesco » Tue Feb 28, 2012 2:04 am
some tutorials in the wiki.?
-
goaesco
-
- Posts: 2
- Joined: Tue Feb 28, 2012 1:49 am
by Julio Jerez » Tue Feb 28, 2012 9:21 am
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by ruggy » Sun Mar 04, 2012 7:04 pm
Howdy.
Thanks again for the replies.
I think, if I understand correctly, that the demos are not currently usable (out of the box) in linux.
Having downloaded
http://code.google.com/p/newton-dynamics/downloads/detail?name=newton-dynamics-3.00.rar&can=2&q=, I was able to compile "coreLibrary_200/projets/linux32/".
However, I was unable to compile "applications/newtonDemos/projects/linux32/" - I get the following message:
In file included from ../../sdkDemos/DemoMesh.cpp:16:
../../sdkDemos/toolBox/toolbox_stdafx.h:96: fatal error: fx.h: No such file or directory
There is a file fx.h under packages/thirdParty/fox/fox-1.6.44/include/. Why it is not found by the build system - I can only suppose currently the build system is incomplete under linux.
As for the tutorials, the code presented for download here:
http://www.newtondynamics.com/downloads/NewtonTutorials.rar does not seem to be prepared for building under linux.
Therefore, I will try to adapt some of the tutorial code into an application of my own, as I at least have the core library compiled.
Many thanks.
-
ruggy
-
- Posts: 11
- Joined: Sat Feb 25, 2012 4:57 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests