LibrePilot Forum

Development => GCS General => Topic started by: aa8mc on February 16, 2016, 10:47:33 pm

Title: OSX Build Error
Post by: aa8mc on February 16, 2016, 10:47:33 pm
Hey guys, I just pulled down the latest and it looks something with the OSG upgrade broke the build on OSX.  I pulled down the latest dependencies and copied them to the tools directory, but now i get the following error:

Project MESSAGE: Using osgearth from here: /Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1
make[4]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs/osgearth'
make[4]: Entering directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs/osgearth'
/usr/bin/g++ -c -pipe -stdlib=libc++ -Wno-unused-parameter -Wno-unused-parameter -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -w -fPIC -DOSGEARTH_LIBRARY -DUSE_OSG -DUSE_OSGEARTH -DORG_BIG_NAME='"LibrePilot"' -DGCS_BIG_NAME='"LibrePilot GCS"' -DORG_SMALL_NAME='"librepilot"' -DGCS_SMALL_NAME='"librepilot-gcs"' -DWIKI_URL_ROOT='"https://librepilot.atlassian.net/wiki/display/LPDOC/"' -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/Users/cmorton/projects/librepilot/ground/gcs/src/libs/osgearth -I. -I/Users/cmorton/projects/librepilot/ground/gcs/src/libs -I/Users/cmorton/projects/librepilot/tools/osg-3.5.1-clang_64-qt-5.5.1/include -I/Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1/include -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtOpenGL.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtWidgets.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtQuick.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtGui.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtQml.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtNetwork.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtCore.framework/Headers -I.moc/release-shared -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/mkspecs/macx-clang -F/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib -o .obj/release-shared/utility.o /Users/cmorton/projects/librepilot/ground/gcs/src/libs/osgearth/utility.cpp
cp -f -R /Users/cmorton/projects/librepilot/tools/osg-3.5.1-clang_64-qt-5.5.1/lib/* '/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/LibrePilot GCS.app/Contents/Plugins/'
cp -f -R /Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1/lib/* '/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/LibrePilot GCS.app/Contents/Plugins/'
In file included from /Users/cmorton/projects/librepilot/ground/gcs/src/libs/osgearth/utility.cpp:66:
/Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1/include/osgEarth/ElevationQuery:40:32: error: virtual function 'readNodeFile'
      has a different return type ('osg::Node *') than the function it overrides (which has return type 'osg::ref_ptr<osg::Node>')
            virtual osg::Node* readNodeFile(const std::string& filename);
                    ~~~~~~~~~~ ^
/Users/cmorton/projects/librepilot/tools/osg-3.5.1-clang_64-qt-5.5.1/include/osgUtil/IntersectionVisitor:163:45: note: overridden virtual function is
      here
            virtual osg::ref_ptr<osg::Node> readNodeFile(const std::string& filename) = 0;
                    ~~~~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
make[4]: *** [.obj/release-shared/utility.o] Error 1
make[4]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs/osgearth'
make[3]: *** [sub-osgearth-make_first-ordered] Error 2
make[3]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs'
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src'
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release'
make: *** [gcs] Error 2
ldt-7mdcqc1:librepilot cmorton$

I think this has to do with the addition of the osg-3.5.1.patch file but im trying to figure out if there is a particular build step that applies it or if its best for me to just apply it myself.  Can someone help?

Casey
Title: Re: OSX Build Error
Post by: m_thread on February 16, 2016, 11:04:36 pm
Hi
Try to do:
Code: [Select]
make all_clean
make osg_install
make -j8 all

The second one will pull the pre-built binaries from our repo and use them when building.
The first will clean all and the last one build all. Replace the 8 in -j8 with some other number (your number of cpu cores) to use your computer optimally. Maybe you already know all this though ;)

/Fredrik
Title: Re: OSX Build Error
Post by: aa8mc on February 16, 2016, 11:24:38 pm
Ahh I'll bet that's my problem.  I just did make clean instead of all_clean
Title: Re: OSX Build Error
Post by: aa8mc on February 17, 2016, 03:22:07 am
Hmmm, that didnt seem to make a difference.  Any other ideas?

Casey
Title: Re: OSX Build Error
Post by: gunnah on February 17, 2016, 07:12:13 am
I built like this:

1. clone repo
2. make all_sdk_install
3. make -j8 all_osg
4. copy the *osg stuff from the '/build/3rdparty/install' dir to 'YourLPdir/tools'
5. in root of build dir type:
 echo "override GCS_EXTRA_CONF=osg osgearth copy_osg" > config
6. make -j8 package

something very close to that anyways (jus looking through the terminal log and reading back in a chat from this weekend ;)

cheers

ps: if I mucked up anything someone please correct it :)
Title: Re: OSX Build Error
Post by: m_thread on February 17, 2016, 07:26:10 am
There is NO NEED to build the OSG binaries. We have pre-built binaries in our github.io repo. If you do what I wrote. I.e. 'make osg_install' it will pull the binaries I have pre-built for MacOSX from that repo and put them in the /tools folder in the correct place.
If you for some reason really need/want to build OSG and OSGEarth then you have to follow something like the procedure outlined above. BUT there are some bugs in the current OSG source code that has to be patched to not have compiler errors.
Title: Re: OSX Build Error
Post by: aa8mc on February 17, 2016, 03:53:13 pm

1. clone repo
2. make all_sdk_install
3. make -j8 all_osg
4. copy the *osg stuff from the '/build/3rdparty/install' dir to 'YourLPdir/tools'
5. in root of build dir type:
 echo "override GCS_EXTRA_CONF=osg osgearth copy_osg" > config
6. make -j8 package


Yeah I was hoping to not have to do that.  I'll nuke the repo and try rebuilding from scratch.  As I do, I'll update the wiki as well.  I noticed that it is pretty out of date on the OSX side.

C
Title: Re: OSX Build Error
Post by: aa8mc on February 17, 2016, 05:08:31 pm
It looks like the pre-built OSG libraries are built for 32 bit only.  I am getting the following errors now:

/usr/bin/g++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -single_module -dynamiclib -compatibility_version   1.0 -current_version   1.0.0 -Wl,-install_name,@executable_path/../Plugins/libGCSOsgEarth.1.dylib -o libGCSOsgEarth.1.0.0.dylib .obj/release-shared/utility.o .obj/release-shared/qtwindowingsystem.o .obj/release-shared/osgearth.o .obj/release-shared/OSGNode.o .obj/release-shared/OSGGroup.o .obj/release-shared/OSGTransformNode.o .obj/release-shared/OSGCubeNode.o .obj/release-shared/OSGTextNode.o .obj/release-shared/OSGFileNode.o .obj/release-shared/OSGBackgroundNode.o .obj/release-shared/OSGCamera.o .obj/release-shared/OSGViewport.o .obj/release-shared/OSGModelNode.o .obj/release-shared/OSGSkyNode.o .obj/release-shared/moc_OSGNode.o .obj/release-shared/moc_OSGGroup.o .obj/release-shared/moc_OSGTransformNode.o .obj/release-shared/moc_OSGCubeNode.o .obj/release-shared/moc_OSGTextNode.o .obj/release-shared/moc_OSGFileNode.o .obj/release-shared/moc_OSGBackgroundNode.o .obj/release-shared/moc_OSGCamera.o .obj/release-shared/moc_OSGViewport.o .obj/release-shared/moc_OSGModelNode.o .obj/release-shared/moc_OSGSkyNode.o  -F/Users/cmorton/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib -L/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/LibrePilot\ GCS.app/Contents/Plugins -lUtils -L/Users/cmorton/projects/librepilot/tools/osg-3.5.1-clang_64-qt-5.5.1/lib64 -lOpenThreads -losg -losgUtil -losgDB -losgGA -losgFX -losgViewer -losgText -L/Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1/lib64 -losgEarth -losgEarthUtil -losgEarthFeatures -losgEarthSymbology -losgEarthAnnotation -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtQuick -framework QtQml -framework QtNetwork -framework OpenGL -framework AGL 
ld: warning: directory not found for option '-L/Users/cmorton/projects/librepilot/tools/osg-3.5.1-clang_64-qt-5.5.1/lib64'
ld: warning: directory not found for option '-L/Users/cmorton/projects/librepilot/tools/osgearth-2.7-clang_64-qt-5.5.1/lib64'
ld: library not found for -lOpenThreads
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [../../../LibrePilot GCS.app/Contents/Plugins/libGCSOsgEarth.1.0.0.dylib] Error 1
make[4]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs/osgearth'
make[3]: *** [sub-osgearth-make_first-ordered] Error 2
make[3]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src/libs'
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release/src'
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory `/Users/cmorton/projects/librepilot/build/librepilot-gcs_release'
make: *** [gcs] Error 2
ldt-7mdcqc1:librepilot cmorton$ ls tools/osg
osg-3.5.1-clang_64-qt-5.5.1/    osgearth-2.7-clang_64-qt-5.5.1/
ldt-7mdcqc1:librepilot cmorton$ ls tools/osg
osg-3.5.1-clang_64-qt-5.5.1/    osgearth-2.7-clang_64-qt-5.5.1/
ldt-7mdcqc1:librepilot cmorton$ ls tools/osg-3.5.1-clang_64-qt-5.5.1/
bin/     include/ lib/     
ldt-7mdcqc1:librepilot cmorton$ ls tools/osg-3.5.1-clang_64-qt-5.5.1/lib/
libOpenThreads.20.dylib      libosgGA.141.dylib      libosgShadow.141.dylib      libosgUtil.141.dylib
libOpenThreads.3.3.0.dylib   libosgGA.3.5.1.dylib      libosgShadow.3.5.1.dylib   libosgUtil.3.5.1.dylib
libOpenThreads.dylib      libosgGA.dylib         libosgShadow.dylib      libosgUtil.dylib
libosg.141.dylib      libosgManipulator.141.dylib   libosgSim.141.dylib      libosgViewer.141.dylib
libosg.3.5.1.dylib      libosgManipulator.3.5.1.dylib   libosgSim.3.5.1.dylib      libosgViewer.3.5.1.dylib
libosg.dylib         libosgManipulator.dylib      libosgSim.dylib         libosgViewer.dylib
libosgAnimation.141.dylib   libosgParticle.141.dylib   libosgTerrain.141.dylib      libosgVolume.141.dylib
libosgAnimation.3.5.1.dylib   libosgParticle.3.5.1.dylib   libosgTerrain.3.5.1.dylib   libosgVolume.3.5.1.dylib
libosgAnimation.dylib      libosgParticle.dylib      libosgTerrain.dylib      libosgVolume.dylib
libosgDB.141.dylib      libosgPresentation.141.dylib   libosgText.141.dylib      libosgWidget.141.dylib
libosgDB.3.5.1.dylib      libosgPresentation.3.5.1.dylib   libosgText.3.5.1.dylib      libosgWidget.3.5.1.dylib
libosgDB.dylib         libosgPresentation.dylib   libosgText.dylib      libosgWidget.dylib
libosgFX.141.dylib      libosgQt.141.dylib      libosgUI.141.dylib      osgPlugins-3.5.1
libosgFX.3.5.1.dylib      libosgQt.3.5.1.dylib      libosgUI.3.5.1.dylib      pkgconfig
libosgFX.dylib         libosgQt.dylib         libosgUI.dylib
Title: Re: OSX Build Error
Post by: m_thread on February 17, 2016, 07:04:49 pm
No, the binaries are 64bit.
https://github.com/librepilot/librepilot.github.io/blob/master/tools/osg-3.5.1-clang_64-qt-5.5.1.tar.gz
I can build GCS without any issues. Have you followed the instructions in CONTRIBUTING.md? What version of XCode do you have installed?
Did you clean up your tool directory after having things copied manually there?
/Fredrik
Title: Re: OSX Build Error
Post by: liftbag on February 17, 2016, 07:38:57 pm
Yes the binaries are for 64 bit. I built without issues on El Capitan. The olny required thing is to generate the config file in order to visualize osg.
Title: Re: OSX Build Error
Post by: mr_w on February 17, 2016, 07:49:53 pm
For some reason your build is looking for libraries in lib64 instead of lib. Can you try renaming lib to lib64 inside osg & osgearth, to see if it helps.

Title: OSX Build Error
Post by: aa8mc on February 18, 2016, 03:09:16 am
I generated the config file as prescribed on the wiki.  I also built on El Cap.  I'll go ahead and create a symlink between the two directories for the time being.  Knowing that the binaries are indeed 64 bit ill take a looksy at the build and figure out why it's looking there.   I figured I'd have to dust off my C chops eventually.
Title: Re: OSX Build Error
Post by: ShanetrainST on March 14, 2016, 12:11:24 pm
Hi Guys

The current Librepilot GCS is a awesome interface but it lacks 1 important feature that I am sure many will require 'External Mag'

I have made many attempts to build the next branch to gain external mag with failed results, wasted a weekend of flying messing around with it.
I am a fare noob when it comes to playing around in terminal.

OSX terminal was a fail - GUI didn't work (my fault, still cannot make it work) and now it has this error lots of times on command (Make all_sdk_install)
Quote
BUILD       build/doxygen-1.8.3.1
In file included from qbuffer.cpp:38:
In file included from ./qbuffer.h:42:
In file included from ./qiodevice.h:42:
./qglobal.h:99:6: warning: "This version of Mac OS X is unsupported" [-W#warnings]
#    warning "This version of Mac OS X is unsupported"

Vmware Ubuntu was a fail - Vmware's fault   

VirtualBox - Resolution issues, video issues and not usable

I am asking the admin of https://librepilot.atlassian.net/
if he could please upload a beta version of librepilot with external mag support too help noobs like me get out flying

Thanks

Shane 


Title: Re: OSX Build Error
Post by: aa8mc on March 14, 2016, 07:58:18 pm
Hey guys, I'm working on rebuilding the latest for Shane.  It looks like I am getting some sort of compilation error on the PFD plugin.  Can someone take a look and verify?

Here is the build error:

Code: [Select]
/usr/bin/g++ -c -pipe -stdlib=libc++ -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -Werror -Wno-gnu-static-float-init -fPIC -DORG_BIG_NAME='"LibrePilot"' -DGCS_BIG_NAME='"LibrePilot GCS"' -DORG_SMALL_NAME='"librepilot"' -DGCS_SMALL_NAME='"librepilot-gcs"' -DWIKI_URL_ROOT='"https://librepilot.atlassian.net/wiki/display/LPDOC/"' -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/601292/projects/librepilot/ground/gcs/src/plugins/pathactioneditor -I. -I/Users/601292/projects/librepilot/ground/gcs/src/libs -I/Users/601292/projects/librepilot/ground/gcs/src/plugins -I/Users/601292/projects/librepilot/ground/gcs/src/plugins/uavobjects -I../uavobjects -I/Users/601292/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtWidgets.framework/Headers -I/Users/601292/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtGui.framework/Headers -I/Users/601292/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtCore.framework/Headers -I.moc/release-shared -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I.uic -I/Users/601292/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/mkspecs/macx-clang -F/Users/601292/projects/librepilot/tools/qt-5.5.1/5.5/clang_64/lib -o .obj/release-shared/pathactioneditorgadgetwidget.o /Users/601292/projects/librepilot/ground/gcs/src/plugins/pathactioneditor/pathactioneditorgadgetwidget.cpp
/Users/601292/projects/librepilot/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp:282:42: error: unused parameter 'settings' [-Werror,-Wunused-parameter]
void PfdQmlContext::saveState(QSettings *settings)
                                         ^
/Users/601292/projects/librepilot/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp:285:45: error: unused parameter 'settings' [-Werror,-Wunused-parameter]
void PfdQmlContext::restoreState(QSettings *settings)
                                            ^
2 errors generated.
make[4]: *** [.obj/release-shared/pfdqmlcontext.o] Error 1
make[4]: Leaving directory `/Users/601292/projects/librepilot/build/librepilot-gcs_release/src/plugins/pfdqml'
make[3]: *** [sub-pfdqml-make_first] Error 2
make[3]: *** Waiting for unfinished jobs....
Title: Re: OSX Build Error
Post by: f5soh on March 14, 2016, 08:18:18 pm
Currently there is a work in progress.
OSX fails because now treats warnings as errors.

Before start editing you can create your local branch:

Code: [Select]
git checkout -b my_custom_branch_name
You can edit the /ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp file and add

Code: [Select]
Q_UNUSED(settings); inside function.

Like that:
Code: [Select]
void PfdQmlContext::saveState(QSettings *settings)
{
Q_UNUSED(settings);
}

void PfdQmlContext::restoreState(QSettings *settings)
{
Q_UNUSED(settings);
}
Title: Re: OSX Build Error
Post by: f5soh on March 14, 2016, 08:53:25 pm
Please update your local branch, fix is already merged to next

Code: [Select]
git pull
Title: Re: OSX Build Error
Post by: aa8mc on March 14, 2016, 09:31:48 pm
Thanks guys!  That got it.  One other thing to note is that on OSX there appears to be a missing resource.  I believe its also related to the PFD.  When I first start GCS, it looks like it hangs up when loading the core, but its actually showing a dialog thats being covered up by the LP spash screen.  Simply pressing ESC gets you past it, but its definitely something to fix.  Im sure its just a path issue.  If someone can give me some clues as to where to look and whats going on , I may be able to fix it myself and submit a PR for it.

Casey
Title: Re: OSX Build Error
Post by: f5soh on March 14, 2016, 09:45:29 pm
add "-reset" to command line

PFD changed a lot so config file need to be updated
Title: Re: OSX Build Error
Post by: ShanetrainST on March 15, 2016, 01:11:26 am
really appreciated all the help guys
Title: Re: OSX Build Error
Post by: ShanetrainST on March 15, 2016, 02:32:48 am
Thought I would give VirtualBox one last crack, now I am not 100% sure if this is the git that it is downloading from but i find I have this error all the time. all my librepilot git is up to date

But after it makes the sdk with included error it crashes my virtualbox when I build it with a openGL error.
I have made sure that all my graphics drivers are upto date and 3d on
Title: Re: OSX Build Error
Post by: hwh on March 15, 2016, 03:40:32 am
It looks like you're typing "make osgearth install"  the command is "make osgearth_install"  with an underscore.  The way you're typing it the computer is trying to make osgearth  and then make install.
Title: Re: OSX Build Error
Post by: f5soh on March 15, 2016, 07:13:55 am
In your screenshot you are pointing osx prebuild binaries at github.io and you are running Linux.

Like Hank says,
Code: [Select]
make osg_install for osg install

Title: Re: OSX Build Error
Post by: ShanetrainST on March 16, 2016, 12:03:52 am
Thanks for all your help caseyjmorton & f5soh

I sat down last night and changed to my other mac for a good 3hrs
I managed to finally build a working dmg

LibrePilot-15.09+r498-g9e6989d-osx.dmg
http://www92.zippyshare.com/v/0HGIFUop/file.html (http://www92.zippyshare.com/v/0HGIFUop/file.html)

I seem to not have had any luck getting my HMC5883L Mag to work on the I2C
But my old clone naza m8n seems to have fired up, see how it goes, i am seeing AuxMag values :)
Title: Compiling error :(
Post by: brukutu on March 26, 2016, 06:15:43 am
When trying to compile on mac i get the following when make gcs.

Code: [Select]
In file included from /Users/brukutu/librepilot_code/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtQml.framework/Headers/qqmlengine.h:39:
/Users/brukutu/librepilot_code/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qmap.h:617:27: error: returning address of local temporary
      object [-Werror,-Wreturn-stack-address]
    return n ? n->value : adefaultValue;
                          ^~~~~~~~~~~~~
/Users/brukutu/librepilot_code/librepilot/ground/gcs/src/libs/utils/svgimageprovider.cpp:48:42: note: in instantiation of member function
      'QMap<QString, QSvgRenderer *>::value' requested here
    QSvgRenderer *renderer = m_renderers.value(svgFile);
                                         ^
/Users/brukutu/librepilot_code/librepilot/tools/qt-5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qmap.h:386:44: note: binding reference variable
      'adefaultValue' here
    const T value(const Key &key, const T &defaultValue = T()) const;
                                           ^              ~~~
1 error generated.
make[4]: *** [.obj/release-shared/svgimageprovider.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/Users/brukutu/librepilot_code/librepilot/build/librepilot-gcs_release/src/libs/utils'
make[3]: *** [sub-utils-make_first-ordered] Error 2
make[3]: Leaving directory `/Users/brukutu/librepilot_code/librepilot/build/librepilot-gcs_release/src/libs'
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory `/Users/brukutu/librepilot_code/librepilot/build/librepilot-gcs_release/src'
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory `/Users/brukutu/librepilot_code/librepilot/build/librepilot-gcs_release'
make: *** [gcs] Error 2
Brunos-MacBook-Pro:librepilot brukutu$
Title: Re: OSX Build Error
Post by: f5soh on March 26, 2016, 09:13:51 am
Know OSX issue, wait the fix :)
Title: Re: OSX Build Error
Post by: Tomcatt on March 28, 2016, 09:40:39 am
Thanks for all your help caseyjmorton & f5soh

I sat down last night and changed to my other mac for a good 3hrs
I managed to finally build a working dmg

LibrePilot-15.09+r498-g9e6989d-osx.dmg
http://www92.zippyshare.com/v/0HGIFUop/file.html (http://www92.zippyshare.com/v/0HGIFUop/file.html)

I seem to not have had any luck getting my HMC5883L Mag to work on the I2C
But my old clone naza m8n seems to have fired up, see how it goes, i am seeing AuxMag values :)


Dude, thanks.  This one works just fine.  Don't know how you compiled it.  I'm getting errors myself.  Was about to sit back and until I seen your link.
Title: Re: OSX Build Error
Post by: Ractive on March 30, 2016, 11:41:15 pm
Can I add my thanks to f5soh - banging my head trying to build in windows and OSX
Now I have my external mag up and running :)
Title: Re: OSX Build Error
Post by: cutemachines on April 13, 2016, 05:00:46 pm
@ShanetrainST this is awesome! Thanks a mil! Everything work just okay. I tried to build next by myself, but gave up after couple of hours... I'm not that proficient if it comes to software building on Mac:)

Btw. I was thinking, because the official release period seems to be quite long, maybe we could have an automated weekly builds, or something linke this. Just from my perspective would help a lot!
Title: Re: OSX Build Error
Post by: Tomcatt on April 19, 2016, 07:35:30 pm
Any news on new updates?  This latest one fix an odd yaw issue I had.  My bird would just drop out of the sky.  At first I thought it was the damp light setting in the ESC's but after a successful flight yesterday all is well.