LibrePilot Forum

Development => Firmware General => Topic started by: kennyevo on January 01, 2018, 08:13:46 pm

Title: Building on OSX High Sierra
Post by: kennyevo 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);
Title: Re: Building on OSX High Sierra
Post by: f5soh on January 01, 2018, 10:20:43 pm
Seems not related to LP source code.
Try https://stackoverflow.com/questions/20813028/endian-h-not-found-on-mac-osx
Title: Re: Building on OSX High Sierra
Post by: kennyevo on January 01, 2018, 10:44:52 pm
Thanks, updated my question, it looks fixed!