Build issues (Linux) and some demos not working

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Build issues (Linux) and some demos not working

Postby godlike » Tue Jan 02, 2018 3:58 am

It seems the brand new 3.14 version doesn't build on Linux and some demos are crashing.

This is the patch the fixes the build errors:

Code: Select all
diff --git a/applications/demosSandbox/CMakeLists.txt b/applications/demosSandbox/CMakeLists.txt
index bb0e475..1877e99 100644
--- a/applications/demosSandbox/CMakeLists.txt
+++ b/applications/demosSandbox/CMakeLists.txt
@@ -34,9 +34,9 @@ include_directories(${OPENGL_INCLUDE_DIRS})
 target_link_libraries(demosSandbox ${OPENGL_LIBRARIES})
 
 # julio commented this out for now
-#find_package(OpenAL REQUIRED)
-#include_directories(${OPENAL_INCLUDE_DIR})
-#target_link_libraries(demosSandbox ${OPENAL_LIBRARY})
+find_package(OpenAL REQUIRED)
+include_directories(${OPENAL_INCLUDE_DIR})
+target_link_libraries(demosSandbox ${OPENAL_LIBRARY})
 
 if (WIN32 OR APPLE)
   target_link_libraries(demosSandbox glfw tinyxml)
diff --git a/applications/demosSandbox/sdkDemos/toolBox/dSoundManager.cpp b/applications/demosSandbox/sdkDemos/toolBox/dSoundManager.cpp
index 4c5167b..73958aa 100644
--- a/applications/demosSandbox/sdkDemos/toolBox/dSoundManager.cpp
+++ b/applications/demosSandbox/sdkDemos/toolBox/dSoundManager.cpp
@@ -276,7 +276,7 @@ void* dSoundManager::CreateSound (const char* const fileName)
 {
    if (m_device) {
       char path[2048];
-      GetWorkingFileName (fileName, path);
+      dGetWorkingFileName (fileName, path);
 
       dCRCTYPE code = dCRC64 (path);
       dSoundAssetList::dTreeNode* assetNode = m_assets.Find(code);


Some of the demos are crashing or not working:
- Simple soft body: Crashing
- Simple cloth patch: Doesn't seem to do anything
- Advanced player controller: Doesn't move
- Basic player controller: Doesn't move
- Heavy vehicles: The tank is missing the caterpillar track. Doesn't seem to be able to move.
- Basic car: The camera is bellow the plane. There is no car
- Dynamic rag doll: Crashing
- Passive rag doll: Doesn't work right. The legs come off and the rest of the body doesn't collide correctly
- Structured convex fracture: Crashing
- Simple boolean operations: Crashing
- Paper wall continuous collision: Doesn't seem to work
User avatar
godlike
 
Posts: 58
Joined: Sun Mar 16, 2014 3:48 am

Re: Build issues (Linux) and some demos not working

Postby Julio Jerez » Tue Jan 02, 2018 6:32 am

Are this crashes on Linux or all platforms?
Some functionality could not make it ( soft body, and the vehicle driving)
The inverse dynamics took all my vacation time and I wanted to have the release by the year end.
I did not go over all demos. Sorry about that mistake
I will test all demos and dissable the ones that aren't ready until the demos is re- written.
Many of the problems are because when the engine changes, I usually test in one demo and comment out the part on other demos that uses the same functionality until I get to it. But you are right that should not be a excused.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Build issues (Linux) and some demos not working

Postby godlike » Tue Jan 02, 2018 9:22 am

Thanks for the reply!

I've only tested in Linux. Will try to build for windows when I get home and share the results.

PS: We had a conversation some time ago about testing the Linux build using travis CI. I'm happy do assist with that integration. Let me know when is the good time to discuss that further. No rush and no pressure :)
User avatar
godlike
 
Posts: 58
Joined: Sun Mar 16, 2014 3:48 am

Re: Build issues (Linux) and some demos not working

Postby Sweenie » Tue Jan 02, 2018 11:40 am

Seems most of the demos mentioned crashes on windows(64-bit) as well so probably not specific to Linux.
Sweenie
 
Posts: 498
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Build issues (Linux) and some demos not working

Postby Julio Jerez » Tue Jan 02, 2018 11:44 am

Ok I will test them
lets us start by applying the patch, godlike can you submit that patch on GitHub, whe I try to apply it I get this error.

git.exe am --3way --ignore-space-change --keep-cr "C:\Users\julio\Downloads\Patch.patch"
Patch format detection failed.

Fail
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Build issues (Linux) and some demos not working

Postby Julio Jerez » Tue Jan 02, 2018 12:07 pm

ok I took a look and many of the crash are because some of those demo use the mesh utility which changed a lot and the body of the code is commented out for example the soft demo
the first one
- Simple soft body: Crashing
crash here of this line.

Code: Select all
dgCollisionDeformableSolidMesh::dgCollisionDeformableSolidMesh(dgWorld* const world, dgMeshEffect* const mesh)
   :dgCollisionDeformableMesh(world, m_deformableSolidMesh)
   ,m_finiteElements(world->GetAllocator())
   ,m_finiteElementsCount(0)
{
   m_rtti |= dgCollisionDeformableSolidMesh_RTTI;

   dgAssert (0);
/*
 


It will take some work to re implement that function, but I now has to go back to work, so I will only have small amount of time to work on the engine again.
I will tyr to go over all of them to see if I get that fixed by the weekend and re upload a new "stable version"

mean time godlike, if you can see if you can submit the path to github so that I can merge without using the command line tool

can you submit that patch on GitHub, whe I try to apply it I get this error.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Build issues (Linux) and some demos not working

Postby godlike » Tue Jan 02, 2018 4:54 pm

No problem. Created a pull request
User avatar
godlike
 
Posts: 58
Joined: Sun Mar 16, 2014 3:48 am

Re: Build issues (Linux) and some demos not working

Postby Julio Jerez » Tue Jan 02, 2018 5:10 pm

thank I will merge tonight.
if I can get a few demos going I will re upload the the realease, else I will deleted until all demos are good.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Build issues (Linux) and some demos not working

Postby Julio Jerez » Sat Jan 06, 2018 1:12 pm

ok is going to teak some time to re enable all the demos.
I will pose here as they get re solved

- Passive rag doll: fixed.

I am calling thsi demo test crash dummy, because this is no the traditional rag doll, this one the ling has friction so is more lie a mannequin than a rag doll. It can of course be lie a simple rag doll but that old.
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 9 guests

cron