View Single Post
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#222
Well, I'm trying to get an environment set up to be able to compile tear. To play around with the source code, and see what vala can do. I've got it almost all working, but I'm running into some trouble. First, I run:
Code:
[sbox-DIABLO_ARMEL: ~/tear/tear] > ./waf configure
Checking for program gcc                 : ok /scratchbox/compilers/bin/gcc 
Checking for compiler version            : ok 3.4.4 
Checking for program cpp                 : ok /scratchbox/compilers/bin/cpp 
Checking for program ar                  : ok /scratchbox/compilers/bin/ar 
Checking for program ranlib              : ok /scratchbox/compilers/bin/ranlib 
Checking for compiler could create programs : ok  
Checking for compiler could create shared libs : ok  
Checking for compiler could create static libs : ok  
Checking for flags -O2                         : ok  
Checking for flags -g -DDEBUG                  : ok  
Checking for flags -g3 -O0 -DDEBUG             : ok  
Checking for flags -Wall                       : ok  
Checking for gcc                               : ok  
Checking for program valac                     : ok /usr/bin/valac 
Checking for package gthread-2.0               : ok  
Checking for program version valac >= 0.1.6    : ok 0.5.7 
Checking for program msgfmt                    : ok /scratchbox/tools/bin/msgfmt 
Checking for program intltool-merge            : ok /usr/bin/intltool-merge 
Checking for header locale.h                   : ok  
Checking for package glib-2.0 >= 2.10.0        : ok  
Checking for package gconf-2.0 >= 2.10.0       : ok  
Checking for package gobject-2.0 >= 2.10.0     : ok  
Checking for package gtk+-2.0 >= 2.10.0        : ok  
Checking for package hildon-1 >= 1.0           : ok  
Checking for package hildon-fm-2 >= 1.9        : ok  
Checking for package conic >= 0.16             : ok  
Checking for package libpcre >= 6.5            : ok  
Checking for package libosso >= 2.0            : ok  
Checking for package sqlite3 >= 3.0            : ok  
Checking for package webkit-1.0 >= 1.0         : ok  
Configuration finished successfully; project is now ready to build.
Huzzah! No troubles there. Now to build it...
Code:
[sbox-DIABLO_ARMEL: ~/tear/tear] > ./waf build
[ 1/23] valac: src/tear.vala src/uim.vala src/about.vala src/settings.vala src/dbqueue.vala src/connmanager.vala src/imagemenuitem.vala src/ovbox.vala src/drawer.vala src/quickbar.vala src/tearwebview.vala src/downloadmanager.vala src/downloaditem.vala src/checkbutton.vala src/option.vala src/blocker.vala src/blockerrule.vala src/dbusservice.vala src/dbusserver.vala src/optionsmanager.vala src/menu.vala
about.vala:31.21-31.96: warning: unhandled error `GLib.Error'
optionsmanager.vala:200.8-200.29: warning: result variable type incompatible with return type
optionsmanager.vala:320.10-320.15: warning: result variable type incompatible with return type
option.vala:24.14-24.31: warning: deprecated syntax, don't use `new' to initialize structs
dbqueue.vala:94.10-94.15: warning: result variable type incompatible with return type
dbqueue.vala:44.7-44.206: warning: result variable type incompatible with return type
quickbar.vala:9.2-9.23: warning: Tear.Quickbar.model hides inherited field `Gtk.ComboBox.model'. Use the `new' keyword if hiding was intentional
quickbar.vala:81.24-81.29: warning: result variable type incompatible with return type
quickbar.vala:110.28-110.33: warning: result variable type incompatible with return type
quickbar.vala:123.24-123.29: warning: result variable type incompatible with return type
optionsmanager.vala:277.4-277.15: warning: `null' incompatible with return type `string`
optionsmanager.vala:282.13-282.24: warning: `null' incompatible with return type `string`
ovbox.vala:120.31-120.50: warning: deprecated syntax, don't use `new' to initialize structs
ovbox.vala:204.26-204.45: warning: deprecated syntax, don't use `new' to initialize structs
ovbox.vala:205.25-205.44: warning: deprecated syntax, don't use `new' to initialize structs
quickbar.vala:142.24-142.29: warning: result variable type incompatible with return type
quickbar.vala:191.10-191.15: warning: result variable type incompatible with return type
optionsmanager.vala:239.18-239.30: warning: deprecated syntax, don't use `new' to initialize structs
optionsmanager.vala:247.8-247.13: warning: result variable type incompatible with return type
optionsmanager.vala:267.18-267.30: warning: deprecated syntax, don't use `new' to initialize structs
tear.vala:1123.9-1123.35: warning: result variable type incompatible with return type
tear.vala:1348.29-1348.34: warning: result variable type incompatible with return type
downloaditem.vala:15.14-15.31: warning: deprecated syntax, don't use `new' to initialize structs
downloadmanager.vala:17.3-17.78: warning: unhandled error `GLib.Error'
tear.vala:1544.25-1544.30: warning: result variable type incompatible with return type
checkbutton.vala:8.2-8.20: warning: Tear.CheckButton.label hides inherited property `Gtk.Button.label'. Use the `new' keyword if hiding was intentional
checkbutton.vala:12.2-12.19: warning: Tear.CheckButton.active hides inherited property `Gtk.ToggleButton.active'. Use the `new' keyword if hiding was intentional
tear.vala:607.22-607.27: warning: result variable type incompatible with return type
tear.vala:812.4-812.79: warning: unhandled error `GLib.Error'
optionsmanager.vala:226.8-226.29: warning: result variable type incompatible with return type
optionsmanager.vala:372.10-372.15: warning: result variable type incompatible with return type
optionsmanager.vala:20.24-20.29: warning: result variable type incompatible with return type
optionsmanager.vala:25.3-25.78: warning: unhandled error `GLib.Error'
uim.vala:118.2-118.25: warning: Tear.UIManager.get_action hides inherited method `Gtk.UIManager.get_action'. Use the `new' keyword if hiding was intentional
uim.vala:85.3-85.32: warning: unhandled error `GLib.Error'
tear.vala:753.8-753.93: warning: local variable `act' declared but never used
tearwebview.vala:48.5-48.10: warning: unreachable code detected
[ 2/23] cc: _build_/default/src/tear.c -> _build_/default/src/tear_1.o
default/src/tear.c: In function `tear_browser_window_check_if_dirty':
default/src/tear.c:2259: warning: too many arguments for format
default/src/tear.c: In function `_on_action_activated_gtk_ui_manager_post_activate':
default/src/tear.c:2329: warning: passing arg 1 of `on_action_activated' from incompatible pointer type
default/src/tear.c: In function `tear_browser_window_get_property':
default/src/tear.c:2545: warning: unused variable `boxed'
[ 3/23] cc: _build_/default/src/uim.c -> _build_/default/src/uim_1.o
[ 4/23] cc: _build_/default/src/about.c -> _build_/default/src/about_1.o
default/src/about.c: In function `tear_about_constructor':
default/src/about.c:85: warning: passing arg 2 of `gtk_about_dialog_set_authors' from incompatible pointer type
[ 5/23] cc: _build_/default/src/settings.c -> _build_/default/src/settings_1.o
[ 6/23] cc: _build_/default/src/dbqueue.c -> _build_/default/src/dbqueue_1.o
[ 7/23] cc: _build_/default/src/connmanager.c -> _build_/default/src/connmanager_1.o
[ 8/23] cc: _build_/default/src/imagemenuitem.c -> _build_/default/src/imagemenuitem_1.o
default/src/imagemenuitem.c: In function `tear_menu_item_get_property':
default/src/imagemenuitem.c:119: warning: unused variable `boxed'
[ 9/23] cc: _build_/default/src/ovbox.c -> _build_/default/src/ovbox_1.o
default/src/ovbox.c: In function `tear_ov_box_get_over_geometry':
default/src/ovbox.c:121: warning: implicit declaration of function `round'
default/src/ovbox.c: In function `tear_ov_box_class_init':
default/src/ovbox.c:532: warning: assignment from incompatible pointer type
[10/23] cc: _build_/default/src/drawer.c -> _build_/default/src/drawer_1.o
[11/23] cc: _build_/default/src/quickbar.c -> _build_/default/src/quickbar_1.o
[12/23] cc: _build_/default/src/tearwebview.c -> _build_/default/src/tearwebview_1.o
[13/23] cc: _build_/default/src/downloadmanager.c -> _build_/default/src/downloadmanager_1.o
In file included from default/src/downloadmanager.c:3:
/usr/include/hildon-mime.h:28:35: libgnomevfs/gnome-vfs.h: No such file or directory
/usr/include/hildon-mime.h:29:50: libgnomevfs/gnome-vfs-mime-handlers.h: No such file or directory
In file included from default/src/downloadmanager.c:3:
/usr/include/hildon-mime.h:75: error: syntax error before "GnomeVFSFileInfo"
default/src/downloadmanager.c: In function `tear_download_manager_progress_update_cb':
default/src/downloadmanager.c:247: warning: implicit declaration of function `lround'
Build failed
 -> task failed (err #129): [bld:///home/bobby/tear/tear/src/downloadmanager_1.o]
A lot of warnings, and something stopping the build from completing. I've poked around a bit, but haven't found anything to make it build. I'm using the latest code from garage's SVN. Am I using old code? Is SVN unstable currently? Or is there something I'm missing?
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 

The Following User Says Thank You to TrueJournals For This Useful Post: