[Vala] bug in glib vapi ????

2015-08-25 Thread Michele Dionisio
Hi,

I think that the following function:

[CCode (cname = g_list_find_custom, simple_generics = true)]
public unowned ListG searchT (T data, SearchFuncT,G func);

in glib vapi is wrong because the g_list_find_custom documentation says?

Finds an element in a GList, using a supplied function to find the desired
element. It iterates over the list, calling the given function which should
return 0 when the desired element is found. The function takes two
gconstpointer arguments, *the GList element's data as the first argument *and
the given user data.


so the function has to be:
[CCode (cname = g_list_find_custom, simple_generics = true)]
public unowned ListG searchT (T data, SearchFuncG,T func);

is it true?
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Help with libgda

2015-08-25 Thread Noe Nieto
Just for the record. This is what I did all this to compile libgda 6.0 with
vala bindings on Fedora 22.

sudo dnf install vala-devel vala-devel vala-compat-tools vala-tools
gtksourceview3 gtksourceview3-devel goocanvas2-devel graphviz-devel
libgee-devel community-mysql-devel postgresql-devel libsqlite3x-devel
git clone https://github.com/GNOME/libgda.git
cd libgda/
VALA_API_VERSION=0.28 ./autogen.sh --prefix=/opt --enable-json
--enable-vala=yes --enable-gda-gi=yes --enable-gdaui-gi=yes
--enable-gi-system-install=yes --enable-gdaui-vala=yes
--enable-vala-extensions=yes --enable-gtk-doc --enable-system-sqlite
--with-ui --with-gtksourceview --with-goocanvas --with-graphviz
--with-gnome-keyring --enable-binreloc --enable-system-sqlite=no

Can libgda 6.0 be installed along with the one that ships with fedora
(5.22)?

--
Noe


2015-08-24 12:32 GMT-07:00 yannick inizan inizan.yann...@gmail.com:

 because vapi doesn't exist. Only 4.0 is present. libgda 6.0 has his own
 generated vapi
 If you want 6.0, build from git. Or on ubuntu :
 https://launchpad.net/~inizan-yannick/+archive/ubuntu/development/

 2015-08-24 21:20 GMT+02:00 Noe Nieto nni...@noenieto.com:

 Hi, I generated a vala project using Anjuta on Fedora 22. When I run make
 on the project I get the following error:

 $ make
 make  all-recursive
 make[1]: Entering directory '/home/nnieto/Code/mezquite'
 Making all in src
 make[2]: Entering directory '/home/nnieto/Code/mezquite/src'
   VALACmezquite_vala.stamp
 error: Package `libgda-5.0' not found in specified Vala API directories or
 GObject-Introspection GIR directories
 error: Package `libgda-mysql-5.0' not found in specified Vala API
 directories or GObject-Introspection GIR directories
 Compilation failed: 2 error(s), 0 warning(s)
 Makefile:479: recipe for target 'mezquite_vala.stamp' failed
 make[2]: *** [mezquite_vala.stamp] Error 1
 make[2]: Leaving directory '/home/nnieto/Code/mezquite/src'
 Makefile:454: recipe for target 'all-recursive' failed
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory '/home/nnieto/Code/mezquite'
 Makefile:365: recipe for target 'all' failed
 make: *** [all] Error 2

 Libgda is installed on the system:
 $ pkg-config --list-all | grep gda
 libgda-ldap-5.0 libgda-ldap-5.0 - GDA Ldap provider
 libgda-xslt-5.0 libgda-xslt-5.0 - GDA (GNOME Data
 Access) XSLT extension
 libgda-bdbsql-5.0   libgda-bdbsql-5.0 - GDA (GNOME Data
 Access) BDBSql provider
 libgda-jdbc-5.0 libgda-jdbc-5.0 - GDA (GNOME Data
 Access) JDBC provider
 libgda-sqlcipher-5.0libgda-sqlcipher-5.0 - GDA (GNOME Data
 Access) SQLCipher provider
 libgda-5.0  libgda-5.0 - GDA (GNOME Data Access)
 library
 libgdatalibgdata - GData client library
 libgda-report-5.0   libgda-report-5.0 - GDA (GNOME Data
 Access) Reports
 libgda-mdb-5.0  libgda-mdb-5.0 - GDA (GNOME Data
 Access) MDB provider
 libgda-sqlite-5.0   libgda-sqlite-5.0 - GDA (GNOME Data
 Access) SQLite provider
 libgda-mysql-5.0libgda-postgres-5.0 - GDA (GNOME Data
 Access) Mysql provider
 libgda-bdb-5.0  libgda-bdb-5.0 - GDA (GNOME Data
 Access) BDB provider
 libgda-postgres-5.0 libgda-postgres-5.0 - GDA (GNOME Data
 Access) PostgreSQL provider
 libgda-web-5.0  libgda-web-5.0 - GDA (GNOME Data
 Access) Web provider

 And my Makefile.am looks lik this:

 dnl Process this file with autoconf to produce a configure script.
 dnl Created by Anjuta application wizard.

 AC_INIT(mezquite, 0.1)

 AC_CONFIG_HEADERS([config.h])

 AM_INIT_AUTOMAKE([1.11])

 AM_SILENT_RULES([yes])

 AC_PROG_CC




 LT_INIT

 dnl Check for vala
 AM_PROG_VALAC([0.10.0])


 PKG_CHECK_MODULES(MEZQUITE, [libgda-5.0 libgda-mysql-5.0 gtk+-3.0])


 AC_OUTPUT([
 Makefile
 src/Makefile

 ])

 I'm a bit lost on this. Any help will be greatly appreciated.


 --
 ---
 Noe Nieto
 NNieto Consulting Services
 M: nni...@noenieto.com
 W: http://noenieto.com
 T:  @tzicatl https://twitter.com/#%21/tzicatl
 Li: Perfil en LinkedIn http://www.linkedin.com/profile/view?id=84300665
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list





-- 
---
Noe Nieto
NNieto Consulting Services
M: nni...@noenieto.com
W: http://noenieto.com
T:  @tzicatl https://twitter.com/#%21/tzicatl
Li: Perfil en LinkedIn http://www.linkedin.com/profile/view?id=84300665
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] vector extensions for Vala

2015-08-25 Thread rastersoft
Hi:

Are plans to implement vector extensions (to take advantage of SSE
instructions) in Vala?

Just a thin layer over gcc vector extensions would be quite easy...

https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html

-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list