Re: [Vala] Vala on Windows

2012-04-12 Thread Jarosław Ciupiński
Hi,

Try disabling vapigen compilation, ie.
./configure --disable-vapigen
(You of course need to compile from source)

Works for me, as I don't use that tool :)

And as far as I looked into the code (and as much as I remember), vapigen
uses posix threading when going through files, but I might be wrong with
that.

Jarek

2012/4/3 Luca Bruno lethalma...@gmail.com

 On Tue, Apr 3, 2012 at 9:12 AM, gerhard.gru...@documatrix.com wrote:

  Hi,
 
  I have created an application using Vala and tried to compile it on
  Windows, but the application needs Vala = 0.14.0 and Vala for Windows
  binary is just available in the version 0.12.0 - so I tried to compile it
  on my own using MinGW and mingw.sh (
  http://code.google.com/p/vala-win32/source/browse/trunk/mingw.sh?r=5) :)
 
  But after some hours I got stucked with the error, that sys/wait.h could
  not be found:
  scanner.c:34:36: schwerwiegender Fehler: sys/wait.h: No such file or
  directory
 
  I think, that this header-file is not available on windows, is it?
 
  So is it still possible to compile Vala on Windows and if it is so, how?
 

 If yo have linux, you may have more luck cross-compiling the generated C
 code using mingw under linux.

 --
 www.debian.org - The Universal Operating System

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


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


Re: [Vala] Vala on Windows

2012-04-03 Thread Luca Bruno
On Tue, Apr 3, 2012 at 9:12 AM, gerhard.gru...@documatrix.com wrote:

 Hi,

 I have created an application using Vala and tried to compile it on
 Windows, but the application needs Vala = 0.14.0 and Vala for Windows
 binary is just available in the version 0.12.0 - so I tried to compile it
 on my own using MinGW and mingw.sh (
 http://code.google.com/p/vala-win32/source/browse/trunk/mingw.sh?r=5) :)

 But after some hours I got stucked with the error, that sys/wait.h could
 not be found:
 scanner.c:34:36: schwerwiegender Fehler: sys/wait.h: No such file or
 directory

 I think, that this header-file is not available on windows, is it?

 So is it still possible to compile Vala on Windows and if it is so, how?


If yo have linux, you may have more luck cross-compiling the generated C
code using mingw under linux.

-- 
www.debian.org - The Universal Operating System
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows/Mac OS

2011-12-17 Thread Brian Duffy
Good new Jim,

Let me know if there is any way I can help you with that.

b


On Sat, Dec 17, 2011 at 1:02 PM, Jim Peters j...@uazu.net wrote:

 Brian Duffy wrote:
  If you really want to know if Vala can work effectively on Windows
  then you better try installing Vala (and Gtk) on windows and give it
  a whirl.

 It might be easier to look for apps written in Vala with
 well-supported builds for Windows.  For example there is a list of
 apps at the bottom of the page here to start with:

  http://live.gnome.org/Vala/Documentation

 For example ShotWell doesn't support Windows now, but according to
 this message, it used to support it but it was dropped for lack of
 interest (search down for Windows):

  http://blog.yorba.org/lucas/2011/01/shotwell-081-released.html


 Also, writing the base tools of a language (compiler/etc) can be the
 work of one or two people, but writing a good IDE is usually much more
 work and requires a team.  I'm hacking with Eclipse JDT right now, and
 seeing the Eclipse source code I realise that the investment that went
 into that was incredible -- just so you can have quick fixes and easy
 refactoring.  They attempted the impossible and achieved it, and now
 everyone takes it for granted.

 (My interest right now is writing an editor that works off the AST not
 the source code.  This means that I could have the editor show any
 syntax I like, and still reformat it back to conventional syntax for
 saving (and with some further tweaking, minimise the diff).  Java is a
 good start because Eclipse have already done a lot of the work for me,
 and because I'm going to have to be coding in Java soon for a contract
 anyway.  One day I wonder whether it would be possible to specify a
 language that is saved as an AST dump, and which displays to each user
 according to their syntax preferences, e.g. Python-like for one
 person, C-braces for another, functional style for another.  This
 would also make it easier for refactoring tools.  Worth experimenting
 with.)

 Jim

 --
  Jim Peters  (_)/=\~/_(_) j...@uazu.net
  (_)  /=\  ~/_  (_)
  Uazú  (_)/=\~/_(_)http://
  in Peru(_)  /=\  ~/_  (_)uazu.net




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


Re: [Vala] Vala on Windows

2008-12-02 Thread Frederik

Matías De la Puente wrote:

Hi

I have try this and it work without problems.
Another think to add to valac is -X -mwindows because when i use gtk 
and execute my app opens a terminal and a window.


Thanks for the tip, but it doesn't work for me:

 valac --pkg gtk+-2.0 -X -mwindows sample.vala

Compilation fails with:

  ld.exe: cannot find -lcomdlg32

Am I missing something? File '\windows\system32\comdlg32.dll' does
exist.


@gege2061/Nicolas: Many thanks for your Windows Vala package. How about
including libgee?


Regards,

Frederik
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-12-02 Thread gege2061
2008/12/2 Frederik [EMAIL PROTECTED]

 Matías De la Puente wrote:

 Hi

 I have try this and it work without problems.
 Another think to add to valac is -X -mwindows because when i use gtk and
 execute my app opens a terminal and a window.


 Thanks for the tip, but it doesn't work for me:

  valac --pkg gtk+-2.0 -X -mwindows sample.vala

 Compilation fails with:

  ld.exe: cannot find -lcomdlg32

 Am I missing something? File '\windows\system32\comdlg32.dll' does
 exist.


You need install the win23 API package:
http://sourceforge.net/project/showfiles.php?group_id=2435package_id=11550


 @gege2061/Nicolas: Many thanks for your Windows Vala package. How about
 including libgee?


I don't test the libgee, but it's included in vala. I'll update the
installer with valac 0.5.2 and test.

-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-12-02 Thread Frederik

gege2061 wrote:
You need install the win23 API package: 
http://sourceforge.net/project/showfiles.php?group_id=2435package_id=11550 


Thanks, that helped!


Regards,

Frederik
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-12-02 Thread gege2061
Vala 0.5.2 for Windows:
http://code.google.com/p/valide/downloads/detail?name=vala-0.5.2.exe

I have tested libgee, it work fine ;) (add vala-1.0 package)
-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-19 Thread Kaan Yamanyar
Hi all,

Does anyone know why I receive this error and how to solve that?


C:\vala-0.5.1valac test.vala
error: Failed to execute child process (No such file or directory)
Compilation failed: 1 error(s), 0 warning(s)

Thanks,
Kaan

2008/11/18 gege2061 [EMAIL PROTECTED]

 Hi,

 I have update the installer :

 * Using nsis for create the installer
 * Separate components : vala (fixed), mingw and GTK+
 * No reboot needed

 ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe (7.87 Mo)

 2008/11/10 HB [EMAIL PROTECTED]

 On 2008-11-10 17:17, Vlad Grecescu wrote:

  On Mon, Nov 10, 2008 at 4:57 PM, HB [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] wrote:

Hello.
I have installed vala 0.5.1
(ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe).
When I try to compile HelloGtk program ;) I get this:
D:\vala-0.5.1valac --pkg gtk+-2.0 --cc=gcc -o test Test.vala
gcc: installation problem, cannot exec `cc1': No such file or
directory
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)

My path variable is correct but cc1 is not present.
What I am doing wrong ?

I apologize for my English.


 I think you accidentally MinGW  MSYS on a FAT partition. Does running
 gcc alone works? If not, it's because some hard link could not be created to
 cc1.exe

 The solution I found (If I remember correctly) was to search for cc1.exe,
 and add it to MSYS's .profile PATH
 PATH=$PATH:/path/to/cc1/

 Regards,
 Vlad

 I fixed it. Nothing with PATH and FAT. It's just broken file (archive).
 I downloaded it again and now (after little battle with vista (stfu))
 works fine.
 I´m sorry for wasting your time. I thought it was something more serious.

 Greetings

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




 --
 Nicolas Joseph

 Responsable de la rubrique GTK+ de developpez.com /
 In charge of the GTK+ section on developpez.com

 http://nicolasj.developpez.com

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


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


Re: [Vala] Vala on Windows

2008-11-19 Thread gege2061
It is necessary to add --cc=gcc option, or create CC environment variable.

I will update the setup for create this variable, but I have a serious
problem with execution of pkg-config (in msdos console, not in msys):

E:\msys\home\gsjz8662\testvalac --pkg=gtk+-2.0 main.vala
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
error: L'exécution du processus fils a échoué (Invalid argument)
Compilation failed: 11 error(s), 0 warning(s)

2008/11/19 Kaan Yamanyar [EMAIL PROTECTED]

 Hi all,

 Does anyone know why I receive this error and how to solve that?


 C:\vala-0.5.1valac test.vala
 error: Failed to execute child process (No such file or directory)
 Compilation failed: 1 error(s), 0 warning(s)

 Thanks,
 Kaan

 2008/11/18 gege2061 [EMAIL PROTECTED]

 Hi,

 I have update the installer :

 * Using nsis for create the installer
 * Separate components : vala (fixed), mingw and GTK+
 * No reboot needed

 ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe (7.87 Mo)

 2008/11/10 HB [EMAIL PROTECTED]

 On 2008-11-10 17:17, Vlad Grecescu wrote:

  On Mon, Nov 10, 2008 at 4:57 PM, HB [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] wrote:

Hello.
I have installed vala 0.5.1
(ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe).
When I try to compile HelloGtk program ;) I get this:
D:\vala-0.5.1valac --pkg gtk+-2.0 --cc=gcc -o test Test.vala
gcc: installation problem, cannot exec `cc1': No such file or
directory
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)

My path variable is correct but cc1 is not present.
What I am doing wrong ?

I apologize for my English.


 I think you accidentally MinGW  MSYS on a FAT partition. Does running
 gcc alone works? If not, it's because some hard link could not be created 
 to
 cc1.exe

 The solution I found (If I remember correctly) was to search for
 cc1.exe, and add it to MSYS's .profile PATH
 PATH=$PATH:/path/to/cc1/

 Regards,
 Vlad

 I fixed it. Nothing with PATH and FAT. It's just broken file (archive).
 I downloaded it again and now (after little battle with vista (stfu))
 works fine.
 I´m sorry for wasting your time. I thought it was something more serious.

 Greetings

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




 --
 Nicolas Joseph

 Responsable de la rubrique GTK+ de developpez.com /
 In charge of the GTK+ section on developpez.com

 http://nicolasj.developpez.com

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





-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-10 Thread Vlad Grecescu
On Mon, Nov 10, 2008 at 4:57 PM, HB [EMAIL PROTECTED] wrote:

 Hello.
 I have installed vala 0.5.1 (
 ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe).
 When I try to compile HelloGtk program ;) I get this:
 D:\vala-0.5.1valac --pkg gtk+-2.0 --cc=gcc -o test Test.vala
 gcc: installation problem, cannot exec `cc1': No such file or directory
 error: cc exited with status 1
 Compilation failed: 1 error(s), 0 warning(s)

 My path variable is correct but cc1 is not present.
 What I am doing wrong ?

 I apologize for my English.


I think you accidentally MinGW  MSYS on a FAT partition. Does running gcc
alone works? If not, it's because some hard link could not be created to
cc1.exe

The solution I found (If I remember correctly) was to search for cc1.exe,
and add it to MSYS's .profile PATH
PATH=$PATH:/path/to/cc1/

Regards,
Vlad
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-10 Thread HB

On 2008-11-10 17:17, Vlad Grecescu wrote:
On Mon, Nov 10, 2008 at 4:57 PM, HB [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hello.
I have installed vala 0.5.1
(ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.exe).
When I try to compile HelloGtk program ;) I get this:
D:\vala-0.5.1valac --pkg gtk+-2.0 --cc=gcc -o test Test.vala
gcc: installation problem, cannot exec `cc1': No such file or
directory
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)

My path variable is correct but cc1 is not present.
What I am doing wrong ?

I apologize for my English.


I think you accidentally MinGW  MSYS on a FAT partition. Does running 
gcc alone works? If not, it's because some hard link could not be 
created to cc1.exe


The solution I found (If I remember correctly) was to search for 
cc1.exe, and add it to MSYS's .profile PATH

PATH=$PATH:/path/to/cc1/

Regards,
Vlad

I fixed it. Nothing with PATH and FAT. It's just broken file (archive).
I downloaded it again and now (after little battle with vista (stfu)) 
works fine.

I´m sorry for wasting your time. I thought it was something more serious.

Greetings
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-07 Thread Matías De la Puente
2008/11/6 Alexei Vinidiktov [EMAIL PROTECTED]

 2008/11/6 Matías De la Puente [EMAIL PROTECTED]:
  Hi
 
  I have try this and it work without problems.
  Another think to add to valac is -X -mwindows because when i use gtk
 and
  execute my app opens a terminal and a window.

 I've tried adding -X -mwindows to valac to compile a simple sample
 program that uses GTK,
 but I'm getting an error that says: c:\vala-0.5.1\bin\ld.exe: cannot
 find -lcomdlg32.


The problem is that you have to download and unzip the file
w32api-3.11.tar.gz (www.mingw.org) in the vala folder. It work for me
because i intalled before mingw. That's why i tell gege to add vala in a
separate zip file.

I installed mingw downloading MinGW-5.1.4.exe (www.mingw.org) that
automatically download all the zip files and unzip the files in a folder
(This way is simple, but you have to add to the path environment variable
the folder that you installed mingw)

Matias

PS: Remember allways to respond to all the people in the mailling list,
because this can help other people
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-07 Thread Alberto Ruiz
2008/11/7 Andrew Flegg [EMAIL PROTECTED]:
 On Fri, Nov 7, 2008 at 3:09 PM, Alberto Ruiz [EMAIL PROTECTED] wrote:

 [snip]

 What about a plugin for Netbeans or Eclipse C/C++? I can't see too
 much of a point of installing Gtk and Vala without an environment to
 use it.

 Eclipse plugin is at:

https://launchpad.net/valable

 I've not tested it yet on Windows; the incremental build probably
 won't work (relies on having a C compiler on the path). Would be happy
 to develop it on Windows  Linux if there was a nice, easy Vala
 install for Windows.

Would be possible to embed Vala+Gtk+ on the plugin distribution itself?


 Cheers,

 Andrew

 --
 Andrew Flegg -- mailto:[EMAIL PROTECTED]  |  http://www.bleb.org/
 maemo.org Community Council member




-- 
Un saludo,
Alberto Ruiz
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-11-07 Thread Matías De la Puente
2008/11/6 gege2061 [EMAIL PROTECTED]

 2008/11/6 Matías De la Puente [EMAIL PROTECTED]


 Could be great to have this packege only with vala in a zip file, because
 mingw32, gtk for windows and others came in separate zip file. so when i
 have to update a version just download the zip file and unzip it in a
 folder.


 I have separate vala in zip file:
 ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.zip (2 Mo)

 But files should be installed in C:\Documents and Settings\All
 Users\Application Data\vala\vapi\ directory. Is it better to use an
 installer?


You could create an installer with vala, gtk, pkgconfig and all the files
that vala need to work except mingw. Then the installer could detect or
select the folder of the mingw installation and add vala in that folder.

I tell this because in a previus mail to alexei i notice that is missing the
w32api-3.11.tar.gz file in you vala installation, that's why don't work the
-X -mwindows option.

I think that the package to windows of vala should be added to the mingw
installation of course with gtk, pkgconfig, etc.  because (in my case) i
have two installation of mingw i don't want this.

Another possibility is to have diferent installers:
+ A complete one with vala, gtk, mingw (with the w32api file) and all the
files. This option is ideal to the beginners
+ A installer with all except for mingw. This option is great for me! ;)
+ A intaller just with vala (no gtk, no pkgconfig, etc). For those who have
mingw and gtk installed or for an update of vala

The package idea is great and I congratulate to you for this work! :)
Matias



 --
 Nicolas Joseph

 Responsable de la rubrique GTK+ de developpez.com /
 In charge of the GTK+ section on developpez.com

 http://nicolasj.developpez.com

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


Re: [Vala] Vala on Windows

2008-11-06 Thread gege2061
2008/11/6 Matías De la Puente [EMAIL PROTECTED]


 Could be great to have this packege only with vala in a zip file, because
 mingw32, gtk for windows and others came in separate zip file. so when i
 have to update a version just download the zip file and unzip it in a
 folder.


I have separate vala in zip file:
ftp://ftp-developpez.com/gtk/vala/vala-0.5.1.zip (2 Mo)

But files should be installed in C:\Documents and Settings\All
Users\Application Data\vala\vapi\ directory. Is it better to use an
installer?

-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-03-05 Thread gege2061
2008/3/4, Vlad Grecescu [EMAIL PROTECTED]:
  One thought, though: you're using the cygwin deliverables. Gtk+ has
  cygwin-free binaries too, available from http://www.gtk.org
  (I myself compiled all this time vala, but with mingw)

It's next step (I should install pkg-config and configure it).

2008/3/4, Vlad Grecescu [EMAIL PROTECTED]:
  I suppose binaries will soon appear for vala on
  ftp://ftp.gnome.org/pub/gnome/binaries/win32/ (or someone has to create
  them ?)

I think, if Vala team is ok.

2008/3/4, Vlad Grecescu [EMAIL PROTECTED]:
  The idea is that, when you talk about development files, you need the
  lib folder of the dependencies too, their pkg-config files etc. etc.
  (On the Gtk+ site, these are the Dev packages). I tried to set up
  instructions too, here
  http://code.google.com/p/gtkaml/wiki/InstallOnWindows)

Of course, It should be clarified on Vala wiki, when package will be published

2008/3/4, Vlad Grecescu [EMAIL PROTECTED]:
 One bug: you really meant C:\Documents and Settings\All
 Users\Application Data\ didn't you?
 I have my Docs'n'settings somewhere else;)

Fixed.

 Super! Code::Blocks has gdb integration right?

Yes

-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-03-04 Thread gege2061
It's works fine :)

I've create inno setup installer :
ftp://ftp-developpez.com/gtk/vala/vala-0.1.7.exe
And developpements files : ftp://ftp-developpez.com/gtk/vala/vala-0.1.7-dev.zip

For your interessement, inno setup config file :
ftp://ftp-developpez.com/gtk/vala/vala.iss

vapi files are installed in C:\Documents and Settings\All
Users\Application Data (This requires does root privileges?)

I test to integrate Vala language in Code::Blocks IDE.

Have you got logo for Vala ? And icon for vala-gen-project program ?
Or an idea for make it ?

2008/3/2, Jürg Billeter [EMAIL PROTECTED]:
 On Mon, 2008-02-04 at 23:04 +0200, Vlad Grecescu wrote:
   Sorry, I misinterpreted the g_get_system_data_dirs () documentation.
   It actually returns an array of folders (Application Data is among
   them) but the key to vala's problem on win32 is still here:
Then the share subfolder in the installation folder for the
   package containing the DLL that calls this function, if it can be
   determined.
   ...
The installation folders above are determined by looking up the
   folder where the module (DLL or EXE) in question is located. If the
   folder's name is bin, its parent is used, otherwise the folder
   itself.
  
   I think is _exactly_ what's intended.


 Yes, that's how it should work. I've fixed this in r1083 and another
  Windows issue in r1082. Testing welcome.

  Jürg



-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com

http://nicolasj.developpez.com
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-03-04 Thread Jürg Billeter
On Tue, 2008-03-04 at 12:32 +0200, Vlad Grecescu wrote:
 I worked around the issue (patch attached) but I suppose a bug should
 be filed for the compiler - I just don't know what would be the
 desired behavior (issue an error or compile gracefully)?

Thanks, I've committed it to SVN. The compiler should report an error
when there are two local variables with the same name and overlapping
scope.

Jürg

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


Re: [Vala] Vala on Windows

2008-03-02 Thread Jürg Billeter
On Mon, 2008-02-04 at 23:04 +0200, Vlad Grecescu wrote:
 Sorry, I misinterpreted the g_get_system_data_dirs () documentation.
 It actually returns an array of folders (Application Data is among
 them) but the key to vala's problem on win32 is still here:
  Then the share subfolder in the installation folder for the
 package containing the DLL that calls this function, if it can be
 determined.
 ...
  The installation folders above are determined by looking up the
 folder where the module (DLL or EXE) in question is located. If the
 folder's name is bin, its parent is used, otherwise the folder
 itself.
 
 I think is _exactly_ what's intended.

Yes, that's how it should work. I've fixed this in r1083 and another
Windows issue in r1082. Testing welcome.

Jürg

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


Re: [Vala] Vala on Windows

2008-02-04 Thread Vlad Grecescu
On Feb 4, 2008 10:30 PM, Daniel Svensson [EMAIL PROTECTED] wrote:
 On Feb 4, 2008 5:24 PM, Vlad [EMAIL PROTECTED] wrote:
  This way you can install the .vapi files in Application Data, on windows.

 Is Application Data really a place to store static global data? Isn't
 that the place where applications store data that gets created by the
 application, and is local to the user? vapi-files are system-wide, so
 shouldn't they be placed in c:\program files\vala\vapi\*? There is an
 environment for finding out where c:\program files is (localized in
 non-english versions).

 --
 Daniel Svensson


Sorry, I misinterpreted the g_get_system_data_dirs () documentation.
It actually returns an array of folders (Application Data is among
them) but the key to vala's problem on win32 is still here:
 Then the share subfolder in the installation folder for the
package containing the DLL that calls this function, if it can be
determined.
...
 The installation folders above are determined by looking up the
folder where the module (DLL or EXE) in question is located. If the
folder's name is bin, its parent is used, otherwise the folder
itself.

I think is _exactly_ what's intended.

Vlad
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala on Windows

2008-02-04 Thread Daniel Svensson
On Feb 4, 2008 5:24 PM, Vlad [EMAIL PROTECTED] wrote:
 This way you can install the .vapi files in Application Data, on windows.

Is Application Data really a place to store static global data? Isn't
that the place where applications store data that gets created by the
application, and is local to the user? vapi-files are system-wide, so
shouldn't they be placed in c:\program files\vala\vapi\*? There is an
environment for finding out where c:\program files is (localized in
non-english versions).

-- 
Daniel Svensson
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list