Custom joints changes and GCC

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 10:03 am

It look as if you do not have some of the standard included. in the make file did you defined any of these.
Code: Select all
#if (defined (_POSIX_VER) || defined (_POSIX_VER_64) || defined (_MINGW_32_VER) || defined (_MINGW_64_VER))
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 10:45 am

hmm I removed the flag in the cmake file

Code: Select all
if (NOT ANDROID)
  if (${UNIX})
    if (BUILD_64)
      add_definitions(-D_POSIX_VER_64)
    else (BUILD_64)
      add_definitions(-D_POSIX_VER)
    endif (BUILD_64)
  endif(${UNIX})
endif(NOT ANDROID)


I did this to remove other errors
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 10:55 am

do you men you did no have that and you added it now?
so it is all ok now?
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 11:13 am

when I set the POSIX_VER I have this error

Code: Select all
[ 83%] Building CXX object newton-dynamics/coreLibrary_300/CMakeFiles/NewtonObj.dir/source/core/dg.cpp.o
In file included from D:\dev\scol-technologies\trunk\dependencies\newton-dynamics\coreLibrary_300\source\core\dgStdafx.h:25:0,
                 from D:\dev\scol-technologies\trunk\dependencies\newton-dynamics\coreLibrary_300\source\core\dg.cpp:22:
D:\dev\scol-technologies\trunk\dependencies\newton-dynamics\coreLibrary_300\source\core\dgTypes.h:108:26: fatal error: pmmintrin.h: No such file or directory
   #include <pmmintrin.h>
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 11:15 am

This file is not available in ARM includes
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 11:55 am

do you have later newton version
that file now look like this,
Code: Select all
      #ifdef [b]__SSE4_1__
[/b]         #define DG_SSE4_INSTRUCTIONS_SET
         #include <smmintrin.h>
      #endif


if a platform does no supports SSE4.1 then __SSE4_1__ will be undefined and DG_SSE4_INSTRUCTIONS_SET will not be defined.
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 12:13 pm

I'll recheck that I've updated this morning
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 12:47 pm

ok then this macro __SSE4_1__ is defined otherwise it will not build with DG_SSE4_INSTRUCTIONS_SET
you can test that by adding preprocessor #error

Code: Select all
      #ifdef __SSE4_1__
#error "this platform define SSE4.1"
         #define DG_SSE4_INSTRUCTIONS_SET
         #include <smmintrin.h>
      #endif
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 12:52 pm

I think SSE3 should not be set too ?

I got it work adding
Code: Select all
#ifndef ANDROID
   extern "C"
   {
      // for SSE3 and up
      #include <pmmintrin.h>
      #include <emmintrin.h>
      #include <mmintrin.h>
      #ifdef __SSE4_1__
         #define DG_SSE4_INSTRUCTIONS_SET
         #include <smmintrin.h>
      #endif
   }
#endif


A preprocessor specific to ARM should be better trough.
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 12:59 pm

I agree, can you make the change an I added it?
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 1:03 pm

from http://infocenter.arm.com/help/index.js ... bacdb.html

Code: Select all
#ifndef __arm
   extern "C"
   {
      // for SSE3 and up
      #include <pmmintrin.h>
      #include <emmintrin.h>
      #include <mmintrin.h>
      #ifdef __SSE4_1__
         #define DG_SSE4_INSTRUCTIONS_SET
         #include <smmintrin.h>
      #endif
   }
#endif
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 1:05 pm

if you could also make the change from my 2nd post in this thread.
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby Julio Jerez » Mon Jun 01, 2015 1:24 pm

ok, I will do tonight
Julio Jerez
Moderator
Moderator
 
Posts: 11039
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Custom joints changes and GCC

Postby arkeon » Mon Jun 01, 2015 1:24 pm

cool thanks
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Custom joints changes and GCC

Postby arkeon » Wed Jun 03, 2015 1:52 pm

Hello
I just update the trunk and the __ARMCC_VERSION nor __arm is not defined for me

if I use __arm__ it's ok.


I didn't tried the joints part yet, I just keep it without the serialization for now.
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

PreviousNext

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest