[Vala] Packaged installation (gcc 4.6.2, vala 0.18)

2012-10-05 Thread Raum

Well, I'll provide an installation in the following directories :
d:\cross-compile\mingw (linked to /usr/local)
d:\cross-compile\msys (linked to /usr)

At the end of the process, the files will occupied 250 MB

Link to Mingw32 sourceforge : http://sourceforge.net/projects/mingw/files/

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
MSYS Installation MSYS

Download the following packages
bash-3.1.17-4-msys-1.0.16-bin
bison-2.4.2-1-msys-1.0.13-bin
coreutils-5.97-3-msys-1.0.13-bin
diffutils-2.8.7.20071206cvs-3-msys-1.0.13-bin
findutils-4.4.2-2-msys-1.0.13-bin
flex-2.5.35-2-msys-1.0.13-bin
gawk-3.1.7-2-msys-1.0.13-bin
grep-2.5.4-2-msys-1.0.13-bin
libiconv-1.13.1-2-msys-1.0.13-dll-2
libintl-0.17-2-msys-dll-8
libregex-1.20090805-2-msys-1.0.13-dll-1
libtermcap-0.20050421_1-2-msys-1.0.13-dll-0
m4-1.4.14-1-msys-1.0.13-bin
make-3.81-3-msys-1.0.13-bin
msysCORE-1.0.17-1-msys-1.0.17-bin
msysCORE-1.0.17-1-msys-1.0.17-dev
msysCORE-1.0.17-1-msys-1.0.17-ext
msysCORE-1.0.17-1-msys-1.0.17-ext
patch-2.6.1-1-msys-1.0.13-bin
perl-5.6.1-MSYS-1.0.11
sed-4.2.1-2-msys-1.0.13-bin
tar-1.23-1-msys-1.0.13-bin
termcap-0.20050421_1-2-msys-1.0.13-bin
texinfo-4.13a-2-msys-1.0.13-bin

==> decompress into d:\cross-compile\msys

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
MingW and Vala installation

Download from MingW32 :
binutils-2.22-1-mingw32-bin
gcc-c++-4.6.2-1-mingw32-bin
gcc-core-4.6.2-1-mingw32-bin
gettext-0.18.1.1-2-mingw32-bin
gettext-0.18.1.1-2-mingw32-dev
libexpat-2.0.1-1-mingw32-dll-1
libgcc-4.6.2-1-mingw32-dll-1
libgettextpo-0.18.1.1-2-mingw32-dll-0
libgmp-5.0.1-1-mingw32-dll-10
libiconv-1.14-2-mingw32-dev
libiconv-1.14-2-mingw32-dll-2
libintl-0.18.1.1-2-mingw32-dll-8
libmpc-0.8.1-1-mingw32-dll-2
libmpfr-2.4.1-1-mingw32-dll-1
libstdc++-4.6.2-1-mingw32-dll-6
libz-1.2.7-1-mingw32-dev
libz-1.2.7-1-mingw32-dll-1
mingwrt-3.20-mingw32-dev
mingwrt-3.20-mingw32-dll
pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev
w32api-3.17-2-mingw32-dev

Download libxml2 and iconv
ftp://ftp.zlatkovic.com/libxml/iconv-1.9.2.win32.zip
ftp://ftp.zlatkovic.com/libxml/libxml2-2.7.8.win32.zip

And, at last, download from my site (http://linbox.free.fr/vala)
vala-0.18.0-mingw32-bin.tar.xz (2,5 Mo)
libgee-0.6.5-mingw32.tar.xz (0,5 Mo)
libffi-3.0.11-mingw32-bin.tar.xz (61 Ko)
glib-2.34.0-mingw32-bin.tar.xz (4,1 Mo)
pkg-config-0.27.1-mingw32-bin.tar.xz (64 Ko)

(DONT USE libxml2 FROM MY SITE)

==> Decompress into d:\cross-compile\mingw

Move files from "d:\cross-compile\mingw\iconv-1.9.2.win32\" to 
"d:\cross-compile\mingw"
Move files from "d:\cross-compile\mingw\libxml2-2.7.8.win32\" to 
"d:\cross-compile\mingw"
Move files from "d:\cross-compile\mingw\mingwin32\" to 
"d:\cross-compile\mingw"


Ok, now we need to configure some MSYS files

Replace  "D:\cross-compile\msys\etc\fstab" with these lines
---
D:/cross-compile/mingw /usr/local
d:/cross-compile/src/src
d:/cross-compile/mingw/lib/mingw/lib
---


Edit "D:\cross-compile\msys\etc\profile"
Replace
---
if [ $MSYSTEM == MINGW32 ]; then
  export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
else
  export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
fi
---
by
---
export PATH="/usr/bin:/bin:/d/utils:/usr/local/bin:."
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export C_LIBRARY_PATH="/usr/include:/usr/local/include"
export CPLUS_LIBRARY_PATH="/usr/lib:/usr/local/lib"
---

Then launch msys.bat

It seems to work but with a long program, which launches, it crashed 
when I tried something... Well I still look .


If you have any information or comments, do not hesitate ... :)

Some errors and how to resolv  :
---
Probleme : (compilation glib en fait)
/bin/sh: line 19: python2.5: command not found
Solution :
export PYTHON=/d/Python2.5/python
---
Probleme :
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
Solution:
Le chemin vers PKG_CONFIG n'es tpas bon...
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"


Regards

Raum

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Binding Bug in Atk.Util.add_global_event_listener

2012-10-05 Thread Thomas Jollans
On 10/04/2012 10:02 AM, Tal Hadad wrote:
> 
> There is a bug in atk.vapi, in method:
> Atk.Util.add_global_event_listener
> The line is:
> 
> public static uint add_global_event_listener (GLib.SignalEmissionHook 
> listener, string event_type);
> 
> But there should be a CCode attribute in first parameter(listener) saying 
> "has_target=false" .
> There is no user_data aurgument. See:
> http://developer.gnome.org/atk/stable/AtkUtil.html#atk-add-global-event-listener

>From what I can see, you're right. If you want the bug to be fixed,
please report it at https://bugzilla.gnome.org/browse.cgi?product=vala
Bugs reported just on the mailing list are likely to be forgotten by the
Vala developers, who are quite busy as it is.

Thomas

> 
> Tal
> 
> 
> 
> 
> ___
> 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


Re: [Vala] How to compile Vala using MingW under Windows

2012-10-05 Thread raum
Ok I've found my PKG_CONFIG environnement variable was wrong...

# export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig'
# valac -v -g test4.vala
# test4
Hello

*\o/*

Raum

> Hello,
>
> Thanks but it's not related to "libraries declaration" under Windows but
> how I missed something when I've compiled Vala 0.18... or something
> related to PATH
>
> I think I should try to recompile and reinstall...
>
> Thanks
>
> Regards
>
> Raum
>
>> I learned that under Windows you need to provide some extra info about
>> libs
>> you're using.
>>
>> For linux I have this:
>> valac -o Game --pkg gee-1.0 --pkg gl --pkg libglfw --pkg glu --pkg
>> libxml-2.0 --pkg gio-2.0 \
>> ... (other lines, source files mostly)
>>
>> For Windows:
>> valac -o Game --pkg gee-1.0 --pkg gl --pkg libglfw --pkg glu --pkg
>> libxml-2.0 --pkg gio-2.0 \
>> -X -lglfw -X -lopengl32 -X -lgee -X -lglu32 -X -lxml2 \
>> --cc=gcc \
>> ... (other lines, source files mostly)
>>
>> I don't remember exactly why I had to specify cc, but as there I have
>> it,
>> I
>> thought to keep it here as well :)
>>
>> I have few other things that work differently on Windows and Linux (so I
>> have ifdef here and there) but that might be related to mess I have on
>> both
>> systems (I tend to update vala quite randomly, same goes for other
>> packages
>> and those are the results)
>> 2012/9/29 Luca Bruno 
>>
>>> On Fri, Sep 28, 2012 at 10:19 PM,  wrote:
>>>
>>> > Ehm... I need some help :)
>>> >
>>>
>>> Try contacting this guy:
>>> https://mail.gnome.org/archives/vala-list/2012-September/msg00073.html
>>> It looks like he managed to get something running up.
>>>
>>>
>>> > 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
>>> >
>>>
>>> That's something related to gcc if I'm not wrong. Before using valac,
>>> ensure that your gcc is working correctly.
>>>
>>> --
>>> www.debian.org - The Universal Operating System
>>>
>>> ___
>>> 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


Re: [Vala] How to compile Vala using MingW under Windows

2012-10-05 Thread raum
Hello,

Thanks but it's not related to "libraries declaration" under Windows but
how I missed something when I've compiled Vala 0.18... or something
related to PATH

I think I should try to recompile and reinstall...

Thanks

Regards

Raum

> I learned that under Windows you need to provide some extra info about
> libs
> you're using.
>
> For linux I have this:
> valac -o Game --pkg gee-1.0 --pkg gl --pkg libglfw --pkg glu --pkg
> libxml-2.0 --pkg gio-2.0 \
> ... (other lines, source files mostly)
>
> For Windows:
> valac -o Game --pkg gee-1.0 --pkg gl --pkg libglfw --pkg glu --pkg
> libxml-2.0 --pkg gio-2.0 \
> -X -lglfw -X -lopengl32 -X -lgee -X -lglu32 -X -lxml2 \
> --cc=gcc \
> ... (other lines, source files mostly)
>
> I don't remember exactly why I had to specify cc, but as there I have it,
> I
> thought to keep it here as well :)
>
> I have few other things that work differently on Windows and Linux (so I
> have ifdef here and there) but that might be related to mess I have on
> both
> systems (I tend to update vala quite randomly, same goes for other
> packages
> and those are the results)
> 2012/9/29 Luca Bruno 
>
>> On Fri, Sep 28, 2012 at 10:19 PM,  wrote:
>>
>> > Ehm... I need some help :)
>> >
>>
>> Try contacting this guy:
>> https://mail.gnome.org/archives/vala-list/2012-September/msg00073.html
>> It looks like he managed to get something running up.
>>
>>
>> > 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
>> >
>>
>> That's something related to gcc if I'm not wrong. Before using valac,
>> ensure that your gcc is working correctly.
>>
>> --
>> www.debian.org - The Universal Operating System
>>
>> ___
>> 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