Re: [Vala] Web framework in Vala
- From: Antono Vasiljev <self antono info>
- To: Denis Kuzmenok <forward_ua ukr net>, vala-list gnome org
- Subject: Re: [Vala] Web framework in Vala
- Date: Fri, 09 Dec 2011 20:09:50 +0300
On 12/09/2011 05:53 PM, Denis Kuzmenok wrote:
I've installed all g-based libs from source, also added to makefile
"-X -llua-5.1 -X -lmemcached" to include libraries,
If you use --pkg luajit you should add -X -lluajit or something like
this. Or just pass --pkg lua to vala compiler. Not sure why you should
instruct gcc about lua and memcached. I belive vala knows how instruct
compiler via vapi.
also removed
"--enable-experimental", and now it compiles without errors, just much
warnings.
But the's no post listening, and i can't get it working, for now..
[ava elgato valum]$ make run
rm -f ./bin/app.valum
valac --thread --vapidir=./vapi/ -X -llua-5.1 -X -lmemcached --cc=gcc --gir Valum-1.0.gir --pkg gio-2.0 --pkg
json-glib-1.0 --pkg gee-1.0 --pkg libsoup-2.4 --pkg libmemcached --pkg luajit valum/request.vala
valum/nosql/memcached.vala valum/app.vala valum/route.vala valum/script/lua.vala valum/tools/cli.vala
valum/tools/dbus.vala valum/response.vala app/app.vala -o ./bin/app.valum
app/app.vala:1.1-34.8: warning: main blocks are experimental
/home/ava/develop/vala/valum/valum/request.vala.c: In function ‘valum_request_construct’:
/home/ava/develop/vala/valum/valum/request.vala.c:92: warning: assignment makes pointer from integer without
a cast
/home/ava/develop/vala/valum/valum/nosql/memcached.vala.c: In function ‘valum_no_sql_mcached_get’:
/home/ava/develop/vala/valum/valum/nosql/memcached.vala.c:187: warning: passing argument 4 of ‘memcached_get’
from incompatible pointer type
/usr/include/libmemcached-1.0/get.h:47: note: expected ‘size_t *’ but argument is of type ‘guint32 *’
/home/ava/develop/vala/valum/valum/response.vala.c: In function ‘valum_response_get_mime’:
/home/ava/develop/vala/valum/valum/response.vala.c:229: warning: assignment makes pointer from integer
without a cast
/home/ava/develop/vala/valum/app/app.vala.c: In function ‘main’:
/home/ava/develop/vala/valum/app/app.vala.c:153: warning: ‘g_thread_init’ is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:259)
Compilation succeeded - 1 warning(s)
./bin/app.valum
I'd recommend to use valac-0.14 for now :)
--
antono
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]