Hi,
I can't seem to compile the package on my machine. I've installed libgtk-3-dev which seems mandatory (although I can't be sure), and i get the following make error:
In file included from /usr/local/include/gtkdatabox.h:24:0, from xoscope_gtk.c:17: /usr/local/include/gtkdatabox_graph.h:95:10: error: unknown type name ‘GdkRGBA’ GdkRGBA * color);
Any clues? Also, I'm in the dark on which to --with-alsa or other flag in ./configure I get to include ALSA drivers in the compilation procedure.
Will be happy to provide Makefile or other info if needed.
Thanks,
Rein
Oh, perhaps for some basic info:
Last edit: Rein 2015-10-30
I will look into this issue as soon as I'm back in my office.
In the mean time: please post the output from ./configure.
Gerhard
For optimal error reproduction, I've included a Dockerfile. Run in splendid isolation, this should provide exactly the missing/wrong build environment components. Could be cool to have this running from docker anyway, if you ask me.
Here's what ./configure says:
Last edit: Rein 2015-11-01
Should you be unfamiliar with Docker, here are the build commands:
Download de Dockerfile to a folder and in that folder run:
The first commands builds the image, the second runs a container off the image and enters into a bash shell.
So far so good.
Then you can uncomment the last # RUN make && make install line in the Dockerfile, issue the docker build command again to see what happens after the config...
unknown type name ‘GdkRGBA’
Xoscope uses GTK+ 2 (Version 2.18 or above) while it seems you use GTK+ 3. Could you try to link against GTK+2?
Also, I'm in the dark on which to --with-alsa or other flag in ./configure I get to include ALSA drivers in the compilation procedure.
You dont need any "--with" clouse. Configure check if the Comedi and/or Alsa libraries are installed. You can check in the ouput of ./configure:
checking for comediopen in -lcomedi... no
checking for sndpcmhwparams in -lasound... no
Install the libraries (together with the dev-packages) and rerun ./configure.
Please let me know if this helps.
The point is that gtkdatabox doesn't compile without GTK+ 3 and xoscope doesn't compile with it, as far as I can see. What shell commands in the Dockerfile I supplied earlier should be changed?
What version of gtkdatabox do you use?
The latest version from the sourceforge is 0.9.2.0 and this one definitely requires GTK+2.
BTW: is the no gtkdatabox (and -dev) package available for your system?
Gerhard
Try to compile with the gtkdatabox from xoscope's sourceforge repository.
I've had trouble in the past integrating changes to gtkdatabox into their
upstream code base (which is why we've got a custom gtkdatabox repository
in our git tree).
On Nov 11, 2015 11:06 AM, "Gerhard Schiller" gerharde54@users.sf.net
wrote:
Related
Bugs: #18
Sorry I've been very busy these days, I'll give it another go tonight!
Op wo 11 nov. 2015 22:01 schreef Brent Baccala baccala@users.sf.net:
Related
Bugs: #18
I've been at it again, but I'm getting no joy. Here's what I changed my build script looks like:
But my script doesn't make it past the RUN ./configure step. Message:
This can be no other message then that GTK 3 is required. The same version is in the xoscope repository. It demands GTK 3 and it can ONLY be fixed as follows by replacing the line :
With
So there is no question that gtkdatabox depends on GTK 3. With GTK 3 installed, I can't get xoscope to compile. So can you help me with the build steps, please? What is the exact install shell script?
Thanks!
As this has been left hanging, is there a workaround? I have the same problem.
Graham - thank you for pinging on this a bit.
I might have figured it out. The docker script is pulling from the
'master' branch of the gtkdatabox git repository, which contains the
unfinished GTK3 port. Pull from the the 'GTK2' branch instead, changing
this:
RUN git clone git://git.code.sf.net/p/gtkdatabox/git gtkdatabox
to this:
RUN git clone -b GTK2 git://git.code.sf.net/p/gtkdatabox/git gtkdatabox
...or use the latest released version of gtkdatabox.
I'm now officially on the gtkdatabox development team. Believe me, we
don't have a GTK3 port yet!
Alright thanks, that explains a lot! I'll try and see if I can dockerize
this now. You may want to consider changing the default git branch on the
sf repo, though...
All the best,
Rein
Op wo 21 dec. 2016 05:55 schreef Brent Baccala baccala@users.sf.net:
Related
Bugs: #18
Thanks, Brent. That worked with the 'release' version in the Linux Mint 18 repo called libgtkdataboxmm 0.9.4-3build1.