Problems Building next on Mac OS X
« on: August 31, 2016, 04:38:17 pm »
I am trying to build the next version so I can have aux mag support for gps flying. However, I can't seem to figure out how to get it working. Full disclosure, I'm pretty noobish at this sort of thing so it most assuredly is my fault.

I have followed along with the wiki for building for Mac. Most of the errors I seem to come across comes from qt, usually unknown types and also a good bit of "This version of mac is unsupported." I'm happy to provide any information anyone might need, but I am not know because I don't know what is most important. Please help!

Thanks!

Some info:
El Capitan 10.11.6
« Last Edit: September 01, 2016, 08:43:17 pm by gelatinouscactus »

filnet

  • *****
  • 113
Re: Problems Building next on Mac OS X
« Reply #1 on: September 02, 2016, 05:24:04 pm »
You could start by posting the first few error/warnings you get when compiling.

Also the output of 'make all_sdk_version' could help.

Re: Problems Building next on Mac OS X
« Reply #2 on: September 05, 2016, 12:51:20 am »
Thanks for the reply!

I've attached the output from make_sdk_install and here are the errors from compiling

Code: [Select]
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad_global.h:26:
/Library/Frameworks/QtCore.framework/Headers/qglobal.h:320:6: error: "This
      version of Mac OS X is unsupported" [-Werror,-W#warnings]
#    warning "This version of Mac OS X is unsupported"
     ^
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp:22:
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h:28:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/QThread:1:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:37:
In file included from /Library/Frameworks/QtCore.framework/Headers/qobject.h:50:
/Library/Frameworks/QtCore.framework/Headers/qlist.h:171:22: error: reference to
      'random_access_iterator_tag' is ambiguous
        typedef std::random_access_iterator_tag  iterator_category;
                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:364:30: note:
      candidate found by name lookup is 'std::__1::random_access_iterator_tag'
struct _LIBCPP_TYPE_VIS_ONLY random_access_iterator_tag : public bidirec...
                             ^
/Library/Frameworks/QtCore.framework/Headers/qiterator.h:51:12: note: candidate
      found by name lookup is 'std::random_access_iterator_tag'
    struct random_access_iterator_tag;
           ^
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp:22:
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h:28:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/QThread:1:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:37:
In file included from /Library/Frameworks/QtCore.framework/Headers/qobject.h:50:
/Library/Frameworks/QtCore.framework/Headers/qlist.h:218:22: error: reference to
      'random_access_iterator_tag' is ambiguous
        typedef std::random_access_iterator_tag  iterator_category;
                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:364:30: note:
      candidate found by name lookup is 'std::__1::random_access_iterator_tag'
struct _LIBCPP_TYPE_VIS_ONLY random_access_iterator_tag : public bidirec...
                             ^
/Library/Frameworks/QtCore.framework/Headers/qiterator.h:51:12: note: candidate
      found by name lookup is 'std::random_access_iterator_tag'
    struct random_access_iterator_tag;
           ^
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp:22:
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h:28:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/QThread:1:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:37:
/Library/Frameworks/QtCore.framework/Headers/qobject.h:373:5: error: 'register'
      storage class specifier is deprecated [-Werror,-Wdeprecated-register]
    register T ptr = static_cast<T>(object);
    ^~~~~~~~~
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp:22:
In file included from /Users/Adam/LibrePilot/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h:28:
In file included from /Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/QThread:1:
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:53:40: error:
      expected ';' at end of declaration list
    static Qt::HANDLE currentThreadId() Q_DECL_NOTHROW;
                                       ^
                                       ;
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:55:34: error:
      expected ';' at end of declaration list
    static int idealThreadCount() Q_DECL_NOTHROW;
                                 ^
                                 ;
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:92:30: error:
      expected ';' at end of declaration list
    bool event(QEvent *event) Q_DECL_OVERRIDE;
                             ^
                             ;
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:109:18: error:
      unknown type name 'QPrivateSignal'
    void started(QPrivateSignal);
                 ^
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:110:19: error:
      unknown type name 'QPrivateSignal'
    void finished(QPrivateSignal);
                  ^
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:58:40: error:
      use of undeclared identifier 'Q_NULLPTR'
    explicit QThread(QObject *parent = Q_NULLPTR);
                                       ^
/Users/Adam/LibrePilot/code/librepilot/tools/qt-5.6.1/5.6/clang_64/lib/QtCore.framework/Headers/qthread.h:119:51: error:
      use of undeclared identifier 'Q_NULLPTR'
    QThread(QThreadPrivate &dd, QObject *parent = Q_NULLPTR);
                                                  ^
11 errors generated.
make[4]: *** [.obj/release-shared/sdlgamepad.o] Error 1
make[4]: Leaving directory `/Users/Adam/LibrePilot/code/librepilot/build/librepilot-gcs_release/src/libs/sdlgamepad'
make[3]: *** [sub-sdlgamepad-make_first-ordered] Error 2
make[3]: Leaving directory `/Users/Adam/LibrePilot/code/librepilot/build/librepilot-gcs_release/src/libs'
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory `/Users/Adam/LibrePilot/code/librepilot/build/librepilot-gcs_release/src'
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory `/Users/Adam/LibrePilot/code/librepilot/build/librepilot-gcs_release'
make: *** [gcs] Error 2

Any and all help is appreciated! I just want to get the external mag up and going!

ggrif

  • *
  • 178
Re: Problems Building next on Mac OS X
« Reply #3 on: September 05, 2016, 03:41:50 pm »
I feel your pain. I spent many hours trying to learn to build the GCS, never had any luck.

If you like, there is a thread where new versions of Next have been posted.
https://forum.librepilot.org/index.php?topic=1910.msg16015#msg16015

I can now fly none OP aux mag!

Re: Problems Building next on Mac OS X
« Reply #4 on: September 07, 2016, 08:26:40 pm »
Hey ggrif! Thanks a lot. Unfortunately I think that only includes builds for windows, unless I am missing something.

I ended up dual booting with ubuntu and getting a build working on there, so I'm all good now! Thanks for helping though.

hwh

  • *
  • 1018
« Last Edit: September 07, 2016, 09:19:27 pm by hwh »

Vehicle Setup Wizzard connection failure - > Macbook Apple
« Reply #6 on: September 09, 2016, 11:11:09 am »
Hello everyone,


I'm new on this forum and I have an issue.

I want to link my drone with Libre Pilot but my Macbook cant read the data via "Vehicle Setup Wizzard". Can anyone help me ? Thx
« Last Edit: September 09, 2016, 12:29:05 pm by Leo Martens »
Thanks for sharing this fabulous hobby !

liftbag

  • *****
  • 215
    • LibrePilot
Re: Vehicle Setup Wizzard connection failure - > Macbook Apple
« Reply #7 on: September 09, 2016, 12:54:56 pm »
Hello everyone,


I'm new on this forum and I have an issue.

I want to link my drone with Libre Pilot but my Macbook cant read the data via "Vehicle Setup Wizzard". Can anyone help me ? Thx
Hi. Can you check what version is the bootloader? Must be v4 to run with LibrePilot. On Firmware tab, click on Resque and then connect your board.
If you have bl 4, disconnect your board, click Upgrade & Erase and then connect your board. After the upgrade, repeat the vehicle configuration wizard.