Open milohr opened 10 years ago
It looks like you just gave me the warning... do you have the line for the actual error that occurred? A warning wouldn't stop the build (though, they can surely make it look messy).
here it is the full log:
camilo@ian:~/draw-master$ ./quickbuild.sh
rm: cannot remove ‘./build’: No such file or directory
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Vala: /usr/bin/valac
-- checking for a minimum Vala version of 0.11.3
-- found Vala, version 0.23.1.38-994dd
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for modules 'gtk+-3.0;granite'
-- found gtk+-3.0, version 3.11.5
-- found granite, version 0.3.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/camilo/draw-master/build
[ 5%] Generating main.c, Core/Canvas.c, Core/Image.c, Core/Palette.c, Views/Welcome.c, Views/NewImage.c, Views/Window.c, Views/WindowToolbar.c, Views/ActionToolbar.c, Views/StatusToolbar.c, Views/Workspace.c, Views/ColorTools.c, Views/ToolsPane.c, Views/Tools/Tool.c, Views/Tools/Brush.c, Widgets/Tools.c, Widgets/Toolbar.c, Widgets/ColorIcon.c
/home/camilo/draw-master/src/Core/Image.vala:157.5-157.13: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Core/Image.vala:159.5-159.13: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:52.51-52.59: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:57.52-57.60: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Core/Image.vala:289.5-289.13: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Core/Image.vala:291.5-291.13: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:61.52-61.60: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:65.54-65.62: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:69.53-69.61: warning: Gtk.Stock has been deprecated since 3.10
/home/camilo/draw-master/src/Views/WindowToolbar.vala:102.25-102.58: warning: Granite.Widgets.ToolButtonWithMenu has been deprecated since 0.3. Use Gtk.MenuButton
/home/camilo/draw-master/src/Widgets/Toolbar.vala:57.4-57.45: error: Assignment: Cannot convert from int' to
Gtk.IconSize'
icon_size = (size != null) ? (!) size : 16;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/camilo/draw-master/src/Core/Palette.vala:133.19-133.40: warning: unhandled error GLib.IOError' while ((line = stream.read_line(null)) != null) ^^^^^^^^^^^^^^^^^^^^^^ /home/camilo/draw-master/src/Core/Palette.vala:114.4-114.15: warning:
null' incompatible with return type Gee.ArrayList<Granite.Drawing.Color>
return null;
^^^^^^^^^^^^
/home/camilo/draw-master/src/Core/Palette.vala:86.44-86.132: warning: unhandled error GLib.Error' var defaultStream = new DataInputStream(Draw.Window.Resources.open_stream("/draw/default_palette", GLib.ResourceLookupFlags.NONE)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/camilo/draw-master/src/Views/Tools/Tool.vala:36.40-36.114: warning: unhandled error
GLib.Error'
Pixbuf = new Gdk.Pixbuf.from_stream(Draw.Window.Resources.open_stream(imagePath, GLib.ResourceLookupFlags.NONE));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/camilo/draw-master/src/Views/Tools/Tool.vala:36.13-36.115: warning: unhandled error GLib.Error' Pixbuf = new Gdk.Pixbuf.from_stream(Draw.Window.Resources.open_stream(imagePath, GLib.ResourceLookupFlags.NONE)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/camilo/draw-master/src/Views/Window.vala:126.42-126.115: warning: unhandled error
GLib.Error'
var stream = new GLib.DataInputStream(Draw.Window.Resources.open_stream(resource, GLib.ResourceLookupFlags.NONE));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/camilo/draw-master/src/Views/Window.vala:129.19-129.46: warning: unhandled error `GLib.IOError'
while ((line = stream.read_line(null, null)) != null)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 17 warning(s)
make[2]: * [src/main.c] Error 1
make[1]: * [src/CMakeFiles/Draw.dir/all] Error 2
make: *\ [all] Error 2
mv: cannot stat ‘./src/Draw’: No such file or directory
./quickbuild.sh: line 22: ./draw: cannot execute binary file
Hmm, very strange... I guess it must have been a changed property for Gtk. The error is:
/home/camilo/draw-master/src/Widgets/Toolbar.vala:57.4-57.45: error: Assignment: Cannot convert from int' toGtk.IconSize' icon_size = (size != null) ? (!) size : 16;
icon_size used to accept an integer before, but apparently only takes a Gtk.IconSize now. I don't have a development setup to test it, but you can try to make this change...
File: /srv/Widgets/Toolbar.vala Line: 57 (icon_size = (size != null) ? (!) size : 16;) Change to: icon_size = Gtk.IconSize.LARGE_TOOLBAR;
Here's the documentation on IconSize... you can try different sizes if LARGE_TOOLBAR is too large: http://www.valadoc.org/#!api=gtk+-3.0/Gtk.IconSize
I finally installed but now it has a box around it. any clue how to solve this?
i get this error while running make: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/camilo/draw-master/src/Views/Window.vala:129.19-129.46: warning: unhandled error `GLib.IOError' while ((line = stream.read_line(null, null)) != null) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Compilation failed: 1 error(s), 17 warning(s) make[2]: * [src/main.c] Error 1 make[1]: * [src/CMakeFiles/Draw.dir/all] Error 2 make: *\ [all] Error 2