openambitproject / openambit

openambit
280 stars 82 forks source link

Hard (impossible?) to Install on Ubuntu 12.04 #32

Closed jonathanbell closed 9 years ago

jonathanbell commented 10 years ago

Thought that I was getting really close to running open ambit on Ubuntu 12.04. Now it looks like all I need is QJSON 0.8.0:

jonathan@Jimmy:~/openambit$ sudo ./install.sh ------building libambit------ -- Configuring done -- Generating done -- Build files have been written to: /home/jonathan/openambit/libambit-build [100%] Built target ambit ./build.sh: 13: [: 1: unexpected operator ------building openambit------ -- Found libambit: /usr/local/include, /usr/local/lib/libambit.so CMake Error at CMakeLists.txt:15 (find_package): Could not find a configuration file for package "QJSON" that is compatible with requested version "0.8.0".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/qjson/qjson-config.cmake, version: 0.7.1

-- Configuring incomplete, errors occurred! make: *\ No targets specified and no makefile found. Stop. ./build.sh: 24: [: 1: unexpected operator jonathan@Jimmy:~/openambit$

Any way around this? I can only find packages for libqjson 0.7.1-6 for my version of Ubuntu. I've spent a good hour getting other dependencies in order, like QT4. Is QJSON 0.8.0 required?

battila commented 10 years ago

Hey Jonathan,

I found this on the http://sourceforge.net/projects/openambit/:

"For *buntu users: sudo apt-add-repository ppa:openambit/ppa sudo apt-get update sudo apt-get install openambit"

I don1t know if this pppa repo is still working or not, but you can give a try.

Best regards, Attila

On Wed, Mar 19, 2014 at 6:48 AM, Jonathan Bell notifications@github.comwrote:

Thought that I was getting really close to running open ambit on Ubuntu 12.04. Now it looks like all I need is QJSON 0.8.0:

jonathan@Jimmy:~/openambit$ sudo ./install.sh ------building libambit------ -- Configuring done -- Generating done -- Build files have been written to: /home/jonathan/openambit/libambit-build [100%] Built target ambit ./build.sh: 13: [: 1: unexpected operator ------building openambit------ -- Found libambit: /usr/local/include, /usr/local/lib/libambit.so CMake Error at CMakeLists.txt:15 (find_package): Could not find a configuration file for package "QJSON" that is compatible with requested version "0.8.0".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/qjson/qjson-config.cmake, version: 0.7.1

-- Configuring incomplete, errors occurred! make: *\ No targets specified and no makefile found. Stop. ./build.sh: 24: [: 1: unexpected operator jonathan@Jimmy:~/openambit$

Any way around this? I can only find packages for libqjson 0.7.1-6 for my version of Ubuntu. I've spent a good hour getting other dependencies in order, like QT4.

Reply to this email directly or view it on GitHubhttps://github.com/openambitproject/openambit/issues/32 .

mbernasocchi commented 10 years ago

Hi guys, @battila we are moving from source forge to github, the ppa should still work. @jonathanbell probably you have to build your own qjson https://github.com/flavio/qjson

battila commented 10 years ago

Hey Marco,

I noticed that;) I tried to use the ppa on linux mint, but it was not working here. If you need help to create packages for every kind of linux, then I can help.

Best regards,

On Wed, Mar 19, 2014 at 10:40 AM, Marco Bernasocchi < notifications@github.com> wrote:

Hi guys, @battila https://github.com/battila we are moving from source forge to github, the ppa should still work. @jonathanbell https://github.com/jonathanbell probably you have to build your own qjson https://github.com/flavio/qjson

Reply to this email directly or view it on GitHubhttps://github.com/openambitproject/openambit/issues/32#issuecomment-38032170 .

battila commented 10 years ago

And I have not found this info on github. That is the reason I mentioned the sourcefourge.

Best regards, Attila

On Wed, Mar 19, 2014 at 11:05 AM, Attila Bárdi attila.bardi@gmail.comwrote:

Hey Marco,

I noticed that;) I tried to use the ppa on linux mint, but it was not working here. If you need help to create packages for every kind of linux, then I can help.

Best regards,

On Wed, Mar 19, 2014 at 10:40 AM, Marco Bernasocchi < notifications@github.com> wrote:

Hi guys, @battila https://github.com/battila we are moving from source forge to github, the ppa should still work. @jonathanbell https://github.com/jonathanbell probably you have to build your own qjson https://github.com/flavio/qjson

Reply to this email directly or view it on GitHubhttps://github.com/openambitproject/openambit/issues/32#issuecomment-38032170 .

mbernasocchi commented 10 years ago

And I have not found this info on github. That is the reason I mentioned the sourcefourge.

added to the wiki thanks

mbernasocchi commented 10 years ago

If you need help to create packages for every kind of linux, then I can help.

yes please, anything you can I assigned you #33 thanks a lot

battila commented 10 years ago

Ok. I'm on it.

On Wed, Mar 19, 2014 at 11:39 AM, Marco Bernasocchi < notifications@github.com> wrote:

If you need help to create packages for every kind of linux, then I can help.

yes please, anything you can I assigned you #33https://github.com/openambitproject/openambit/issues/33 thanks a lot

Reply to this email directly or view it on GitHubhttps://github.com/openambitproject/openambit/issues/32#issuecomment-38036775 .

jonathanbell commented 10 years ago

Hi all - thanks for the quick response! :)

I found this on the http://sourceforge.net/projects/openambit/:

"For *buntu users: sudo apt-add-repository ppa:openambit/ppa sudo apt-get update sudo apt-get install openambit"

@battila + @mbernasocchi, I tried this (above) and had the same experience as user "uhuuu" commented on the Sourceforge page:

On Ubuntu 13:10 itworks, great! But still work to be done .. differences on .log files compared with the same from moveslink2! On Ubuntu 12.04 it could not be installed:

$ sudo apt-add-repository ppa:openambit/ppa $ sudo apt-get update $ sudo apt-get install openambit E: Unable to locate package openambit I try to compile the package myself, but there are incompatibilties with QJson installed on 12.04: I tried to install backport of libqjson-dev for Ubuntu 12.04 but this is not available: $ sudo apt-get install libqjson-dev/precise-backports E: Release 'precise-backports' for 'libqjson-dev' was not found

I don't know if supporting openambit on Ubuntu 12.04 Long Term Service for average users (ppa install) is a feasible request, as I haven't had much luck with the dependencies but @mbernasocchi, I will try building my own qjson and report back.

jonathanbell commented 10 years ago

I installed the qjson .deb from:

and it runs! Still, would be nice if the process was easier for Ubuntu 12.04 users.

If you are no longer using Sourceforge, suggest changing the link to "file a bug" in the beta check at startup and the sourceforge link in the about openambit window. Also, may I humbly suggest displaying the most recent moves at the top of the list in the left side of the main window? Or a user option to switch the order?

mbernasocchi commented 10 years ago

@jonathanbell coul your add your ideas to #19? thanks

jonathanbell commented 10 years ago

coul your add your ideas to #19?

Done. :) Thanks for the great software! I'm just trying it out now. Should I add the edits to the links in a new issue for you? Or, is that already noted? Again, thanks!

centic9 commented 10 years ago

FYI, I have adjusted the package from https://launchpad.net/~openambit/+archive/ppa to use better dependencies so the package can also be built on other versions of Debian/Ubuntu, binaries for precise are availble from https://launchpad.net/~dominik-stadler/+archive/ppa/

See below for the actual changes, by relying on misc:Depends et.al. for the dev-dependencies we do not depend on libudev1 which is still libudev0 in older versions of Ubuntu/Debian.

libambit:

diff --git a/debian/control b/debian/control
index c58ec14..7e65aed 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Homepage: https://sourceforge.net/projects/openambit/
 Package: libambit-dev
 Section: libdevel
 Architecture: any
-Depends: libambit0 (= ${binary:Version})
+Depends: libambit0 (= ${binary:Version}), ${misc:Depends}
 Description: Communication library for Suunto Ambit series 
  Libambit is the driver library to communicate with the Suunto Ambit series
  of sport watches. This is the -dev version of the package container
@@ -20,7 +20,7 @@ Description: Communication library for Suunto Ambit series
 Package: libambit0
 Section: libs
 Architecture: any
-Depends: libudev1, libusb-1.0-0, ${shlibs:Depends}, ${misc:Pre-Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Pre-Depends}, ${misc:Depends}
 Description: Communication library for Suunto Ambit series
  Libambit is the driver library to communicate with the Suunto Ambit series
  of sport watches.

openambit:

diff --git a/debian/control b/debian/control
index e3994f6..1665187 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: openambit
 Priority: extra
 Maintainer: Emil Ljungdahl <emil@kratern.se>
 Build-Depends: debhelper (>= 9), cmake (>= 2.8.5), libudev-dev, libqjson-dev, zlib1g-dev,
- libambit-dev (= 0.2-1), libqt4-dev
+ libambit-dev (>= 0.2), libqt4-dev
 Standards-Version: 3.9.4
 Section: utils
 Homepage: https://sourceforge.net/projects/openambit/
@@ -11,8 +11,7 @@ Homepage: https://sourceforge.net/projects/openambit/

 Package: openambit
 Architecture: any
-Depends: libudev1, libqjson0, zlib1g, libambit0 (= 0.2-1),
- libqt4-core, libqt4-gui, libqt4-network, ${shlibs:Depends}, ${misc:Depends}
+Depends: libqt4-core, libqt4-gui, libqt4-network, ${shlibs:Depends}, ${misc:Depends}
 Description: Synchronize your Suunto Ambit series device
  Openambit is GUI application for synchronizing the Suunto Ambit series
  of devices with your PC and Suuntos cloudservice movescount.com
jonathanbell commented 10 years ago

That's excellent news! I will try installing with the PPAs soon, when I have a moment and report back.

On May 11, 2014, at 11:41, Dominik Stadler notifications@github.com wrote:

FYI, I have adjusted the package from https://launchpad.net/~openambit/+archive/ppa to use better dependencies so the package can also be built on other versions of Debian/Ubuntu, binaries for precise are availble from https://launchpad.net/~dominik-stadler/+archive/ppa/

See below for the actual changes, by relying on misc:Depends et.al. for the dev-dependencies we do not depend on libudev1 which is still libudev0 in older versions of Ubuntu/Debian.

libambit:

diff --git a/debian/control b/debian/control index c58ec14..7e65aed 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Homepage: https://sourceforge.net/projects/openambit/ Package: libambit-dev Section: libdevel Architecture: any -Depends: libambit0 (= ${binary:Version}) +Depends: libambit0 (= ${binary:Version}), ${misc:Depends} Description: Communication library for Suunto Ambit series Libambit is the driver library to communicate with the Suunto Ambit series of sport watches. This is the -dev version of the package container @@ -20,7 +20,7 @@ Description: Communication library for Suunto Ambit series Package: libambit0 Section: libs Architecture: any -Depends: libudev1, libusb-1.0-0, ${shlibs:Depends}, ${misc:Pre-Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Pre-Depends}, ${misc:Depends} Description: Communication library for Suunto Ambit series Libambit is the driver library to communicate with the Suunto Ambit series of sport watches. openambit:

diff --git a/debian/control b/debian/control index e3994f6..1665187 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: openambit Priority: extra Maintainer: Emil Ljungdahl emil@kratern.se Build-Depends: debhelper (>= 9), cmake (>= 2.8.5), libudev-dev, libqjson-dev, zlib1g-dev,

  • libambit-dev (= 0.2-1), libqt4-dev
  • libambit-dev (>= 0.2), libqt4-dev Standards-Version: 3.9.4 Section: utils Homepage: https://sourceforge.net/projects/openambit/ @@ -11,8 +11,7 @@ Homepage: https://sourceforge.net/projects/openambit/

    Package: openambit Architecture: any -Depends: libudev1, libqjson0, zlib1g, libambit0 (= 0.2-1),

  • libqt4-core, libqt4-gui, libqt4-network, ${shlibs:Depends}, ${misc:Depends} +Depends: libqt4-core, libqt4-gui, libqt4-network, ${shlibs:Depends}, ${misc:Depends} Description: Synchronize your Suunto Ambit series device Openambit is GUI application for synchronizing the Suunto Ambit series of devices with your PC and Suuntos cloudservice movescount.com — Reply to this email directly or view it on GitHub.
centic9 commented 10 years ago

FYI, in the meantime building a test-set of binaries for Trusty 14.04 also finished, it can be found at https://launchpad.net/~dominik-stadler/+archive/dsta-trusty-ppa for now, however I could not test them yet as I don't have Trusty installed anywhere (yet).

mbernasocchi commented 10 years ago

i might end up installing thrusty tonite

Marco Bernasocchi (mobile) http://opengis.ch On 12 May 2014 21:11, "Dominik Stadler" notifications@github.com wrote:

FYI, in the meantime building a test-set of binaries for Trusty 14.04 also finished, it can be found at https://launchpad.net/~dominik-stadler/+archive/dsta-trusty-ppahttps://launchpad.net/%7Edominik-stadler/+archive/dsta-trusty-ppafor now, however I could not test them yet as I don't have Trusty installed anywhere (yet).

— Reply to this email directly or view it on GitHubhttps://github.com/openambitproject/openambit/issues/32#issuecomment-42874678 .

bubulle commented 10 years ago

Is there an apt-get'able repository for the source package of the unofficial package built for Ubuntu (sorry, I haven't understood who is currently doing that work)?

My plan is to merge the work done there with the work I did for building OpenAmbit for Debian unstable....which package is currently awaiting for Debian ftpmasters approval before entering Debian unstable.

Once this is done, my plan is to backport the package for Debian stable (wheezy) and upload it to backports.debian.org. That also should help those of you folks who insist on using Ubuntu to get something working on older version of the distro (in the Ubuntu world, old means "over 6 months old, doh).

bubulle commented 10 years ago

OK, I found the information: deb-src http://ppa.launchpad.net/dominik-stadler/dsta-trusty-ppa/ubuntu trusty main

jonathanbell commented 10 years ago

Using ppa:dominik-stadler/ppa openambit installs with apt-get install on precise. : ) Thanks!

mbernasocchi commented 10 years ago

sudo add-apt-repository ppa:dominik-stadler/dsta-trusty-ppa does install in Trusty

ghost commented 10 years ago

After updating libqjson as suggested by @jonathanbell, cmake worked perfectly for openambit-build. Make however, is returning an error:


/home/user/suunto/src/openambit/logstore.cpp: In member function ‘void LogStore::XMLReader::readLogHeader()’: /home/user/suunto/src/openambit/logstore.cpp:568:48: error: ‘ambit_log_header_t’ has no member named ‘cadence_avg’ /home/user/suunto/src/openambit/logstore.cpp:571:48: error: ‘ambit_log_header_t’ has no member named ‘cadence_max’ /home/user/suunto/src/openambit/logstore.cpp:574:48: error: ‘ambit_log_header_t’ has no member named ‘cadence_max_time’ /home/user/suunto/src/openambit/logstore.cpp:692:68: error: ‘ambit_log_header_t’ has no member named ‘cadence_max’ /home/user/suunto/src/openambit/logstore.cpp:694:68: error: ‘ambit_log_header_t’ has no member named ‘cadence_avg’ /home/user/suunto/src/openambit/logstore.cpp:714:44: error: ‘ambit_log_header_t’ has no member named ‘cadence_max_time’ /home/user/suunto/src/openambit/logstore.cpp: In member function ‘bool LogStore::XMLWriter::writeLogEntry()’: /home/user/suunto/src/openambit/logstore.cpp:1355:68: error: ‘ambit_log_header_t’ has no member named ‘cadence_avg’ /home/user/suunto/src/openambit/logstore.cpp:1356:68: error: ‘ambit_log_header_t’ has no member named ‘cadence_max’ /home/user/suunto/src/openambit/logstore.cpp:1357:72: error: ‘ambit_log_header_t’ has no member named ‘cadence_max_time’ make[2]: * [CMakeFiles/openambit.dir/logstore.cpp.o] Error 1 make[1]: * [CMakeFiles/openambit.dir/all] Error 2 make: *\ [all] Error 2

Any ideas?

sruedat commented 10 years ago

Sorry the same for me

paddy-hack commented 10 years ago

Please git pull --rebase. On Debian testing (amd64), I just did

git clone https://github.com/openambitproject/openambit.git
cd openambit
./build.sh

and that worked fine for me. Further checking src/libambit/libambit.h showed that 02d1cc77 adds these member variables.

benedetto commented 10 years ago

@centic9 I have seen that there's already a openambit_0.2-1ubuntu0~ppa4_amd64.deb in your ubuntu12.04 repo but my apt does only install the ...ppa3... version. On inspection of the ...ppa4... package it turned out to have an unsatisfied dependency for libudev1 which is not available, as you state in a comment further above in this thread.

Does the ppa4 package really depend on libudev1 now or is this just a thing that you forgot to change in the package dependency list?

centic9 commented 10 years ago

The ppa4 version is for Ubuntu trusty and there a different version of libudev is used. The packages are identical otherwise. You can also use https://launchpad.net/%7Edominik-stadler/+archive/dsta-precise-ppa to just see versions for precise.

benedetto commented 10 years ago

@centic9 Ah, OK, that explains it. I'm fine with the standard ppa and that there are seemingly newer packages in there, I just feared I had screwed up my apt configuration as I was playing a bit with the repo priorities recently.

svenstorp commented 10 years ago

@centic9 Since you obviously have some deb packaging skills, would you be interested in helping out with managing the "official" packages? Or any other debian / ubuntu users for that matter, all help we can get is very much appreciated!

bubulle commented 10 years ago

Since this discussion started, I included OpenAmbit in Debian unstable, so I wonder if the issue is still worth it. Maybe some Ubuntu 12.04 or Debian "stable" users might want to easily have OpenAmbit but that can indeed be solved if I (as the official Debian package maintainer for openambit in Debian, now, as part of the Debian "pkg-running" team) work on a "backport" of the package. A "backport" is indeed recompiling the package for an older version of Debian. In that case, it would be Debian "wheezy", the stable Debian release. Such package would probably be suitable for Ubuntu 12.04 too

centic9 commented 10 years ago

Yes, I think this one can be closed, there are official Debian packages that will land in Ubuntu at some point. Additionally over time some newer versions may be available via my PPAs for people wanting to use more up-to-date stuff.

I plan to continue to package newer versions for my own usage in my PPA, where others can use them as well easily. Just ping me if you would like to get some fix or version made available.

bubulle commented 9 years ago

Just a small "up" on this issue....which can IMHO be closed, as suggested above

svenstorp commented 9 years ago

Yep, closing. For the latest version (0.3) there are also packages for 12.04 in the official openambit PPA.