← Back to team overview

simple-scan-users team mailing list archive

Re: Compiling simple-scan

 

Will do. Thank you for your help.

Tammo


On Mon, Jul 21, 2014 at 3:56 PM, Robert Ancell <robert.ancell@xxxxxxxxxxxxx>
wrote:

> Hi Tammo,
>
> Please get the logs (either by getting them from
> ~/.cache/simple-scan/simple-scan.log or running with --debug) after
> this occurs and file a bug on https://launchpad.net/simple-scan.
>
> On Mon, Jul 21, 2014 at 5:42 PM, Tammo Heeren <tammo.heeren@xxxxxxxxx>
> wrote:
> > I downloaded the updated version 3.13.4 and recompiled. All looks like
> > working fine.
> > I have some other funny behavior now:
> > If I call simple-scan without sudo it does not recognize my scanner
> (Canon
> > MG7120) and given an error message.
> > If I call sudo simple-scan it gives me a message 'No scanner detected'
> but
> > lets me scan.
> >
> >
> > On Sun, Jul 20, 2014 at 7:53 PM, Tammo Heeren <tammo.heeren@xxxxxxxxx>
> > wrote:
> >>
> >> Vala 0.22.1
> >>
> >> I will try to update to 0.24.0 and recompile.
> >>
> >>
> >> On Sun, Jul 20, 2014 at 6:28 PM, Robert Ancell
> >> <robert.ancell@xxxxxxxxxxxxx> wrote:
> >>>
> >>> No you're doing the right thing. That error report is correct, though
> >>> I haven't seen it before here.
> >>>
> >>> What version of vala is this? I'm using:
> >>> $ vala --version
> >>> Vala 0.24.0
> >>>
> >>> You could try building 3.13.4 (just released) or building from trunk
> >>> (I fixed that function).
> >>>
> >>>
> >>> On Mon, Jul 21, 2014 at 1:02 PM, Tammo Heeren <tammo.heeren@xxxxxxxxx>
> >>> wrote:
> >>> > I updated ubuntu to 14.04. When I now run ./configure I get the
> >>> > following:
> >>> >
> >>> > 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 whether make supports nested variables... (cached) yes
> >>> > checking whether to enable maintainer-specific portions of
> Makefiles...
> >>> > no
> >>> > checking for valac... /usr/bin/valac
> >>> > checking whether /usr/bin/valac is at least version 0.22.0... 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 dependency style of gcc... gcc3
> >>> > checking whether gcc and cc understand -c and -o together... yes
> >>> > checking for pkg-config... /usr/bin/pkg-config
> >>> > checking pkg-config is at least version 0.16... yes
> >>> > checking for glib-compile-resources...
> /usr/bin/glib-compile-resources
> >>> > checking for SIMPLE_SCAN... yes
> >>> > checking for COLORD... yes
> >>> > 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 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 sane/sane.h usability... yes
> >>> > checking sane/sane.h presence... yes
> >>> > checking for sane/sane.h... yes
> >>> > checking sane/saneopts.h usability... yes
> >>> > checking sane/saneopts.h presence... yes
> >>> > checking for sane/saneopts.h... yes
> >>> > checking whether ln -s works... yes
> >>> > checking for itstool... itstool
> >>> > checking for xmllint... xmllint
> >>> > checking whether NLS is requested... yes
> >>> > checking for intltool >= 0.35.0... 0.50.2 found
> >>> > checking for intltool-update... /usr/bin/intltool-update
> >>> > checking for intltool-merge... /usr/bin/intltool-merge
> >>> > checking for intltool-extract... /usr/bin/intltool-extract
> >>> > checking for xgettext... /usr/bin/xgettext
> >>> > checking for msgmerge... /usr/bin/msgmerge
> >>> > checking for msgfmt... /usr/bin/msgfmt
> >>> > checking for gmsgfmt... /usr/bin/msgfmt
> >>> > checking for perl... /usr/bin/perl
> >>> > checking for perl >= 5.8.1... 5.18.2
> >>> >
> >>> > checking for XML::Parser... ok
> >>> > checking that generated files are newer than configure... done
> >>> > configure: creating ./config.status
> >>> > config.status: creating Makefile
> >>> > config.status: creating data/Makefile
> >>> > config.status: creating data/icons/Makefile
> >>> > config.status: creating help/Makefile
> >>> > config.status: creating po/Makefile.in
> >>> > config.status: creating src/Makefile
> >>> > config.status: executing depfiles commands
> >>> > config.status: executing po/stamp-it commands
> >>> >
> >>> > Looks all reasonable.
> >>> >
> >>> > When I call make I get the following:
> >>> >
> >>> > Making all in src
> >>> > make[1]: Entering directory
> >>> > `/home/theeren/Desktop/simplescan/simple-scan/src'
> >>> >   VALAC    simple_scan_vala.stamp
> >>> > ui.vala:1710.27-1710.30: warning: Argument 1: Cannot pass null to
> >>> > non-null
> >>> > parameter type
> >>> >             set_titlebar (null);
> >>> >                           ^^^^
> >>> > ui.vala:1562.5-1562.39: error: method
> >>> > `UserInterface.window_delete_event_cb'
> >>> > is incompatible with signal `Gtk.Widget.delete_event', expected `bool
> >>> > window_delete_event_cb (Gdk.EventAny)'
> >>> >     private bool window_delete_event_cb (Gtk.Widget widget, Gdk.Event
> >>> > event)
> >>> >     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >>> > Compilation failed: 1 error(s), 1 warning(s)
> >>> >
> >>> > make[1]: *** [simple_scan_vala.stamp] Error 1
> >>> > make[1]: Leaving directory
> >>> > `/home/theeren/Desktop/simplescan/simple-scan/src'
> >>> > make: *** [all-recursive] Error 1
> >>> >
> >>> > Am I doing something wrong?
> >>> >
> >>> > Tammo
> >>> >
> >>> >
> >>> > On Sun, Jul 20, 2014 at 4:20 PM, Robert Ancell
> >>> > <robert.ancell@xxxxxxxxxxxxx>
> >>> > wrote:
> >>> >>
> >>> >> I've now updated the build instructions to refer to valac 0.22 and
> >>> >> updated the build configuration to abort if this version is not
> found.
> >>> >>
> >>> >> On Mon, Jul 21, 2014 at 11:07 AM, Tammo Heeren
> >>> >> <tammo.heeren@xxxxxxxxx>
> >>> >> wrote:
> >>> >> > I was following the instruction in the readme file which state:
> >>> >> >
> >>> >> > sudo apt-get install valac-0.16 vala-0.16
> >>> >> > sudo update-alternatives --config valac # select vala-0.16
> >>> >> >
> >>> >> > Following is the output of ./configure. There is a warning which I
> >>> >> > missed.
> >>> >> >
> >>> >> > ./configure
> >>> >> > 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 whether make supports nested variables... (cached) yes
> >>> >> > checking whether to enable maintainer-specific portions of
> >>> >> > Makefiles...
> >>> >> > no
> >>> >> > checking for valac... /usr/bin/valac
> >>> >> > checking whether /usr/bin/valac is at least version 0.22.0... no
> >>> >> > configure: WARNING: no proper vala compiler found
> >>> >> > configure: WARNING: you will not be able to compile vala source
> >>> >> > files
> >>> >> > 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 dependency style of gcc... gcc3
> >>> >> > checking whether gcc and cc understand -c and -o together... yes
> >>> >> > checking for pkg-config... /usr/bin/pkg-config
> >>> >> > checking pkg-config is at least version 0.16... yes
> >>> >> > checking for glib-compile-resources...
> >>> >> > /usr/bin/glib-compile-resources
> >>> >> > checking for SIMPLE_SCAN... yes
> >>> >> > checking for COLORD... yes
> >>> >> > 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 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 sane/sane.h usability... yes
> >>> >> > checking sane/sane.h presence... yes
> >>> >> > checking for sane/sane.h... yes
> >>> >> > checking sane/saneopts.h usability... yes
> >>> >> > checking sane/saneopts.h presence... yes
> >>> >> > checking for sane/saneopts.h... yes
> >>> >> > checking whether ln -s works... yes
> >>> >> > checking for itstool... itstool
> >>> >> > checking for xmllint... xmllint
> >>> >> > checking whether NLS is requested... yes
> >>> >> > checking for intltool >= 0.35.0... 0.50.2 found
> >>> >> > checking for intltool-update... /usr/bin/intltool-update
> >>> >> > checking for intltool-merge... /usr/bin/intltool-merge
> >>> >> > checking for intltool-extract... /usr/bin/intltool-extract
> >>> >> > checking for xgettext... /usr/bin/xgettext
> >>> >> > checking for msgmerge... /usr/bin/msgmerge
> >>> >> > checking for msgfmt... /usr/bin/msgfmt
> >>> >> > checking for gmsgfmt... /usr/bin/msgfmt
> >>> >> > checking for perl... /usr/bin/perl
> >>> >> > checking for perl >= 5.8.1... 5.14.2
> >>> >> > checking for XML::Parser... ok
> >>> >> > checking that generated files are newer than configure... done
> >>> >> > configure: creating ./config.status
> >>> >> > config.status: creating Makefile
> >>> >> > config.status: creating data/Makefile
> >>> >> > config.status: creating data/icons/Makefile
> >>> >> > config.status: creating help/Makefile
> >>> >> > config.status: creating po/Makefile.in
> >>> >> > config.status: creating src/Makefile
> >>> >> > config.status: executing depfiles commands
> >>> >> > config.status: executing po/stamp-it commands
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > On Sun, Jul 20, 2014 at 3:01 PM, Robert Ancell
> >>> >> > <robert.ancell@xxxxxxxxxxxxx>
> >>> >> > wrote:
> >>> >> >>
> >>> >> >> Also, when running ./configure it should have checked the version
> >>> >> >> of
> >>> >> >> vala you had - did that not happen?
> >>> >> >>
> >>> >> >> On Mon, Jul 21, 2014 at 10:01 AM, Robert Ancell
> >>> >> >> <robert.ancell@xxxxxxxxxxxxx> wrote:
> >>> >> >> > Hi Tammo,
> >>> >> >> >
> >>> >> >> > It appears you have a version of vala < 0.22 (which is when the
> >>> >> >> > --gresources flag was added). Ubuntu 13.04 only has vala 0.20
> so
> >>> >> >> > you
> >>> >> >> > will not be able to compile simple-scan without installing a
> new
> >>> >> >> > version of vala.
> >>> >> >> >
> >>> >> >> > Note that Ubuntu 13.04 is end-of-life; I'd recommending
> upgrading
> >>> >> >> > to
> >>> >> >> > a
> >>> >> >> > supported version (Ubuntu 14.04).
> >>> >> >> >
> >>> >> >> > --Robert
> >>> >> >> >
> >>> >> >> > On Mon, Jul 21, 2014 at 6:50 AM, Tammo Heeren
> >>> >> >> > <tammo.heeren@xxxxxxxxx>
> >>> >> >> > wrote:
> >>> >> >> >> I managed to follow the instructions to simple-scan-3.13.3.
> When
> >>> >> >> >> i
> >>> >> >> >> call
> >>> >> >> >> 'make' I get the following:
> >>> >> >> >>
> >>> >> >> >> theeren@dell:~/Desktop/simplescan/simple-scan$ make
> >>> >> >> >> Making all in src
> >>> >> >> >> make[1]: Entering directory
> >>> >> >> >> `/home/theeren/Desktop/simplescan/simple-scan/src'
> >>> >> >> >>   VALAC    simple_scan_vala.stamp
> >>> >> >> >> Unknown option --gresources=../data/simple-scan.gresource.xml
> >>> >> >> >> Run 'valac --help' to see a full list of available command
> line
> >>> >> >> >> options.
> >>> >> >> >> make[1]: *** [simple_scan_vala.stamp] Error 1
> >>> >> >> >> make[1]: Leaving directory
> >>> >> >> >> `/home/theeren/Desktop/simplescan/simple-scan/src'
> >>> >> >> >> make: *** [all-recursive] Error 1
> >>> >> >> >> theeren@dell:~/Desktop/simplescan/simple-scan$ simple-scan
> >>> >> >> >>
> >>> >> >> >> I am a bit at a loss now. Can somebody provide some guidance
> >>> >> >> >> about
> >>> >> >> >> what
> >>> >> >> >> do
> >>> >> >> >> to? I am on Ubuntu 13.04.
> >>> >> >> >>
> >>> >> >> >> Tammo
> >>> >> >> >>
> >>> >> >> >> --
> >>> >> >> >> Mailing list: https://launchpad.net/~simple-scan-users
> >>> >> >> >> Post to     : simple-scan-users@xxxxxxxxxxxxxxxxxxx
> >>> >> >> >> Unsubscribe : https://launchpad.net/~simple-scan-users
> >>> >> >> >> More help   : https://help.launchpad.net/ListHelp
> >>> >> >> >>
> >>> >> >
> >>> >> >
> >>> >
> >>> >
> >>
> >>
> >
>

References