Re: [Vala] Header file not found ?!?
Hello, In fact, I've the same problem as : http://www.perlmonks.org/?node_id=896237 $ valac --pkg libpcap -X -I/opt/include test.vala test.vala.c: In function 'main': test.vala.c:29:2: warning: 'g_type_init' is deprecated (declared at C:\TEMP\cccVFFzy.o:test.vala.c:(.text+0x47): undefined reference to `pcap_lib_version' collect2: ld returned 1 exit status error: cc exited with status 1 Compilation failed: 1 error(s), 0 warning(s) I will try the fix explained in the web page. Regards, Raum On Fri, 2013-09-20 at 15:49 +0200, r...@no-log.org wrote: Hello, I'm trying to output pcap version in mingw32 environnement. I've installed libpcap.vapi, libpcap.deps (from https://github.com/apmasell/vapis) and all header and lib files from WpdPack.zip (WinPcap developper kit). I found in my /opt/include folder : pcap.h pcap/pcap.h ... CPPFLAGS=-I/opt/include This isn't likely to have much effect?Vala uses C, not C++. You may have better luck with CFLAGS. AFAIK Vala doesn't use the CFLAGS environment variable, though, so if that's what you're hoping will pick it up I think you're out of luck. If you want to get valac to pass specific C flags to the C compiler, use -X (valac -X -I/opt/include ...). C_LIBRARY_PATH=/usr/include:/mingw/include:/opt/include simple vala code test_pcap.vala : - void main() { stdout.printf (%s\n, PCap.get_version()); } - Command to compile test code : $ valac --pkg gio-2.0 --pkg libpcap test_pcap.vala d:/test_pcap.vala.c:8:23: fatal error: pcap/pcap.h: No such file or directory compilation terminated. error: cc exited with status 1 Compilation failed: 1 error(s), 0 warning(s) $ Do you have an advice ? I don't understand why valac didn't find a file which is obviously present in /opt/include/pcap/ folder ? It's actually not valac which doesn't find the header file, it's the C compiler. You can always just tell valac to compile to C but not compile the C itself (using the -C flag), then invoke your C compiler manually. Once you figure out the right flags, you can pass them to valac with -X. You can also see what flags valac is passing to the C compiler with something like `valac --cc=echo --pkg gio-2.0 --pkg libpcap test_pcap.vala`. -Evan ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Emendo text editor
Hi, Emendo is a simple text editor with syntax highlighting written in Vala, using Gtk+3 and Gtksourceview. If someone is interested source tarball can be found here:http://alphaos.tuxfamily.org/forum/viewtopic.php?f=8t=702#p1151 Presenting this text editor to you is one thing, but more important there are two known bugs I am still not able to solve: First, before closing program from toolbar or with Ctrl+Q, there is source_buffer_check method called (line 700) from action_quit (line 573) method, that offers to save changes if source buffer is modified. That works fine if program is closing from toolbar button or Ctrl+Q, but when X in titlebar is clicked, program first closes then shows that dialog box and offers to save changes. Second, replace_all method (line 545) works OK, but it is not undoable, when undo button from toolbar is clicked, everything from sourcebuffer gets deleted. Thank you for any help. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Emendo text editor
No github or bitbucket? Steven N. Oliver On Mon, Sep 23, 2013 at 2:15 PM, simargl arch...@gmail.com wrote: Hi, Emendo is a simple text editor with syntax highlighting written in Vala, using Gtk+3 and Gtksourceview. If someone is interested source tarball can be found here: http://alphaos.tuxfamily.org/forum/viewtopic.php?f=8t=702#p1151 Presenting this text editor to you is one thing, but more important there are two known bugs I am still not able to solve: First, before closing program from toolbar or with Ctrl+Q, there is source_buffer_check method called (line 700) from action_quit (line 573) method, that offers to save changes if source buffer is modified. That works fine if program is closing from toolbar button or Ctrl+Q, but when X in titlebar is clicked, program first closes then shows that dialog box and offers to save changes. Second, replace_all method (line 545) works OK, but it is not undoable, when undo button from toolbar is clicked, everything from sourcebuffer gets deleted. Thank you for any help. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] [ANNOUNCE] Vala 0.22.0 - Compiler for the GObject type system
We are pleased to announce version 0.22.0 of Vala, a compiler for the GObject type system. Vala 0.22.0 is now available for download at: http://download.gnome.org/sources/vala/0.22/ Changes since 0.21.2 * Support chain up to constructv functions. * Bug fixes and binding updates. Vala is a programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. valac, the Vala compiler, is a self-hosting compiler that translates Vala source code into C source and header files. It uses the GObject type system to create classes and interfaces declared in the Vala source code. More information about Vala is available at http://www.vala-project.org/ The Vala Team --- Arnel A. Borja (1): cairo: Fixes to RecordingSurface, PdfSurface and SvgSurface bindings Evan Nemerson (3): bindings: update GIR-based GNOME bindings from jhbuild libsoup-2.4: fix symbol name in some deprecated since annotations gio-2.0: re-add MenuModel.get_item_links Florian Brosch (2): libxml-2.0: Fix SchemaValidCtxt glib-2.0: de-deprecate string.offset Jürg Billeter (1): Release 0.22.0 Luca Bruno (1): Support chain up to constructv functions. Rico Tzschichholz (2): codegen: Don't define varidic helper *_constructv_full as static gtk+-3.0: Update to 3.9.16 ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Emendo text editor
On Mon, Sep 23, 2013 at 9:07 PM, Steven Oliver oliver.ste...@gmail.comwrote: No github or bitbucket? Steven N. Oliver I have now added bitbucket repository: https://bitbucket.org/simargl/emendo ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] [ANNOUNCE] Vala 0.22.0 - Compiler for the GObject type system
We are pleased to announce version 0.22.0 of Vala, a compiler for the GObject type system. Vala 0.22.0 is now available for download at: http://download.gnome.org/sources/vala/0.22/ Changes since 0.21.2 * Support chain up to constructv functions. * Bug fixes and binding updates. Vala is a programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. valac, the Vala compiler, is a self-hosting compiler that translates Vala source code into C source and header files. It uses the GObject type system to create classes and interfaces declared in the Vala source code. More information about Vala is available at http://www.vala-project.org/ The Vala Team --- Arnel A. Borja (1): cairo: Fixes to RecordingSurface, PdfSurface and SvgSurface bindings Evan Nemerson (3): bindings: update GIR-based GNOME bindings from jhbuild libsoup-2.4: fix symbol name in some deprecated since annotations gio-2.0: re-add MenuModel.get_item_links Florian Brosch (2): libxml-2.0: Fix SchemaValidCtxt glib-2.0: de-deprecate string.offset Jürg Billeter (1): Release 0.22.0 Luca Bruno (1): Support chain up to constructv functions. Rico Tzschichholz (2): codegen: Don't define varidic helper *_constructv_full as static gtk+-3.0: Update to 3.9.16 ___ vala-devel-list mailing list vala-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-devel-list