Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 14.04: dependency not satisfiable #317

Closed
AndKe opened this issue Apr 28, 2014 · 29 comments
Closed

Ubuntu 14.04: dependency not satisfiable #317

AndKe opened this issue Apr 28, 2014 · 29 comments

Comments

@AndKe
Copy link
Contributor

AndKe commented Apr 28, 2014

Tried to install latest daily build: apm_planner_2.0.8-51-g2da0d7f_ubuntu64.deb

apmplanner2 depends on libopenscenegraph80; however: Package libopenscenegraph80 is not installed.

Current Ubuntu release offers libopenscenegraph99 and libopenscenegraph-dev

@stephendade
Copy link
Contributor

The source still compiles OK on Ubuntu 14.
Unfortunately, Ubuntu 13 and 14 use very different versions of OpenSceneGraph.
We would need to build a separate package of APMPlanner2 for Ubuntu 14, as the current daily build is based on Ubuntu 13.

@AndKe
Copy link
Contributor Author

AndKe commented Apr 28, 2014

Funny you should say it does compile on 14.04 - my problem is here: http://pastebin.com/HH59Zf4w

Basically these two lines here:

In file included from src/ui/MainWindow.cc:31:0:
/usr/include/osg/Math: In function ‘bool osg::isNaN(float)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared
#define isnan(x) std::isnan(x)
^
/usr/include/osg/Math: In function ‘bool osg::isNaN(double)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared
#define isnan(x) std::isnan(x)

@stephendade
Copy link
Contributor

I upgraded from Ubuntu 13 to 14 and had to manually re-install openscenegraph, if that's your issue.

Otherwise, issue #258 seems similar.

@AndKe
Copy link
Contributor Author

AndKe commented Apr 28, 2014

Thank you - commenting out those lines fixed it.

@stephendade
Copy link
Contributor

That's interesting ... it compiles OK on my Ubuntu 14 x64 without needing those modifications. I'll see if I can replicate the issue on my end.

@malcom2073 malcom2073 self-assigned this Apr 28, 2014
@stephendade
Copy link
Contributor

I've managed to replicate the issue by upgrading libopenscenegraph80 to libopenscenegraph99. I'll figure out a patch for it.

@NullVoxPopuli
Copy link

I am running ubuntu 14.04, and I have a couple errors.

when running qmake-qt4 qgroundcontrol.pro I notice this:

WARNING: permFolders.path is not defined: install target not created
WARNING: permFiles.path is not defined: install target not created

which seems odd.
When I run make, I get this error:

WaypointGroupNode.cc:(.text+0x9f6): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
collect2: error: ld returned 1 exit status
make: *** [release/apmplanner2] Error 1

@JackLaLanne
Copy link

Null, for me it works just fine in a fresh 14.04 with the recommended packages installed:
phonon libqt4-dev libqt4-opengl-dev
libphonon-dev libphonon4 phonon-backend-gstreamer
qtcreator libsdl1.2-dev libflite1 flite1-dev build-essential
libopenscenegraph-dev libssl-dev libqt4-opengl-dev libudev-dev
libsndfile1-dev

I suggest checking if you got all of them, pull, clean, rebuild

@NullVoxPopuli
Copy link

good call.

running make clean fixed my problem.

@AndKe
Copy link
Contributor Author

AndKe commented May 30, 2014

ok, this issue is still about the fact that the provided .deb for Ubuntu(64) - does not work on current Ubuntu release.

  • Yes, we can compile just fine - but for the users out there, it would make more sense to provide a package that work with current version of the distro.

@ulwur
Copy link

ulwur commented Jun 19, 2014

Has anyone managed to get APM Planner to run on Ubuntu 14?

I'd rather not run Windows on this old laptop of mine anymore. Love Linux!

@NullVoxPopuli
Copy link

Works on my 14.04 machines. :-)

On Thu, Jun 19, 2014 at 1:17 PM, ulwur notifications@github.com wrote:

Has anyone managed to get APM Planner to run on Ubuntu 14?

I'd rather not run Windows on this old laptop of mine anymore. Love Linux!


Reply to this email directly or view it on GitHub
#317 (comment)
.

@JimKuhn
Copy link
Contributor

JimKuhn commented Jun 19, 2014

That's all I run it on, though I do build from source.

(Ah, I see this is more about the .deb)

On Thu, Jun 19, 2014 at 1:17 PM, ulwur notifications@github.com wrote:

Has anyone managed to get APM Planner to run on Ubuntu 14?

I'd rather not run Windows on this old laptop of mine anymore. Love Linux!


Reply to this email directly or view it on GitHub
#317 (comment)
.

@NullVoxPopuli
Copy link

I build from source as well. If you are having issues, be sure to follow
the readme for what dependencies to install :-)

On Thu, Jun 19, 2014 at 1:18 PM, Jim Kuhn notifications@github.com wrote:

That's all I run it on, though I do build from source.

On Thu, Jun 19, 2014 at 1:17 PM, ulwur notifications@github.com wrote:

Has anyone managed to get APM Planner to run on Ubuntu 14?

I'd rather not run Windows on this old laptop of mine anymore. Love
Linux!


Reply to this email directly or view it on GitHub
<
https://github.com/diydrones/apm_planner/issues/317#issuecomment-46589695>

.


Reply to this email directly or view it on GitHub
#317 (comment)
.

@ulwur
Copy link

ulwur commented Jun 19, 2014

So the .deb's are a waste of time then, why not put a notice on the download page not to bother downloading..

@NullVoxPopuli
Copy link

idk. I would if I had access to that.

On Thu, Jun 19, 2014 at 1:20 PM, ulwur notifications@github.com wrote:

So the .deb's are a waste of time then, why not put a notice on the
download page not to bother downloading..


Reply to this email directly or view it on GitHub
#317 (comment)
.

@stephendade
Copy link
Contributor

As the others have said, APM Planner works fine on Ubuntu 14.04 when built from source. The current set of binaries are for Ubuntu 13, as that was the current version of Ubuntu at the time it was set up. Ubuntu 14 binaries will be added to the build server in due course.

In the meantime, I think this issue should be closed.

@keredson
Copy link

I disagree. The issue should be closed after a working deb for 14.04 has been released, not before.

@NullVoxPopuli
Copy link

If making updated debs is part of their standard release process, thure is no sense to have this open. Issues are kept open when there is a confirmed problem that otherwise wouldn't get taken care of.

@billbonney
Copy link
Member

We will keep this open until we have 14.04LTS builds. Hopefully we will have it added to the auto builds soon.

@billbonney
Copy link
Member

There is a a daily 64 bit build here http://firmware.diydrones.com/Tools/APMPlanner/daily/2014-06-20/

32 bit on it's way

@malcom2073
Copy link
Contributor

Both 32bit and 64bit are here, and will be available for the next stable release as well: http://firmware.diydrones.com/Tools/APMPlanner/daily/2014-06-23/

I'm closing this issue, as the solution is to have two builds, one for Ubuntu 14.04, and one for Ubuntu 13.04

We will at some point soon stop supporting Ubuntu 13.04, but for now it's easy enough to keep the build system running it.

@AndyLeeRobinson
Copy link

Guys, not everyone uses Ubuntu!
I'm trying to get it to build on Fedora FC20, and pulling hair out as there's precious little info out there. Package names are different - for example I discovered libudev is found in systemd-devel ... wtf?
If all the required packages can be found in Fedora namespace and installed, then I guess it should work, but got as far as this:

$ qmake-qt4 qgroundcontrol.pro
Project MESSAGE: Qt version 4.8.6
Project MESSAGE: Linux build x86
Project MESSAGE: Release flavor
Project MESSAGE: BASEDIR /home/andy/workspace/apm_planner DESTDIR /home/andy/workspace/apm_planner/release TARGET apmplanner2
Project MESSAGE: Skipping support for QUpgrade
Project MESSAGE: Skipping support for OpenSceneGraph
Project MESSAGE: Skipping support for Google Earth
Project MESSAGE: Skipping support for Protocol Buffers
Project MESSAGE: Skipping support for libfreenect
Project MESSAGE: Adding ALGLIB /home/andy/workspace/apm_planner/libs/alglib
Project MESSAGE: Skipping support for XBee
Project MESSAGE: Skipping support for Opal-RT
WARNING: permFolders.path is not defined: install target not created
WARNING: permFiles.path is not defined: install target not created

Needless to say, to get it to run under Fedora requires a huge amount of legwork that could be avoided with a few lines of help.
Could someone put together a simple howto or give me some pointers to put one together?
I'd like to be able to contribute, but there's quite a steep learning curve involved...

@malcom2073
Copy link
Contributor

@AndyLeeRobinson If you want to open a new issue ticket for this, maybe someone can help contribute build steps for Fedora. Otherwise, everything looks fine for that build, what happens when you run make?

@AndyLeeRobinson
Copy link

Thanks - well, I found and installed OpenSceneGraph and OpenSceneGraph-qt, reran
qmake-qt4 qgroundcontrol.pro
and these lines changed...
Project MESSAGE: Including support for Linux OpenSceneGraph Qt
Project MESSAGE: Including support for OpenSceneGraph

Then I ran make, and after a few thousand lines of activity, it aborted with this error:
src/audio/AlsaAudio.h:42:21: fatal error: sndfile.h: No such file or directory

More searching....
"yum install libsndfile libsndfile-devel" solved this.

make again...
fatal error: QtWebKit/QWebView
More searching...
yum install qtwebkit-devel
make again...

Finished compiling, but can't link:
/usr/bin/ld: cannot find -lSDLmain
collect2: error: ld returned 1 exit status

More searching...
yum install SDL-static SDL-devel
make
...
Copying files
Yayy!
$ cd release
$ ./apmplanner2

and it starts up!
Gives a dialog:
"The current user does not have the correct permissions to access serial devices. Use "sudo adduser dialout" and then log out and in again"
That is ubuntu specific!

Redhat version:
sudo usermod -a -G dialout

I won't be able to test until pixhawk machine arrives next week.

So, after all that hassle there's clearly a need to get Fedora prerequisites together.
I'll make a list of what packages I installed, and hopefully weed out anything that was unnecessary.

@billbonney
Copy link
Member

If you figure out the install deps for fedora you can create a PR on README.md

see https://github.com/diydrones/apm_planner/blob/master/CONTRIBUTING.md

this isn't a discussion forum, please can you post further forum topics here http://ardupilot.com/forum/viewforum.php?f=82 Thx 👍

@AndyLeeRobinson
Copy link

Acknowledged, thanks.

@gmorph
Copy link

gmorph commented Feb 16, 2015

The two warnings have now been fixed by this PR
https://github.com/stephendade/apm_planner/commit/930d08a5719c566c73565634aba9a70172227a8a

@AndKe
Copy link
Contributor Author

AndKe commented Nov 29, 2016

Same issue observed today on an freshly upgraded Ubuntu 16.04 (LTS)
the latest .deb 64 bit says:

apmplanner2 depends on libopenscenegraph80; however: Package libopenscenegraph80 is not installed.
The user already got libopenscenegraph99 and libopenscenegraph-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests