Ehm... I need some help :)

I've extracted mingw base and msys.

I use packages I've compiled (check http://linbox.free.fr/vala) and
extracted them as follow :
d:\cross-compile\mingw
   libffi-3.0.11-mingw32-bin.tar.xz
   glib-2.34.0-mingw32-bin.tar.xz
   pkg-config-0.27.1-mingw32-bin.tar.xz

d:\cross-compile\vala
   vala-0.18.0-mingw32-bin.tar.xz
   libgee-0.6.5-mingw32.tar.xz
   libxml2-2.6.30-mingw32-dll.tar.xz

d:\cross-compile\msys

--------------------------------
$ mount
(...)
D:\cross-compile\mingw\lib on /usr/lib type user (binmode)
D:\cross-compile\build on /build type user (binmode)
D:\cross-compile\mingw on /mingw type user (binmode)
D:\cross-compile\msys on /usr type user (binmode,noumount)
D:\cross-compile\msys on / type user (binmode,noumount)
D:\cross-compile\vala on /vala type user (binmode)
d:\cross-compile\src on /src type user (binmode)
(...)

$ gcc --version
gcc.exe (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ valac --version
Vala 0.18.0

$ cat test.vala
using Xml;

void main() {

}

$ valac --pkg libxml-2.0 -X -llibxml2 --disable-warnings test.vala
D:\cross-compile\mingw\bin/ld.exe: cannot find -llibxml2
collect2: ld returned 1 exit status
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)

$ valac -X -L/vala/lib --pkg libxml-2.0 -X -llibxml2 --disable-warnings
test.vala
d:/cross-compile/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In
function `_mingw_CRTStartup':
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:193: undefined reference to
`__dyn_tls_init_callback'
collect2: ld returned 1 exit status
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)

And at last, I could get errors from "libxml/tree.h not found"

Do you have some advices ?

Thanks

Raum

> Well... I've compiled and installed pkg-config-0.27.1 and it seems it's
> ok...
>
> L:\>valac test.vala
>
> L:\>test
> hello world
>
> Sorry to have disturbed you for not much.. ^__^
>
> Regards
>
> Raum
>
> ps: I'll prepare some packages to download in next hours...
> glib-2.34.0-mingw32-bin.tar.xz
> libffi-3.0.11-mingw32-bin.tar.xz
> libgee-0.6.5-mingw32.tar.xz
> libxml2-2.6.30-mingw32-dll.tar.xz
> pkg-config-0.27.1-mingw32-bin.tar.xz
> vala-0.18.0-mingw32-bin.tar.xz
>
> Do you think I (we) need other things ?
>
>> Hello
>>
>> In fact, I've got a problem using Vala0.18 I compiled... I've created a
>> test file :
>> -----------------
>> void main() {
>>      stdout.printf ("hello world\r\n");
>> }
>> ----------------
>>
>> L:\>gcc --version
>> gcc (GCC) 4.6.2
>> Copyright (C) 2011 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is
>> NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.
>>
>>
>> L:\>valac --version
>> Vala 0.18.0
>>
>> L:\>set
>> (...)
>> CC=gcc
>> Path=C:\WINDOWS\system32;C:\WINDOWS;d:\cross-compile\vala-0.18.0\bin;d:\cross-compile\mingw\bin;d:\utils\;d:\utils\php\
>> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.wlua;.lexe
>> PKG_CONFIG_PATH=D:\cross-compile\vala-0.18.0\lib\pkgconfig
>> (...)
>>
>> L:\>valac test.vala
>> error: L'ex├®cution du processus fils a ├®chou├® (No
>> such file or directory)
>> error: L'ex├®cution du processus fils a ├®chou├® (No
>> such file or directory)
>> error: L'ex├®cution du processus fils a ├®chou├® (No
>> such file or directory)
>> Compilation failed: 3 error(s), 0 warning(s)
>>
>> L:>
>>
>> (==> error: Failed to execute child process (No such file or directory))
>>
>> Ehm, do you have any clue to solve this problem ?! Did I break the
>> compilator when trying to compile with Mingw ?
>>
>> Thanks
>>
>> Raum
>>
>>> Hi,
>>>
>>> Feel free to help me to improve (or correct ;-) ) this mini how-to and
>>> report if something doesn't work.
>>>
>>> Next step, I think I'll try to bundle clang... :-?
>>>
>>> Thanks
>>>
>>> Raum
>>>
>>>
>>> (...)
>>>
>>> I think I've successed to compile vala 0.18 under Windows. You could
>>> have
>>> a look to my page (tarball available for testing) :
>>> http://linbox.free.fr/vala
>>>
>>>
>>> Here it is :
>>> ----------------------------------
>>> How to compile Vala under Windows
>>> ----------------------------------
>>>
>>> # First step :
>>> c:\> mkdir vala-build
>>> c:\> cd vala-build
>>> c:\vala-build> mkdir vala
>>> c:\vala-build> mkdir vala-src
>>> c:\vala-build> mkdir mingw
>>> c:\vala-build> mkdir msys
>>> c:\vala-build> mkdir build
>>>
>>> (...)
>>> _______________________________________________
>>> 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-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to