dCustomArticulaledTransformManager not defined

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Re: dCustomArticulaledTransformManager not defined

Postby MeltingPlastic » Fri Aug 03, 2018 12:54 pm

I had this issue to - I think I had to temporarily remove dNewtonArticulationManager.h to get around the error which of course is not ideal.
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Fri Aug 03, 2018 2:08 pm

at first I was confuse because I do no get that error, but I think now I see what is going op.
you are using cmake of or a different build system the read the files form the folder.

and since the class in in the directory it is added to the generate project file

class dNewtonArticulationManager is a deprecated class that is no longer use
because is a duplicate of dNewtonTransformManager

I delete form the folder now, if you where using it just change the name to dNewtonTransformManager
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby MeltingPlastic » Fri Aug 03, 2018 2:21 pm

That makes sense, right now I have a custom cmake script pulling sources from the sdk folder in. Hopefully I can form a better cmake implementation once your premake system is working so I can use it as a reference. Then I can finally link with dll or static optionally and be up to date and also avoid any custom code changes just to get things building.
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Fri Aug 03, 2018 2:33 pm

you do not have to do that, this was my fault for not deleting the file.
if you sync it should be fine now.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby MeltingPlastic » Fri Aug 03, 2018 3:07 pm

Just did a fresh sync to try out cmake again. I was able to open cmake and use all defaults and just build and all projects do generate which is great (was not able to do this before). Now I just noticed that if I build the demosSandbox project I get the following errors:

https://drive.google.com/open?id=1hQhErwPIt-ITpst4j00qauTIOQwDpFJO

Edit: I also get built errors when building the Newton project as well:
Code: Select all
"Cannot open include file: 'dTimeTracker.h': No such file or directory   NewtonObj c:\users\casht\repos\urhonewton\sdk\dgcore\dgtypes.h   189   "


This is all with cmake defaults. (commit 1a696264055c8559877d0116c78b141b15f1d64c)
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Fri Aug 03, 2018 5:53 pm

Oh what do you know. I added the path to the cmake script and now I does build the project.
It still do not work because the configuration are all messed up, but I think I can fix from here.
I will be less work that making a whole new build script.
I see if I can is that I build a solution the compile.

I committed the cmake scripts with the missing path.

I do not like the when it build the newton SDK is add object file instead of c++ files.
I see if I can fix that.

btw I found this website https://cmake.org/cmake/help/v3.0/comma ... ctory.html
that was my main beef with cmake, I could never find a clear documentation for the several hundred commands, but this is a game changer.
tomorrow I see if I can clean up the cmake script, and if I am susscefull I will no use premake.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby MeltingPlastic » Fri Aug 03, 2018 6:35 pm

Sounds Good! If it helps - here is an example of the best cmake form I have seen for rangling many dissociated thirdparty libs together using basically just add_subdirectory() like you say: https://github.com/rokups/Urho3D/blob/master/Source/ThirdParty/CMakeLists.txt
This is how I want to integrate newton into Urho3D.
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Fri Aug 03, 2018 6:51 pm

oh yes that is exactly how I am planning to make it. Thank for the template.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Sat Aug 04, 2018 11:56 pm

Ok I think I now have a working clean version,
I have not tested yet because there are few things still pending, but is compiles all the modes that I build with the hand made project and many mores that I don't not even have.

another half day and I think it will be completed.

It only works on visual studion for now, but if should be eassy to add support for Mac, Linux, MingWin and any othe config suppoted by CMake.
if anyone wants to contribute via pull request, that Ulf be great.

anyhow, if any one sync and test it, please let me know if it works and what you think.
Remember it only compiles I have not added the install part yet.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby Slick » Sun Aug 05, 2018 2:44 am

I will take a look and let you know.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: dCustomArticulaledTransformManager not defined

Postby Slick » Sun Aug 05, 2018 4:35 am

Ok I did a fresh clone and everything seems to have built well. :D

A few comments:
    It might be nice to do a post build script to put all the built files into one set of lib and bin folders to make it easier to include in projects.

    I can't yet get the sandbox to work. I copied in the dll's that it needed (script could also do this). After I ran I got an assert about imqui_draw line 1200. Another window opened and they both closed.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Sun Aug 05, 2018 11:28 am

yes I have not work on the sandbox demo yet, that's a special case, that will be done sometime today after everything else is working.
I now added the Install command that copy the relevant files to teh build folder.

basically in visual studio there is now an INTALL project that you run after yo buill the sulution and that does the installation.

the Install has a special variable in CMake that authomatically install to a system forder but I am no using that, instead I am installing to a forder relative to the solution wher CMake create the porject.

the end use can do that extra step on his own.

please see if this work for you,

now I will complet the snadBoxDemo.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby Slick » Sun Aug 05, 2018 11:55 am

Yep that all makes sense. I'll keep an eye out for the update.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Sun Aug 05, 2018 1:40 pm

Ok I now have the demos running in both mode linking to dlls and link to static libraries.
the process is this:

open CMake script in the cmake gui
run configure
the select the king of project you wanat by setting the exposed options
click generate

now you should have a visual studion solution,
note: newton not longer runs with any version of VS lower than 2012 because C++ 11 some features

open the solution and build all project.
build the INSTALL project at least once, this will copy the files to the destination

now if you select the sandBox demos, you can set as the startUpProject and you shpoudl be able to lauch it from visual studion or from a explorer or a command line.


I have adde the plugin yet, I will do that thsi afternoon, but for now thsi should be working.
later I see if I can make a MingWingG makefile than copudl; be use as a model for other systems, if any one wnat to help.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCustomArticulaledTransformManager not defined

Postby Julio Jerez » Sun Aug 05, 2018 8:48 pm

if yo usync before reading thsi, please do it again and Clean up the script a little.
before is was publishing debug and releases libraries to the debug and release with oy filtering
now each lib goes to the folder that it belongs.

This is important for the plugins whi I am doing next.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

PreviousNext

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 2 guests

cron