radare / valabind

create bindings from vapi to nodejs, python, swig, c++
GNU General Public License v3.0
56 stars 27 forks source link

Makefile: unable to find --pkg valacodegen-0.40 #47

Closed blshkv closed 6 years ago

blshkv commented 6 years ago

Hi, I'm trying to compile valabind 1.5.0 it fails with the following error:

Compiling config.vala main.vala valabindwriter.vala nodeffiwriter.vala utils.vala girwriter.vala swigwriter.vala cxxwriter.vala ctypeswriter.vala dlangwriter.vala gowriter.vala -> valabind
"valac-0.36" -o valabind --pkg posix --pkg libvala-0.36 --save-temps  config.vala main.vala valabindwriter.vala nodeffiwriter.vala utils.vala girwriter.vala swigwriter.vala cxxwriter.vala ctypeswriter.vala dlangwriter.vala gowriter.vala 
swigwriter.vala:25.24-25.54: error: The name `get_ccode_header_filenames' does not exist in the context of `Vala'
                foreach (string i in Vala.get_ccode_header_filenames (s).split (",")) {
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swigwriter.vala:197.15-197.33: error: The name `get_ccode_name' does not exist in the context of `Vala'
                var cname = Vala.get_ccode_name (c);
                            ^^^^^^^^^^^^^^^^^^^
swigwriter.vala:197.7-197.37: error: var declaration not allowed with non-typed initializer
                var cname = Vala.get_ccode_name (c);
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I have dev-lang/vala-0.36.7 installed but I can't figure out where valacodegen-0.40 should come from. Any hints?

Thank you

blshkv commented 6 years ago

Gr.. it looks like this is a dup of https://github.com/radare/valabind/issues/43

blshkv commented 6 years ago

Ok, so from what I understood, the release v1.5.0 is broken.

The stable release should be compiled against stable dependencies (vala) but they have not released 0.40 yet.

radare commented 6 years ago

All previous releases of valabind are broken for vala <0.40 So use an older version of vala or wait until new vala is released. I cant fix broken vala releases from here

On 23 Jan 2018, at 03:29, Anton Bolshakov notifications@github.com wrote:

Ok, so from what I understood, the release v1.5.0 is broken.

The stable release should be compiled against stable dependencies (vala) but they have not released 0.40 yet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

radare commented 6 years ago

cant fix this because there's no way to make valabind build with old versions of vala. use vala-unstable or vala-git, or wait for a new release.

anthraxx commented 6 years ago

@radare vala 0.40 has been released, valabind git HEAD seems to work fine but latest 1.5.0 needs the Makefile adjustments and stuff... if you could simply push a new point release to valabind that just works our of the box with vala 0.40 that would be gorgeos.

radare commented 6 years ago

I tagged master, so you may be able to get the 1.6 tarball of valabind

On 21 Mar 2018, at 02:23, Levente Polyak notifications@github.com wrote:

@radare vala 0.40 has been released, valabind git HEAD seems to work fine but latest 1.5.0 needs the Makefile adjustments and stuff... if you could simply push a new point release to valabind that just works our of the box with vala 0.40 that would be gorgeos.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

anthraxx commented 6 years ago

thx a lot, as always: best stuff. Thumbs

radare commented 6 years ago

👍

On 21 Mar 2018, at 12:07, Levente Polyak notifications@github.com wrote:

thx a lot, as always: best stuff. Thumbs — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.