Re: [Vala] How to compile Vala using MingW under Windows
- From: Jarosław Ciupiński <kotowate gmail com>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to compile Vala using MingW under Windows
- Date: Thu, 4 Oct 2012 18:13:58 +0200
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 <lethalman88 gmail com>
On Fri, Sep 28, 2012 at 10:19 PM, <raum no-log org> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]