Menu

#18 Unable to compile on Ubuntu 15.04 amd64

open
nobody
None
5
2016-12-18
2015-10-30
Rein
No

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

Related

Bugs: #18

Discussion

  • Rein

    Rein - 2015-10-30

    Oh, perhaps for some basic info:

    make[1]: Entering directory '/home/rein/scripts/xoscope-2.1'
    gcc -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2  -pthread -I/usr/local/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -export-dynamic -DPACKAGE_LIBEXEC_DIR='"/usr/local/bin"'   -g -O2 -Wall -MT xoscope_gtk.o -MD -MP -MF .deps/xoscope_gtk.Tpo -c -o xoscope_gtk.o xoscope_gtk.c
    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);
    
     

    Last edit: Rein 2015-10-30
  • Gerhard Schiller

    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

     
  • Rein

    Rein - 2015-11-01

    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:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GTK... yes
    checking for GTKDATABOX... yes
    checking for FFTW3... yes
    checking for X... libraries , headers 
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for perl... /usr/bin/perl
    checking for esd_monitor_stream in -lesd... no
    checking for sin in -lm... yes
    checking for comedi_open in -lcomedi... no
    checking for fftw_execute in -lfftw3... yes
    checking for snd_pcm_hw_params in -lasound... no
    checking for gtk_databox_grid_set_line_style in -lgtkdatabox... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for ANSI C header files... (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking termio.h usability... yes
    checking termio.h presence... yes
    checking for termio.h... yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking whether gcc needs -traditional... no
    checking whether sys/types.h defines makedev... yes
    checking return type of signal handlers... void
    checking for getcwd... yes
    checking for putenv... yes
    checking for select... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating xoscope.spec
    config.status: creating config.h
    config.status: executing depfiles commands
    
            ALSA module:                    no
            ESD module:                     no
            COMEDI module:                  no
    
     ---> 3547c06da320
    Removing intermediate container 31ddf21d9902
    Successfully built 3547c06da320
    
     

    Last edit: Rein 2015-11-01
  • Rein

    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:

    sudo docker build -t xoscope-image .
    sudo docker run -it --rm --name xoscope xoscope-image bash
    

    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...

     
  • Gerhard Schiller

    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.

     
  • Rein

    Rein - 2015-11-10

    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?

     
  • Gerhard Schiller

    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

     
    • Brent Baccala

      Brent Baccala - 2015-11-11

      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).

      agape
      brent
      

      On Nov 11, 2015 11:06 AM, "Gerhard Schiller" gerharde54@users.sf.net
      wrote:

      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

      Status: open
      Group:
      Created: Fri Oct 30, 2015 03:27 PM UTC by Rein
      Last Updated: Tue Nov 10, 2015 05:35 PM UTC
      Owner: nobody

      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


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/xoscope/bugs/18/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #18

      • Rein

        Rein - 2015-11-30

        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:

        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).

        agape
        brent

        On Nov 11, 2015 11:06 AM, "Gerhard Schiller" gerharde54@users.sf.net
        wrote:

        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

        Status: open
        Group:
        Created: Fri Oct 30, 2015 03:27 PM UTC by Rein
        Last Updated: Tue Nov 10, 2015 05:35 PM UTC
        Owner: nobody

        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


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/xoscope/bugs/18/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        Status: open
        Group:
        Created: Fri Oct 30, 2015 03:27 PM UTC by Rein

        Last Updated: Wed Nov 11, 2015 08:06 PM UTC
        Owner: nobody

        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


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/xoscope/bugs/18/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #18

  • Rein

    Rein - 2015-11-30

    I've been at it again, but I'm getting no joy. Here's what I changed my build script looks like:

    FROM ubuntu:trusty
    RUN apt-get update 
    RUN apt-get install -y git build-essential automake libtool
    RUN apt-get install -y libgtk2.0-dev
    
    RUN git clone git://git.code.sf.net/p/gtkdatabox/git gtkdatabox
    # RUN git clone git://git.code.sf.net/p/xoscope/gtkdatabox
    RUN git clone git://git.code.sf.net/p/xoscope/code
    
    WORKDIR /gtkdatabox
    RUN scripts/myAutoreconf.sh
    RUN ./configure
    RUN make && make install
    RUN ldconfig
    

    But my script doesn't make it past the RUN ./configure step. Message:

    ./configure: line 12118: syntax error near unexpected token `gtk_required_version'
    ./configure: line 12118: `AM_PATH_GTK_3_0(gtk_required_version)'
    

    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 :

    RUN apt-get install -y libgtk2.0-dev
    

    With

    RUN apt-get install -y libgtk-3-dev
    

    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!

     
  • Graham Horner

    Graham Horner - 2016-12-18

    As this has been left hanging, is there a workaround? I have the same problem.

     
    • Brent Baccala

      Brent Baccala - 2016-12-21

      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!

      agape
      brent
      
       
      • Rein

        Rein - 2016-12-21

        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:

        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!

        agape
        brent


        Status: open
        Group:
        Created: Fri Oct 30, 2015 03:27 PM UTC by Rein

        Last Updated: Sun Dec 18, 2016 04:27 PM UTC
        Owner: nobody

        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


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/xoscope/bugs/18/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #18

      • Graham Horner

        Graham Horner - 2016-12-21

        Thanks, Brent. That worked with the 'release' version in the Linux Mint 18 repo called libgtkdataboxmm 0.9.4-3build1.

         

Log in to post a comment.