[Vala] [newbie] 3 errors: vala on win32



Hello,

I'm trying to compile some samples from wiki on win32 but I got three errors:
- in "Toolbar, Scrollable Text View and File Chooser", log bellow
http://live.gnome.org/Vala/GTKSample
- in "Vala Poppler Sample", log bellow
http://live.gnome.org/Vala/PopplerSample
- in "Lua Sample", log bellow
http://live.gnome.org/Vala/LuaSample

I don't really know why the 1st one fails. I did everything from here:
http://live.gnome.org/Vala/ValaOnWindows
That is, installed vala-0.7.5.exe and extracted
w32api-3.13-mingw32-dev.tar.gz. However, there was one thing, when I
was extracting w32api it wanted to overwrite some files so I let it do
so, even though some files weren't the same size. Could this be it?

I assume the 2nd and 3rd one are of the same kind, i.e. that I don't
have Poppler and Lua in my Vala/MinGW installation. Where or how can I
get them? Do I have to download their source codes and compile them?
Or can I just grab somewhere the binaries and extract them in my
installation directory?

Thanks!!

Log for "Toolbar, Scrollable Text View and File Chooser":
valac -X -mwindows --pkg gtk+-2.0 text-file-viewer.vala
text.vala.c: In function `text_file_viewer_open_file':
text.vala.c:128: warning: passing arg 3 of `g_file_get_contents_utf8'
from incompatible pointer type


Log for "Vala Poppler Sample":
valac -X -mwindows --pkg gtk+-2.0 --pkg poppler-glib PopplerSample.vala
poppler.vala.c:6:21: poppler.h: No such file or directory
poppler.vala.c:35: error: syntax error before "PopplerDocument"
poppler.vala.c:35: warning: no semicolon at end of struct or union
poppler.vala.c:38: error: syntax error before '}' token
poppler.vala.c: In function `poppler_sample_construct':
poppler.vala.c:83: error: `PopplerDocument' undeclared (first use in
this function)
poppler.vala.c:83: error: (Each undeclared identifier is reported only once
poppler.vala.c:83: error: for each function it appears in.)
poppler.vala.c:83: error: `_tmp2_' undeclared (first use in this function)
poppler.vala.c:84: error: `_tmp3_' undeclared (first use in this function)
poppler.vala.c:85: error: `_tmp4_' undeclared (first use in this function)
poppler.vala.c:99: error: dereferencing pointer to incomplete type
poppler.vala.c:99: error: dereferencing pointer to incomplete type
poppler.vala.c:99: error: dereferencing pointer to incomplete type
poppler.vala.c:99: error: dereferencing pointer to incomplete type
poppler.vala.c:120: error: dereferencing pointer to incomplete type
poppler.vala.c:120: error: dereferencing pointer to incomplete type
poppler.vala.c:120: error: dereferencing pointer to incomplete type
poppler.vala.c:120: error: dereferencing pointer to incomplete type
poppler.vala.c:122: error: dereferencing pointer to incomplete type
poppler.vala.c: In function `poppler_sample_on_key_pressed':
poppler.vala.c:146: error: dereferencing pointer to incomplete type
poppler.vala.c:147: error: dereferencing pointer to incomplete type
poppler.vala.c:147: error: dereferencing pointer to incomplete type
poppler.vala.c:147: error: dereferencing pointer to incomplete type
poppler.vala.c: In function `poppler_sample_render_page':
poppler.vala.c:157: error: `PopplerPage' undeclared (first use in this function)
poppler.vala.c:157: error: `_tmp1_'undeclared (first use in this function)
poppler.vala.c:158: error: `page' undeclared (first use in this function)
poppler.vala.c:161: error: dereferencing pointer to incomplete type
poppler.vala.c:163: error: dereferencing pointer to incomplete type
poppler.vala.c:163: error: dereferencing pointer to incomplete type
poppler.vala.c:165: error: dereferencing pointer to incomplete type
poppler.vala.c: In function `poppler_sample_class_init':
poppler.vala.c:197: error: invalid application of `sizeof' to
incomplete type `poppler.vala.c'
poppler.vala.c: In function `poppler_sample_instance_init':
poppler.vala.c:204: error: dereferencing pointer to incomplete type
poppler.vala.c: In function `poppler_sample_finalize':
poppler.vala.c:211: error: dereferencing pointer to incomplete type
poppler.vala.c:211: error: dereferencing pointer to incomplete type
poppler.vala.c:211: error: dereferencing pointer to incomplete type
poppler.vala.c:212: error: dereferencing pointer to incomplete type
poppler.vala.c:212: error: dereferencing pointer to incomplete type
poppler.vala.c:212: error: dereferencing pointer to incomplete type
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)



Log for "Lua Sample":
lua.vala.c:5:17: lua.h: No such file or directory
vala.c:8:21: lauxlib.h: No suchfile or directory
lua.vala.c:13: error: syntax error before '*' token
lua.vala.c:14: error: syntax error before '*' token
lua.vala.c:19: error: syntax error before '*' token
lua.vala.c: In function `my_func':
lua.vala.c:21: error: `vm' undeclared (first use in this function)
lua.vala.c:21: error: (Each undeclared identifier is reported only once
vala.c:21: error: for each function it appears in.)
lua.vala.c: At top level:
lua.vala.c:28: error: syntax error before '*' token
lua.vala.c: In function `_my_func_lua_cfunction':
lua.vala.c:29: error: `vm' undeclared (first use in this function)
lua.vala.c: In function `_main':
lua.vala.c:36: error: `lua_State' undeclared (first use in this function)
lua.vala.c:36: error: `vm' undeclared (first use in this function)
lua.vala.c:38: error: syntax error before ')' token
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)



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