kennyevo

  • ***
  • 101
Building on OSX High Sierra
« on: January 01, 2018, 08:13:46 pm »
Hi all!

I've tried to build the whole thing on osx after letting my drones hang on the wall for a while :P

on doxygen_install I get the following error:
Code: [Select]
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:88:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:163:11: fatal error:
      'sys/endian.h' file not found

Followed the steps in the wiki. (I have xcode 9 installed)

Thanks in advance!

EDIT:

Installed tools for build only with
Code: [Select]
make build_sdk_install.

I had to add some fix for a file: (ground/gcs/plugins/flightlog/flightlogmanager.cpp line 232 and 238) (I don't know if this is a good fix or not, but the build was successful and the gcs looks good!

Code: [Select]
-                            memcpy(&fields, &logEntry->getData().Data[start], header_len);
+                            quint8 tmpData = logEntry->getData().Data[start];
+                            memcpy(&fields, &tmpData, header_len);
« Last Edit: January 01, 2018, 10:44:29 pm by kennyevo »

f5soh

  • *****
  • 4363
    • LibrePilot
Re: Building on OSX High Sierra
« Reply #1 on: January 01, 2018, 10:20:43 pm »

kennyevo

  • ***
  • 101
Re: Building on OSX High Sierra
« Reply #2 on: January 01, 2018, 10:44:52 pm »
Thanks, updated my question, it looks fixed!