davvil / pdfpc

A presenter console with multi-monitor support for PDF files.
http://davvil.github.com/pdfpc/
GNU General Public License v2.0
210 stars 20 forks source link

Compilation ends with errors #81

Open pichi opened 10 years ago

pichi commented 10 years ago

$ make [ 2%] Generating classes/cache_status.c, classes/view/base.c, classes/view/behaviour/pdf_link.c, classes/view/behaviour/base.c, classes/view/pdf.c, classes/view/default.c, classes/metadata/base.c, classes/metadata/pdf.c, classes/metadata/slides_notes.c, classes/mutex_locks.c, classes/window/fullscreen.c, classes/window/overview.c, classes/window/presentation.c, classes/window/presenter.c, classes/scaler.c, classes/configFileReader.c, classes/timer_label.c, classes/renderer/cache/option_factory.c, classes/renderer/cache/base.c, classes/renderer/cache/png/item.c, classes/renderer/cache/png/engine.c, classes/renderer/cache/simple/engine.c, classes/renderer/base.c, classes/renderer/pdf.c, classes/presentation_controller.c, classes/options.c, classes/action/action_mapping.c, classes/action/link_action.c, classes/action/movie.c, interfaces/view/prerendering.c, interfaces/view/behaviour/decoratable.c, interfaces/controllable.c, interfaces/renderer/caching.c, paths.c, pdfpc.c, presenter.vapi, presenter.h, presenter_internal.h gtk+-2.0.vapi:5926.40-5926.42: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/action/movie.vala:236.46-236.56: warning: Gst.Element.get_pad is deprecated /home/hynek/work/pdfpc/src/classes/view/default.vala:72.29-72.31: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/default.vala:233.26-233.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/default.vala:234.13-234.15: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/mutex_locks.vala:42.37-42.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /home/hynek/work/pdfpc/src/classes/renderer/pdf.vala:115.26-115.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/renderer/pdf.vala:137.26-137.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/pdf.vala:92.43-92.45: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:870.24-870.26: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:875.24-875.26: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:879.26-879.28: warning: Gdk is deprecated. Use gdk-3.0

\ (valac:8876): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

\ (valac:8876): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

\ (valac:8876): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

* (valac:8876): CRITICAL _: vala_data_typecopy: assertion 'self != NULL' failed /home/hynek/work/pdfpc/src/classes/action/movie.vala:286.25-286.47: warning: unhandled error `GLib.RegexError' var uriRE = new Regex("^[a-z]://"); ^^^^^^^^^^^^^^^^^^^^^^^ /home/hynek/work/pdfpc/src/classes/action/movie.vala:183.49-183.52: warning: Argument 1: Cannot pass null to non-null parameter type fh = FileUtils.open_tmp(null, out tmp_fn); ^^^^

\ (valac:8876): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

* (valac:8876): CRITICAL _: vala_data_type_copy: assertion 'self != NULL' failed /home/hynek/work/pdfpc/src/classes/timer_label.vala:103.32-103.38: error: Timeout' is an ambiguous reference betweenGLib.Timeout' and Gtk.Timeout' this.timeout = Timeout.add( 1000, this.on_timeout ); ^^^^^^^ /home/hynek/work/pdfpc/src/classes/window/fullscreen.vala:65.31-65.33: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/fullscreen.vala:167.40-167.46: error:Timeout' is an ambiguous reference between GLib.Timeout' andGtk.Timeout' this.hide_cursor_timeout = Timeout.add_seconds( ^^^^^^^ /home/hynek/work/pdfpc/src/classes/window/fullscreen.vala:183.25-183.27: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/fullscreen.vala:184.25-184.27: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:201.13-201.15: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:273.36-273.64: warning: Rsvg.pixbuf_from_file_at_size is deprecated /home/hynek/work/pdfpc/src/classes/window/presenter.vala:274.39-274.41: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:278.39-278.41: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:279.65-279.67: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:283.37-283.65: warning: Rsvg.pixbuf_from_file_at_size is deprecated /home/hynek/work/pdfpc/src/classes/window/presenter.vala:284.40-284.42: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:288.40-288.42: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:289.65-289.67: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:293.36-293.64: warning: Rsvg.pixbuf_from_file_at_size is deprecated /home/hynek/work/pdfpc/src/classes/window/presenter.vala:294.39-294.41: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:298.39-298.41: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/window/presenter.vala:298.81-298.83: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:345.21-345.23: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:363.26-363.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:364.26-364.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:365.46-365.48: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:370.26-370.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:371.26-371.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:372.46-372.48: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:299.45-299.60: error: Argument 1: Cannot pass out argument to non-output parameter this.cache.retrieve(0).get_size(out pixmap_width, out pixmap_height); ^^^^^^^^^^^^^^^^ /home/hynek/work/pdfpc/src/classes/window/overview.vala:300.30-300.32: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:300.41-300.43: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:301.13-301.15: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:305.53-305.55: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/renderer/cache/png/engine.vala:45.37-45.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /home/hynek/work/pdfpc/src/classes/renderer/cache/png/engine.vala:63.30-63.45: error: Argument 1: Cannot pass out argument to non-output parameter pixmap.get_size( out pixmap_width, out pixmap_height ); ^^^^^^^^^^^^^^^^ /home/hynek/work/pdfpc/src/classes/renderer/cache/png/engine.vala:124.30-124.32: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/renderer/cache/png/engine.vala:131.26-131.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/renderer/cache/png/engine.vala:132.13-132.15: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/renderer/cache/simple/engine.vala:43.37-43.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /home/hynek/work/pdfpc/src/classes/window/overview.vala:413.26-413.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:414.17-414.19: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/window/overview.vala:417.17-417.19: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:277.17-277.41: warning: Gee.Map.contains is deprecated /home/hynek/work/pdfpc/src/classes/presentation_controller.vala:301.17-301.41: warning: Gee.Map.contains is deprecated /home/hynek/work/pdfpc/src/classes/action/action_mapping.vala:95.21-95.23: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/action/action_mapping.vala:95.42-95.44: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/behaviour/pdf_link.vala:60.30-60.32: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/behaviour/pdf_link.vala:61.30-61.32: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/view/behaviour/pdflink.vala:62.30-62.32: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:29.39-29.41: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:30.41-30.43: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:31.41-31.43: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:48.40-48.42: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:51.40-51.42: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:55.40-55.42: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:73.36-73.38: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:88.36-88.38: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/classes/configFileReader.vala:128.30-128.49: warning: unhandled error `GLib.RegexError' var splitRegex = new Regex("\s\s"); ^^^^^^^^^^^^^^^^^^^^ /home/hynek/work/pdfpc/src/classes/configFileReader.vala:129.32-129.52: warning: unhandled error `GLib.RegexError' var commentRegex = new Regex("\s#.$"); ^^^^^^^^^^^^^^^^^^^^^ /home/hynek/work/pdfpc/src/pdfpc.vala:140.13-140.15: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/pdfpc.vala:141.13-141.15: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/pdfpc.vala:182.26-182.28: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/pdfpc.vala:222.13-222.15: warning: Gdk is deprecated. Use gdk-3.0 /home/hynek/work/pdfpc/src/pdfpc.vala:223.13-223.15: warning: Gtk is deprecated. Use gtk+-3.0 /home/hynek/work/pdfpc/src/pdfpc.vala:224.13-224.15: warning: Gdk is deprecated. Use gdk-3.0 Compilation failed: 4 error(s), 72 warning(s) src/CMakeFiles/pdfpc.dir/build.make:87: recipe for target 'src/classes/cache_status.c' failed make[2]: * [src/classes/cache_status.c] Error 1 CMakeFiles/Makefile2:107: recipe for target 'src/CMakeFiles/pdfpc.dir/all' failed make[1]: * [src/CMakeFiles/pdfpc.dir/all] Error 2 Makefile:113: recipe for target 'all' failed make: *\ [all] Error 2

pichi commented 10 years ago

$ cmake -DCMAKE_INSTALL_PREFIX="/usr" -DSYSCONFDIR=/etc ../ -- The C compiler identification is GNU 4.9.0 -- 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 -- Found Vala: /usr/bin/valac
-- checking for a minimum Vala version of 0.16.0 -- found Vala, version 0.24.0 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") -- checking for module 'gobject-2.0' -- found gobject-2.0, version 2.40.0 -- checking for module 'gio-2.0' -- found gio-2.0, version 2.40.0 -- checking for module 'gee-1.0' -- found gee-1.0, version 0.6.8 -- checking for module 'poppler-glib' -- found poppler-glib, version 0.26.2 -- checking for module 'gtk+-2.0' -- found gtk+-2.0, version 2.24.24 -- checking for module 'gthread-2.0' -- found gthread-2.0, version 2.40.0 -- checking for module 'librsvg-2.0' -- found librsvg-2.0, version 2.40.2 -- checking for module 'gstreamer-0.10' -- found gstreamer-0.10, version 0.10.36 -- checking for module 'gstreamer-interfaces-0.10' -- found gstreamer-interfaces-0.10, version 0.10.36 -- checking for module 'gstreamer-video-0.10' -- found gstreamer-video-0.10, version 0.10.36 -- checking for module 'gdk-x11-2.0' -- found gdk-x11-2.0, version 2.24.24 -- Configuring done -- Generating done -- Build files have been written to: /home/hynek/work/pdfpc/build

pichi commented 10 years ago

Compiling pdfpc-3.1.1.tgz went good and made binary seems work

~/work/pdfpc-3.1.1$ cmake . -- The C compiler identification is GNU 4.9.0 -- 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 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") -- checking for module 'gobject-2.0' -- found gobject-2.0, version 2.40.0 -- checking for module 'gio-2.0' -- found gio-2.0, version 2.40.0 -- checking for module 'gee-1.0' -- found gee-1.0, version 0.6.8 -- checking for module 'poppler-glib' -- found poppler-glib, version 0.26.2 -- checking for module 'gtk+-2.0' -- found gtk+-2.0, version 2.24.24 -- checking for module 'gthread-2.0' -- found gthread-2.0, version 2.40.0 -- checking for module 'librsvg-2.0' -- found librsvg-2.0, version 2.40.2 -- Configuring done -- Generating done -- Build files have been written to: /home/hynek/work/pdfpc-3.1.1 ~/work/pdfpc-3.1.1$ make Scanning dependencies of target pdfpc [ 3%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/timer_label.c.o [ 6%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/base.c.o
[ 9%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/behaviour/base.c.o
[ 12%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/behaviour/pdf_link/implementation.c.o
[ 15%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/behaviour/pdf_link/signal_provider.c.o
[ 18%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/default.c.o
[ 21%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/view/pdf.c.o
[ 25%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/metadata/slides_notes.c.o
In file included from /usr/include/glib-2.0/glib.h:79:0, from /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/slides_notes.c:5: /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/slides_notes.c: In function ‘string_strip’: /usr/include/glib-2.0/glib/gstrfuncs.h:180:42: warning: passing argument 1 of ‘g_strchug’ discards ‘const’ qualifier from pointer target type

define g_strstrip( string ) g_strchomp (g_strchug (string))

                                      ^

/home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/slides_notes.c:285:2: note: in expansion of macro ‘g_strstrip’ g_strstrip (tmp1); ^ /usr/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected ‘gchar ’ but argument is of type ‘const gchar *’ gchar g_strchug (gchar _string); ^ [ 28%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/metadata/base.c.o [ 31%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/metadata/pdf.c.o
In file included from /usr/include/glib-2.0/glib.h:79:0, from /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c:5: /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c: In function ‘string_strip’: /usr/include/glib-2.0/glib/gstrfuncs.h:180:42: warning: passing argument 1 of ‘g_strchug’ discards ‘const’ qualifier from pointer target type

define g_strstrip( string ) g_strchomp (g_strchug (string))

                                      ^

/home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c:180:2: note: in expansion of macro ‘g_strstrip’ g_strstrip (tmp1); ^ /usr/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected ‘gchar ’ but argument is of type ‘const gchar ’ gchar_ g_strchug (gchar _string); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c: In function ‘pdfpc_metadata_pdf_parse_pdfpc_file’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c:214:3: warning: passing argument 3 of ‘g_file_load_contents’ from incompatible pointer type g_file_load_contents (tmp2, NULL, &tmp3, &tmp4, NULL, &_innererror); ^ In file included from /usr/include/glib-2.0/gio/gio.h:65:0, from /usr/include/poppler/glib/poppler-document.h:23, from /usr/include/poppler/glib/poppler.h:228, from /home/hynek/work/pdfpc-3.1.1/c-src/classes/metadata/pdf.c:9: /usr/include/glib-2.0/gio/gfile.h:1179:10: note: expected ‘char _’ but argument is of type ‘guint8 _’ gboolean g_file_load_contents (GFile file, ^ [ 34%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/mutex_locks.c.o /home/hynek/work/pdfpc-3.1.1/c-src/classes/mutex_locks.c: In function ‘pdfpc_mutex_locks_init’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/mutex_locks.c:50:2: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:273) [-Wdeprecated-declarations] tmp0 = g_mutex_new (); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/mutex_locks.c:51:2: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:275) [-Wdeprecated-declarations] _g_mutex_free0 (pdfpc_mutex_locks_poppler); ^ [ 37%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/cache_status.c.o [ 40%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/presentation_controller.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c: In function ‘_pdfpc_presentation_controller_key_def_hash_ghash_func’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:377:11: warning: passing argument 1 of ‘pdfpc_presentation_controller_key_def_hash’ discards ‘const’ qualifier from pointer target type result = pdfpc_presentation_controller_key_def_hash (key); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:231:7: note: expected ‘void
’ but argument is of type ‘gconstpointer’ guint pdfpc_presentation_controller_key_defhash (void _a); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c: In function ‘_pdfpc_presentation_controller_key_def_equal_gequal_func’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:384:11: warning: passing argument 1 of ‘pdfpc_presentation_controller_key_def_equal’ discards ‘const’ qualifier from pointer target type result = pdfpc_presentation_controller_key_def_equal (a, b); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentationcontroller.c:233:10: note: expected ‘void ’ but argument is of type ‘gconstpointer’ gboolean pdfpc_presentation_controller_key_defequal (void _a, void* _b); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:384:11: warning: passing argument 2 of ‘pdfpc_presentation_controller_key_def_equal’ discards ‘const’ qualifier from pointer target type result = pdfpc_presentation_controller_key_def_equal (a, b); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentationcontroller.c:233:10: note: expected ‘void ’ but argument is of type ‘gconstpointer’ gboolean pdfpc_presentation_controller_key_defequal (void _a, void* _b); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c: In function ‘pdfpc_presentation_controller_bind’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:972:2: warning: ‘gee_map_contains’ is deprecated (declared at /usr/include/gee-1.0/gee.h:906) [-Wdeprecated-declarations] tmp2 = gee_mapcontains ((GeeMap) tmp0, tmp1); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c: In function ‘pdfpc_presentation_controller_bindMouse’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:1047:2: warning: ‘gee_map_contains’ is deprecated (declared at /usr/include/gee-1.0/gee.h:906) [-Wdeprecated-declarations] tmp2 = gee_mapcontains ((GeeMap) tmp0, tmp1); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c: In function ‘pdfpc_presentation_controller_key_def_hash’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:2717:11: warning: passing argument 1 of ‘uintHashFunc’ makes pointer from integer without a cast tmp6 = uintHashFunc (tmp4 | tmp5); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/presentation_controller.c:2717:11: note: expected ‘gconstpointer’ but argument is of type ‘guint’ [ 43%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/scaler.c.o [ 46%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/window/overview.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c: In function ‘_pdfpc_window_overview_on_selection_changed_gtk_icon_view_selection_changed’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c:308:2: warning: passing argument 2 of ‘pdfpc_window_overview_on_selection_changed’ from incompatible pointer type pdfpc_window_overview_on_selection_changed (self, sender); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c:221:6: note: expected ‘struct GtkWidget ’ but argument is of type ‘struct GtkIconView ’ void pdfpc_window_overview_on_selectionchanged (pdfpcWindowOverview self, GtkWidget* source) { ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c: In function ‘pdfpc_window_overview_on_parent_set’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c:467:9: warning: assignment from incompatible pointer type tmp0 = gtk_widget_getparent ((GtkWidget) self); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c:474:10: warning: assignment from incompatible pointer type tmp2 = gtk_widget_getparent ((GtkWidget) self); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/overview.c:477:10: warning: assignment from incompatible pointer type tmp4 = gtk_widget_getparent ((GtkWidget) self); ^ [ 50%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/window/presentation.c.o [ 53%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/window/fullscreen.c.o
[ 56%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/window/presenter.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/window/presenter.c: In function ‘pdfpc_window_presenter_construct’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/presenter.c:700:3: warning: ‘rsvg_pixbuf_from_file_at_size’ is deprecated (declared at /usr/include/librsvg-2.0/librsvg/rsvg.h:213) [-Wdeprecated-declarations] tmp93 = rsvg_pixbuf_from_file_at_size (icon_path "blank.svg", (gint) tmp92, icon_height, &_innererror); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/presenter.c:750:3: warning: ‘rsvg_pixbuf_from_file_at_size’ is deprecated (declared at /usr/include/librsvg-2.0/librsvg/rsvg.h:213) [-Wdeprecated-declarations] tmp103 = rsvg_pixbuf_from_file_at_size (icon_path "snow.svg", icon_height, icon_height, &_innererror); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/window/presenter.c:800:3: warning: ‘rsvg_pixbuf_from_file_at_size’ is deprecated (declared at /usr/include/librsvg-2.0/librsvg/rsvg.h:213) [-Wdeprecated-declarations] tmp113 = rsvg_pixbuf_from_file_at_size (icon_path "pause.svg", icon_height, icon_height, &_innererror); ^ [ 59%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/cache/option_factory.c.o [ 62%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/cache/png/engine.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/png/engine.c: In function ‘pdfpc_renderer_cache_png_engine_instance_init’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/png/engine.c:377:2: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:273) [-Wdeprecated-declarations] tmp0 = g_mutex_new (); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/png/engine.c: In function ‘pdfpc_renderer_cache_png_engine_finalize’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/png/engine.c:386:2: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:275) [-Wdeprecated-declarations] _g_mutex_free0 (self->mutex); ^ [ 65%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/cache/png/item.c.o [ 68%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/cache/base.c.o
[ 71%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/cache/simple/engine.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/simple/engine.c: In function ‘pdfpc_renderer_cache_simple_engine_instance_init’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/simple/engine.c:191:2: warning: ‘g_mutex_new’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:273) [-Wdeprecated-declarations] tmp0 = g_mutex_new (); ^ /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/simple/engine.c: In function ‘pdfpc_renderer_cache_simple_engine_finalize’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/renderer/cache/simple/engine.c:200:2: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:275) [-Wdeprecated-declarations] _g_mutex_free0 (self->mutex); ^ [ 75%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/base.c.o [ 78%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/renderer/pdf.c.o
[ 81%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/options.c.o
[ 84%] Building C object c-src/CMakeFiles/pdfpc.dir/classes/configFileReader.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/classes/configFileReader.c: In function ‘pdfpc_config_file_reader_readConfig’: /home/hynek/work/pdfpc-3.1.1/c-src/classes/configFileReader.c:605:3: warning: passing argument 3 of ‘g_file_load_contents’ from incompatible pointer type g_file_load_contents (tmp4, NULL, &tmp5, &tmp6, NULL, &_innererror); ^ In file included from /usr/include/glib-2.0/gio/gio.h:65:0, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /home/hynek/work/pdfpc-3.1.1/c-src/classes/configFileReader.c:7: /usr/include/glib-2.0/gio/gfile.h:1179:10: note: expected ‘char
_’ but argument is of type ‘guint8 *’ gboolean g_file_load_contents (GFile file, ^ [ 87%] Building C object c-src/CMakeFiles/pdfpc.dir/interfaces/view/behaviour/decoratable.c.o [ 90%] Building C object c-src/CMakeFiles/pdfpc.dir/interfaces/view/prerendering.c.o
[ 93%] Building C object c-src/CMakeFiles/pdfpc.dir/interfaces/controllable.c.o
[ 96%] Building C object c-src/CMakeFiles/pdfpc.dir/interfaces/renderer/caching.c.o
[100%] Building C object c-src/CMakeFiles/pdfpc.dir/pdfpc.c.o
/home/hynek/work/pdfpc-3.1.1/c-src/pdfpc.c: In function ‘main’: /home/hynek/work/pdfpc-3.1.1/c-src/pdfpc.c:702:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations] g_type_init (); ^ Linking C executable pdfpc [100%] Built target pdfpc

xfim commented 10 years ago

Same problem here: pdfpc-3.1.1 compiles without problem, but stable git version does not:

Any other ideas? Anything that I can do?

$ make [ 2%] Generating interfaces/view/behaviour/decoratable.c, interfaces/view/prerendering.c, interfaces/controllable.c, interfaces/renderer/caching.c, paths.c, classes/action/link_action.c, classes/action/movie.c, classes/action/action_mapping.c, classes/configFileReader.c, classes/view/base.c, classes/view/pdf.c, classes/view/default.c, classes/view/behaviour/pdf_link.c, classes/view/behaviour/base.c, classes/metadata/base.c, classes/metadata/pdf.c, classes/metadata/slides_notes.c, classes/options.c, classes/cache_status.c, classes/scaler.c, classes/timer_label.c, classes/mutex_locks.c, classes/presentation_controller.c, classes/window/overview.c, classes/window/presenter.c, classes/window/presentation.c, classes/window/fullscreen.c, classes/renderer/base.c, classes/renderer/pdf.c, classes/renderer/cache/option_factory.c, classes/renderer/cache/png/engine.c, classes/renderer/cache/png/item.c, classes/renderer/cache/base.c, classes/renderer/cache/simple/engine.c, pdfpc.c, presenter.vapi, presenter.h, presenter_internal.h gtk+-2.0.vapi:5926.40-5926.42: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/action/action_mapping.vala:95.21-95.23: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/action/action_mapping.vala:95.42-95.44: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/action/movie.vala:236.46-236.56: warning: Gst.Element.get_pad is deprecated /usr/local/pdfpc/src/classes/presentation_controller.vala:870.24-870.26: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/default.vala:72.29-72.31: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/default.vala:233.26-233.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/default.vala:234.13-234.15: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/mutex_locks.vala:42.37-42.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /usr/local/pdfpc/src/classes/renderer/pdf.vala:115.26-115.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/renderer/pdf.vala:137.26-137.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/behaviour/pdf_link.vala:60.30-60.32: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/behaviour/pdf_link.vala:61.30-61.32: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/behaviour/pdf_link.vala:62.30-62.32: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/view/pdf.vala:92.43-92.45: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:875.24-875.26: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:879.26-879.28: warning: Gdk is deprecated. Use gdk-3.0

\ (valac:27478): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

\ (valac:27478): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

\ (valac:27478): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

* (valac:27478): CRITICAL _: vala_data_typecopy: assertion 'self != NULL' failed /usr/local/pdfpc/src/classes/action/movie.vala:286.25-286.47: warning: unhandled error `GLib.RegexError' var uriRE = new Regex("^[a-z]://"); ^^^^^^^^^^^^^^^^^^^^^^^ /usr/local/pdfpc/src/classes/action/movie.vala:183.49-183.52: warning: Argument 1: Cannot pass null to non-null parameter type fh = FileUtils.open_tmp(null, out tmp_fn); ^^^^

\ (valac:27478): CRITICAL **: vala_data_type_copy: assertion 'self != NULL' failed

* (valac:27478): CRITICAL _: vala_data_type_copy: assertion 'self != NULL' failed /usr/local/pdfpc/src/classes/timer_label.vala:103.32-103.38: error: Timeout' is an ambiguous reference betweenGLib.Timeout' and Gtk.Timeout' this.timeout = Timeout.add( 1000, this.on_timeout ); ^^^^^^^ /usr/local/pdfpc/src/classes/window/fullscreen.vala:65.31-65.33: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/fullscreen.vala:167.40-167.46: error:Timeout' is an ambiguous reference between GLib.Timeout' andGtk.Timeout' this.hide_cursor_timeout = Timeout.add_seconds( ^^^^^^^ /usr/local/pdfpc/src/classes/window/fullscreen.vala:183.25-183.27: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/fullscreen.vala:184.25-184.27: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:201.13-201.15: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:273.36-273.39: warning: Rsvg has been deprecated since 2.36.2. Use bindings distributed with librsvg-2.0 /usr/local/pdfpc/src/classes/window/presenter.vala:273.36-273.64: warning: Rsvg.pixbuf_from_file_at_size is deprecated /usr/local/pdfpc/src/classes/window/presenter.vala:274.39-274.41: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:278.39-278.41: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:279.65-279.67: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:283.37-283.40: warning: Rsvg has been deprecated since 2.36.2. Use bindings distributed with librsvg-2.0 /usr/local/pdfpc/src/classes/window/presenter.vala:283.37-283.65: warning: Rsvg.pixbuf_from_file_at_size is deprecated /usr/local/pdfpc/src/classes/window/presenter.vala:284.40-284.42: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:288.40-288.42: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:289.65-289.67: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:293.36-293.39: warning: Rsvg has been deprecated since 2.36.2. Use bindings distributed with librsvg-2.0 /usr/local/pdfpc/src/classes/window/presenter.vala:293.36-293.64: warning: Rsvg.pixbuf_from_file_at_size is deprecated /usr/local/pdfpc/src/classes/window/presenter.vala:294.39-294.41: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:298.39-298.41: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/window/presenter.vala:298.81-298.83: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:345.21-345.23: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:363.26-363.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:364.26-364.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:365.46-365.48: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:370.26-370.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:371.26-371.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:372.46-372.48: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:299.45-299.60: error: Argument 1: Cannot pass out argument to non-output parameter this.cache.retrieve(0).get_size(out pixmap_width, out pixmap_height); ^^^^^^^^^^^^^^^^ /usr/local/pdfpc/src/classes/window/overview.vala:300.30-300.32: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:300.41-300.43: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:301.13-301.15: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:305.53-305.55: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/renderer/cache/png/engine.vala:45.37-45.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /usr/local/pdfpc/src/classes/renderer/cache/png/engine.vala:63.30-63.45: error: Argument 1: Cannot pass out argument to non-output parameter pixmap.get_size( out pixmap_width, out pixmap_height ); ^^^^^^^^^^^^^^^^ /usr/local/pdfpc/src/classes/renderer/cache/png/engine.vala:124.30-124.32: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/renderer/cache/png/engine.vala:131.26-131.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/renderer/cache/png/engine.vala:132.13-132.15: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/renderer/cache/simple/engine.vala:43.37-43.41: warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32) /usr/local/pdfpc/src/classes/window/overview.vala:413.26-413.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:414.17-414.19: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/window/overview.vala:417.17-417.19: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/presentation_controller.vala:277.17-277.41: warning: Gee.Map.contains is deprecated /usr/local/pdfpc/src/classes/presentationcontroller.vala:301.17-301.41: warning: Gee.Map.contains is deprecated /usr/local/pdfpc/src/classes/configFileReader.vala:29.39-29.41: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:30.41-30.43: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:31.41-31.43: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:48.40-48.42: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:51.40-51.42: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:55.40-55.42: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:73.36-73.38: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:88.36-88.38: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/classes/configFileReader.vala:128.30-128.49: warning: unhandled error `GLib.RegexError' var splitRegex = new Regex("\s\s"); ^^^^^^^^^^^^^^^^^^^^ /usr/local/pdfpc/src/classes/configFileReader.vala:129.32-129.52: warning: unhandled error `GLib.RegexError' var commentRegex = new Regex("\s#.$"); ^^^^^^^^^^^^^^^^^^^^^ /usr/local/pdfpc/src/pdfpc.vala:140.13-140.15: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/pdfpc.vala:141.13-141.15: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/pdfpc.vala:182.26-182.28: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/pdfpc.vala:222.13-222.15: warning: Gdk is deprecated. Use gdk-3.0 /usr/local/pdfpc/src/pdfpc.vala:223.13-223.15: warning: Gtk is deprecated. Use gtk+-3.0 /usr/local/pdfpc/src/pdfpc.vala:224.13-224.15: warning: Gdk is deprecated. Use gdk-3.0 Compilation failed: 4 error(s), 75 warning(s) src/CMakeFiles/pdfpc.dir/build.make:90: recipe for target 'src/interfaces/view/behaviour/decoratable.c' failed make[2]: * [src/interfaces/view/behaviour/decoratable.c] Error 1 CMakeFiles/Makefile2:110: recipe for target 'src/CMakeFiles/pdfpc.dir/all' failed make[1]: * [src/CMakeFiles/pdfpc.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *\ [all] Error 2

xfim commented 10 years ago

Ok, thanks to issue #69, I have been able to compile git stable version, by changing vala to 0.20.1 instead of 0.24.1.