Mac build fixes

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Mac build fixes

Postby pHySiQuE » Wed Jan 23, 2013 9:07 pm

dContainersstfAfx.h, line 55. Change this:
Code: Select all
#include <malloc.h>

To this:
Code: Select all
#include <malloc/malloc.h>


dgTypes.h, line 27. Change this:
Code: Select all
#if !(defined (__USE_DOUBLE_PRECISION__) || defined (__ppc__) || defined (ANDROID) || defined (IOS))
   #define DG_BUILD_SIMD_CODE
#endif

To this:
Code: Select all
#if !(defined (__USE_DOUBLE_PRECISION__) || defined (__ppc__) || defined (ANDROID) || defined (__APPLE__))
   #define DG_BUILD_SIMD_CODE
#endif
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Mac build fixes

Postby pHySiQuE » Wed Jan 23, 2013 10:11 pm

In dMathDefines.cpp, line 23, change this:
Code: Select all
void dExpandTraceMessage (const char *fmt, ...)
{
    va_list v_args;
   char text[1024];

   text[0] = 0;
   va_start (v_args, fmt);     
   vsprintf(text, fmt, v_args);
   va_end (v_args);           

   OutputDebugStringA (text);
}
#endif

To this:
Code: Select all
void dExpandTraceMessage (const char *fmt, ...)
{
    #ifdef _WIN32
    va_list v_args;
   char text[1024];

   text[0] = 0;
   va_start (v_args, fmt);     
   vsprintf(text, fmt, v_args);
   va_end (v_args);           

   OutputDebugStringA (text);
    #endif
}
#endif
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Mac build fixes

Postby Julio Jerez » Thu Jan 24, 2013 9:32 am

alright fixed.

Thank you
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Mac build fixes

Postby pHySiQuE » Fri Jan 25, 2013 3:39 pm

Thank you.

With your latest version, I have to add this line to dMatrix.h or it complains that memcpy() is not declared in this scope:
Code: Select all
#include <string.h>


I also had to add this line of code to the top of Newton.h to prevent a long list of compile errors:
Code: Select all
#include <string.h>
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Mac build fixes

Postby Julio Jerez » Sat Jan 26, 2013 7:16 am

ok fixed
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron