subsurface Digest, Vol 7, Issue 10

Diego Mainou Diego.Mainou at alumni.uts.edu.au
Mon Jun 25 19:03:50 PDT 2012


Same issues here with ubuntu 12.04.

No where near the  expertise of the previous poster so would appreciate a
"software store" instalation

Thanks

Diego Mainou



On 26 June 2012 05:00, <subsurface-request at hohndel.org> wrote:

> Send subsurface mailing list submissions to
>        subsurface at hohndel.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
> or, via email, send a message with subject or body 'help' to
>        subsurface-request at hohndel.org
>
> You can reach the person managing the list at
>        subsurface-owner at hohndel.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of subsurface digest..."
>
>
> Today's Topics:
>
>   1. Problems to compile Subsurface under Ubuntu 10.04 LTS
>      (Mekong Leonidas)
>   2. Re: Failed to receive the answer (from Suunto Vyper Air)
>      (Amit Chaudhuri)
>   3. Re: Problems to compile Subsurface under Ubuntu 10.04 LTS
>      (Lubomir I. Ivanov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 25 Jun 2012 14:37:45 +0200
> From: Mekong Leonidas <molon.labe.ch at gmail.com>
> To: libdivecomputer-devel at lists.sourceforge.net,
>        subsurface at hohndel.org
> Subject: Problems to compile Subsurface under Ubuntu 10.04 LTS
> Message-ID:
>        <CAN-b-VDt4TVm5t7KYYkCehLb=JMSBkSR5VTkkW4S7hzTSy1A2g at mail.gmail.com
> >
> Content-Type: text/plain; charset=windows-1252
>
> Hi everyone.
>
> Just a couple words about myself.
> I started to dive when I was 11
> I started to work with computers when I was 12
> I've been using C for more than 15 years in my life....about 15 years ago
> I'm using Linux (unless customer says "no way")
>
> Now...the technical part.
>
> I have the following problems
>
> I'm currently using Ubuntu 10.04 LTS on my main computer
>
> I downloaded libdivecomputer and torvalds-subsurface-058b84c
>
> I managed to resolve all the dependencies, and managed to compile
> libdivecomputer without any errors
>
> Here's what I got
>
> sheitan at sheitan-TSH:/usr/local/lib$ ls -las
> total 1432
>  4 drwxr-xr-x  4 root root    4096 2012-05-13 11:51 .
>  4 drwxr-xr-x 10 root root    4096 2012-04-26 09:38 ..
> 872 -rw-r--r--  1 root root  892588 2012-05-13 11:51 libdivecomputer.a
>  4 -rwxr-xr-x  1 root root     999 2012-05-13 11:51 libdivecomputer.la
>  0 lrwxrwxrwx  1 root root      24 2012-05-13 11:51
> libdivecomputer.so -> libdivecomputer.so.0.0.0
>  0 lrwxrwxrwx  1 root root      24 2012-05-13 11:51
> libdivecomputer.so.0 -> libdivecomputer.so.0.0.0
> 540 -rwxr-xr-x  1 root root  552324 2012-05-13 11:51
> libdivecomputer.so.0.0.0
>  4 drwxr-xr-x  2 root root    4096 2012-05-13 11:51 pkgconfig
>  4 drwxrwsr-x  4 root staff   4096 2010-08-16 11:35 python2.6
>
> So, it seems that libdivecomputer is OK
>
> I tried to compile subsurface....ooppss
>
> First, I had to fix the dependencies...OK
>
> But when I launch the "make" command, here's the result
>
> sheitan at sheitan-TSH:~/Documents/Diving/torvalds-subsurface-058b84c$ make
> gcc -Wall -Wno-pointer-sign -g -I/usr/include/libxml2 -pthread
> -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/directfb
> -I/usr/include/libpng12   -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2 -c profile.c
> In file included from profile.c:12:
> display.h:25: error: expected declaration specifiers or ?...? before
> ?cairo_rectangle_int_t?
> profile.c:1349: error: expected declaration specifiers or ?...? before
> ?cairo_rectangle_int_t?
> profile.c: In function ?plot?:
> profile.c:1370: error: ?drawing_area? undeclared (first use in this
> function)
> profile.c:1370: error: (Each undeclared identifier is reported only once
> profile.c:1370: error: for each function it appears in.)
> make: *** [profile.o] Error 1
>
> In case you wonder, "sudo make" gives the same results...
>
> It seems that the problem is about the function
>
> extern void plot(struct graphics_context *gc, cairo_rectangle_int_t
> *drawing_area, struct dive *dive);
>
> AFAIK, I can only see this function in
>
> display.h:extern void plot(struct graphics_context *gc,
> cairo_rectangle_int_t *drawing_area, struct dive *dive);
>
> and in
>
> sheitan at sheitan-TSH:~/Documents/Diving/torvalds-subsurface-058b84c$
> grep 'plot(' *.c
> gtk-gui.c:              plot(&gc, &drawing_area, dive);
> print.c:        plot(&gc, &drawing_area, dive);
> profile.c:void plot(struct graphics_context *gc, cairo_rectangle_int_t
> *drawing_area, struct dive *dive)
>
> I'm puzzled, besides updating to the latest LTS version of Ubuntu (not
> really practical at this time), is it a problem on my side, or
> something else ?
>
> Thanks in advance, and best regards
>
> Henri
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 25 Jun 2012 19:04:01 +0100
> From: Amit Chaudhuri <amit.k.chaudhuri at gmail.com>
> To: subsurface at hohndel.org
> Subject: Re: Failed to receive the answer (from Suunto Vyper Air)
> Message-ID:
>        <CAH=VbNetD9KJGo0CUgg0_Q=CJQf3Sf1wRZZSF14dAbVh3MO0zQ at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Linus / Jeff,
>
> I have succeeded in doing two things:
>
> 1) reading data form the Vyper Air using subsurface invoked from the
> command line
> 2) reading data from a Gekko - same method
>
> The key to 1) appears to be to tell the Vyper Air it is a D9 before
> re-trying Vyper Air.  If I do this I see diagnostics which (indirectly)
> tell me it's not a D9 and that it "cannot recognise the protocol variant".
> Once that's done and I've said "Vyper Air" through the GUI drop down, I can
> immediately see returning data blobs in the debug output and the progress
> dialog kicks in etc.
>
>
>
> I decided to try this approach after noting that in subsurface source
> (libdivecomputer.c) there is the following:
>
> static parser_status_t create_parser(device_data_t *devdata, parser_t
> **parser)
> {
>    switch (devdata->type) {
>    case DEVICE_TYPE_SUUNTO_SOLUTION:
>        return suunto_solution_parser_create(parser);
>
>    case DEVICE_TYPE_SUUNTO_EON:
>        return suunto_eon_parser_create(parser, 0);
>
>    case DEVICE_TYPE_SUUNTO_VYPER:
>        if (devdata->devinfo.model == 0x01)
>            return suunto_eon_parser_create(parser, 1);
>        return suunto_vyper_parser_create(parser);
>
>    case DEVICE_TYPE_SUUNTO_VYPER2:
>    case DEVICE_TYPE_SUUNTO_D9:
>        return suunto_d9_parser_create(parser, devdata->devinfo.model);
>
>
> I haven't followed the code path to see if I can make sense of the
> behaviour.  And I don't understand why I would see this problem and other
> users do not.  Could it be something to do with being on a 64-bit openSUSE
> machine? Maybe I have older or newer drivers?? I get the impression that
> Linus you've tried this with Vyper AIr and not had the problem I did..
>
> If there is anything further you'd like me to try or any additional info
> which might be of interest..........
>
> Thanks for your help to date; I've achieved my main aim of getting those
> early dives out in electronic format.
>
> Regards,
>
>
> Amit
>
> [Starting to look through last year's Gekko logged dives :-)
>
>
> Gekko PS - for anyone wondering like me how to read from a Gekko which
> doesn't officially support the PC interface, the key is to use the menu
> mode and time buttons to head into memory, pc set.  I was then able to read
> by using the D9 / Vyper [Not Vyper Air] trick above.  Others may not need
> to use the D9 faint....I'd be interested to hear from others who have
> success with Gekko & subsurface.  Happy for emails off forum to avoid
> distraction.  I was less than impressed with the attitude from Suunto when
> I was first looking at this a few weeks back.
>
> Gekko PPS - because there is no formal support for the interface from
> Suunto you might want to wait until it's not your main computer before
> trying this.  I can't guarantee that you won't blow the device up but I can
> predict that Suunto will not be too helpful if you do...
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.hohndel.org/pipermail/subsurface/attachments/20120625/6ba15b0d/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Mon, 25 Jun 2012 21:44:38 +0300
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
> To: Mekong Leonidas <molon.labe.ch at gmail.com>
> Cc: subsurface at hohndel.org,
>        libdivecomputer-devel at lists.sourceforge.net
> Subject: Re: Problems to compile Subsurface under Ubuntu 10.04 LTS
> Message-ID:
>        <CAGDbWi_3AuUkM+s2Us_3OcROamT_-goDO7==VH1w9EzOWnGYHg at mail.gmail.com
> >
> Content-Type: text/plain; charset=windows-1252
>
> On 25 June 2012 15:37, Mekong Leonidas <molon.labe.ch at gmail.com> wrote:
> > In file included from profile.c:12:
> > display.h:25: error: expected declaration specifiers or ?...? before
> > ?cairo_rectangle_int_t?
> >
> > Henri
>
> hello,
> i think the error could be due to your version of cairo not having a
> type definition for the structure cairo_rectangle_int_t in cairo.h.
>
> if you are using 1.10.x and there is the following definition in there:
> typedef struct _cairo_rectangle_int {
>    int x, y;
>    int width, height;
> } cairo_rectangle_int_t;
>
> then perhaps it's something else.
> if you have an older version try updating with:
> sudo apt-get install libcairo2-dev
>
> lubomir
> --
>
>
> ------------------------------
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
>
> End of subsurface Digest, Vol 7, Issue 10
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20120626/77bb5ed5/attachment.html>


More information about the subsurface mailing list