WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: xoscope  (Read 3928 times)

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
xoscope
« on: March 23, 2013, 03:23:40 PM »
Hi, I'm a bit of a newb at programming/linux and dont really know what to do next, so far I've done:

wget http://sourceforge.net/projects/xoscope/files/xoscope/2.0/xoscope-2.0.tgz
wget http://dl.dropbox.com/u/6907158/gtk_deprecated.patch
tar -xvf xoscope-2.0.tgz
patch -p0 < gtk_deprecated.patch
cd xoscope-2.0/
./configure
make

and get the following on the make:

make  all-recursive
make[1]: Entering directory `/mnt/sda5/home/tc/xoscope-2.0'
Making all in gtkdatabox-0.6.0.0/gtk
make[2]: Entering directory `/mnt/sda5/home/tc/xoscope-2.0/gtkdatabox-0.6.0.0/gtk'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../..   -O2 -Wall -pedantic -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags` -g -O2 -Wall -MT gtkdatabox.o -MD -MP -MF .deps/gtkdatabox.Tpo -c -o gtkdatabox.o gtkdatabox.c
In file included from gtkdatabox.c:20:0:
./gtkdatabox.h:103:50: error: unknown type name 'GtkRuler'
./gtkdatabox.h:104:50: error: unknown type name 'GtkRuler'
./gtkdatabox.h:105:4: error: unknown type name 'GtkRuler'
./gtkdatabox.h:106:4: error: unknown type name 'GtkRuler'
gtkdatabox.c:91:4: error: unknown type name 'GtkRuler'
gtkdatabox.c:92:4: error: unknown type name 'GtkRuler'
gtkdatabox.c:221:42: error: unknown type name 'GtkRuler'
gtkdatabox.c:254:42: error: unknown type name 'GtkRuler'
gtkdatabox.c: In function 'gtk_databox_set_property':
gtkdatabox.c:309:10: warning: implicit declaration of function 'gtk_databox_set_hruler' [-Wimplicit-function-declaration]
gtkdatabox.c:312:10: warning: implicit declaration of function 'gtk_databox_set_vruler' [-Wimplicit-function-declaration]
gtkdatabox.c: At top level:
gtkdatabox.c:353:1: error: unknown type name 'GtkRuler'
gtkdatabox.c:361:1: error: unknown type name 'GtkRuler'
gtkdatabox.c: In function 'gtk_databox_class_init':
gtkdatabox.c:503:47: error: 'GTK_TYPE_RULER' undeclared (first use in this function)
gtkdatabox.c:503:47: note: each undeclared identifier is reported only once for each function it appears in
gtkdatabox.c: In function 'gtk_databox_calculate_hcanvas':
gtkdatabox.c:664:4: warning: passing argument 1 of 'gtk_widget_get_visible' from incompatible pointer type [enabled by default]
/usr/local/include/gtk-2.0/gtk/gtkwidget.h:971:23: note: expected 'struct GtkWidget *' but argument is of type 'struct GtkDatabox *'
gtkdatabox.c: In function 'gtk_databox_calculate_vcanvas':
gtkdatabox.c:701:4: warning: passing argument 1 of 'gtk_widget_get_visible' from incompatible pointer type [enabled by default]
/usr/local/include/gtk-2.0/gtk/gtkwidget.h:971:23: note: expected 'struct GtkWidget *' but argument is of type 'struct GtkDatabox *'
gtkdatabox.c: In function 'gtk_databox_configure':
gtkdatabox.c:747:7: warning: implicit declaration of function 'gdk_drawable_get_size' [-Wimplicit-function-declaration]
gtkdatabox.c: In function 'gtk_databox_expose':
gtkdatabox.c:782:4: warning: implicit declaration of function 'gdk_draw_drawable' [-Wimplicit-function-declaration]
gtkdatabox.c: In function 'gtk_databox_draw':
gtkdatabox.c:945:4: warning: implicit declaration of function 'gdk_draw_rectangle' [-Wimplicit-function-declaration]
gtkdatabox.c: In function 'gtk_databox_draw_selection':
gtkdatabox.c:1153:26: warning: passing argument 1 of 'gtk_widget_get_state' from incompatible pointer type [enabled by default]
/usr/local/include/gtk-2.0/gtk/gtkwidget.h:962:23: note: expected 'struct GtkWidget *' but argument is of type 'struct GtkDatabox *'
gtkdatabox.c: In function 'gtk_databox_hruler_update':
gtkdatabox.c:1195:7: warning: implicit declaration of function 'gtk_ruler_set_range' [-Wimplicit-function-declaration]
gtkdatabox.c:1195:7: warning: implicit declaration of function 'GTK_RULER' [-Wimplicit-function-declaration]
gtkdatabox.c: In function 'gtk_databox_create_box_with_scrollbars_and_rulers':
gtkdatabox.c:1507:7: warning: implicit declaration of function 'gtk_hruler_new' [-Wimplicit-function-declaration]
gtkdatabox.c:1507:13: warning: assignment makes pointer from integer without a cast [enabled by default]
gtkdatabox.c:1515:7: warning: implicit declaration of function 'gtk_vruler_new' [-Wimplicit-function-declaration]
gtkdatabox.c:1515:13: warning: assignment makes pointer from integer without a cast [enabled by default]
make[2]: *** [gtkdatabox.o] Error 1
make[2]: Leaving directory `/mnt/sda5/home/tc/xoscope-2.0/gtkdatabox-0.6.0.0/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sda5/home/tc/xoscope-2.0'
make: *** [all] Error 2

I know enough to know its a code problem but not enough to fix it, any help would be appreciated, I understand that a sound card based oscilloscope program isnt in huge demand (then again the reason i chose TC was so I could use this old laptop as a stand alone oscilloscope!) but I would be very grateful of anyone with the technical prowess required to get this running who could do it and get back to me on exactly how they did it. Thanks in advance.

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: xoscope
« Reply #1 on: March 23, 2013, 03:37:21 PM »
i realise how demanding that sounds of a community that probably couldnt care less about a newby scope but just so you know I havent given up completely and I will post when I know how to fix it and hopefully someday (probably in 2 years or something) this post may be of use to somebody and I can feel like I have contributed in some way. Also if i do get it working I would like to convert it into a .tcz extension and add it to the repo maybe.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: xoscope
« Reply #2 on: March 23, 2013, 03:48:58 PM »
Hi jackarius86

Sorry I can't be of any help except to say that I too would be very interested in using an old laptop/pc as a stand alone scope.
Best of luck.

Paulo.

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: xoscope
« Reply #3 on: March 23, 2013, 03:50:59 PM »
Quick hack:

Delete line 199 of ./xoscope-2.0/gtkdatabox-0.6.0.0/gtk/makefile.in

Code: [Select]
[...]
AM_CFLAGS = \
-O2\
-Wall -pedantic\
-DG_DISABLE_DEPRECATED\
-DGDK_DISABLE_DEPRECATED\
-DGDK_PIXBUF_DISABLE_DEPRECATED\
-DGTK_DISABLE_DEPRECATED\         <==============DELETE THIS
`pkg-config gtk+-2.0 --cflags`
[...]

Configure & make again.

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: xoscope
« Reply #4 on: March 23, 2013, 04:47:25 PM »
you brilliant bloke, it works! Can you tell me; was it easy? how did you find it?

All thats left now is to work out how to get my soundcard working!