Re: [Vala] Web framework in Vala



I've  installed  all  g-based libs from source, also added to makefile
"-X  -llua-5.1  -X  -lmemcached"  to  include  libraries, 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

On 12/08/2011 06:17 PM, Denis Kuzmenok wrote:
Did you try compiling it with vala-0.15 ?

No, i have no vala-0.15 yet.

Maybe there's a need in latest packages? I've used ones from yum.

Oh. If you use rpm based distro coul'd you please make installation
instructions for Valum for vala-0.14?

I'm getting many errors:

[ava elgato valum]$ make run
rm -f   ./bin/app.valum
valac --enable-experimental --thread --vapidir=./vapi/ --cc=gcc --gir Valum-1.0.gir -D BENCHMARK --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
/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/app/app.vala.c:382: error: ‘_tmp2_’ undeclared (first use in this function)
/home/ava/develop/vala/valum/app/app.vala.c:396: warning: assignment makes pointer from integer without a 
cast
/home/ava/develop/vala/valum/app/app.vala.c:400: error: lvalue required as left operand of assignment
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
make: *** [bin/app.valum] Error 1

Hmm. I only can ask you to remove --enable-experimental from Makefile.
Totally not sure what's going on here :)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]