I installed Geany on Windows but I cannot compile anything. I get the following error: "06:48:32: Process failed (Failed to execute helper program (No such file or directory))"
I ran Geany -d from the command line, but there isn't any difference, and the error message is almost the same:" "g_spawn_async_with_pipes() failed: Failed to execute helper program (No such file or directory)"
Then I found out that Geany also needs a compiler (well, how was I supposed to know that? When using Visual Studio I don't need to install any compilers).
In any case I installed MinGW, and i set the path to the g++.exe in Geany, and still the same error. This was the path to the compiler: C:\MinGW\bin\g++ -Wall -c "%f"
I also installed cygwin32, and set the path to its g++: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\g++ -Wall -c "%f" but again the exact same error.
I don't understand why is it so complicated to get to compile a simple "hello world" program.
If anyone has any idea, I would really appreciate it.
On Thu, 13 Mar 2008 08:01:22 -0600, "Alexandru Guzu" alexguzu@gmail.com wrote:
Hi,
I installed Geany on Windows but I cannot compile anything. I get the following error: "06:48:32: Process failed (Failed to execute helper program (No such file or directory))"
I ran Geany -d from the command line, but there isn't any difference, and the error message is almost the same:" "g_spawn_async_with_pipes() failed: Failed to execute helper program (No such file or directory)"
Then I found out that Geany also needs a compiler (well, how was I supposed to know that? When using Visual Studio I don't need to install any compilers).
But when using VS you need to pay lots of money to a company in Redmond. When using Geany you don't have to pay anyone.
In any case I installed MinGW, and i set the path to the g++.exe in Geany, and still the same error. This was the path to the compiler: C:\MinGW\bin\g++ -Wall -c "%f"
Assuming C:\MinGW\bin is the correct path, the g++ binary is probably called "g++.exe", so use this one: C:\MinGW\bin\g++.exe -Wall -c "%f"
I also installed cygwin32, and set the path to its g++: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\g++ -Wall -c "%f" but again the exact same error.
Same as above, you should add the ".exe" extension. Furthermore, I'm not sure whether you can use the cygwin compiler outside of cygwin. As far as I know, cygwin is an environment not just a program. The included tools are designed to work inside this environment. It might work calling it from Geany but I wouldn't be surprised if it doesn't.
If all other things fail, you could compile and run Geany inside cygwin, then compiling from inside Geany should work out-of-the-box because when Geany is run inside cygwin it is almost as it would run natively on Linux.
I don't understand why is it so complicated to get to compile a simple "hello world" program.
Once you got the correct paths, it works mostly. But please notice, main development of Geany happens on Linux, Windows isn't our favourite operating system and so its support could be better. Anyway, you could add the path "C:\MinGW\bin" to $path% environment variable(can be set in the control panel, don't ask me where exactly), then you can use g++.exe -Wall -c "%f" and it will work.
Late note: the whole build support(compile, link, run) on Windows is not yet very stable and not well tested. So expect problems, but if you report those, we can work on this.
Regards, Enrico
Sorry for not mentioning, but I actually already tried the versions with the .exe included, and there was no difference. Also I set new environment variable $path%, and I gave it the path to the g++.exe, but again no help.
In my case, I also use linux for al the development, but I would like to be able to write code on Windows, and at least check if it would compile. I know that microsoft has a free version, something like "Visual Studia 2005 Express edition" which i have use in the past, but it's too big for what I need.
As far as executing Geany in the cygwin environment.. I suppose I have to compile the file using the command line, separately from Geany. And even the cygwin minght not be "complete" in the sense that it may require another piece of software, and so on. I don't really like fiddling with such software. When I was working in java, I used Eclipse, and i just had to install some java stuff, but I knew exactly what to install. Now i don't know what compiler works "out of the box" with Geany on Windows.
Probably it's not a good idea to use Geany on Windows after all. Has anyone actually been able to compile with Geany under Windows, and if so, what are the steps?
regards.
On 3/13/08, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 13 Mar 2008 08:01:22 -0600, "Alexandru Guzu" alexguzu@gmail.com wrote:
Hi,
I installed Geany on Windows but I cannot compile anything. I get the following error: "06:48:32: Process failed (Failed to execute helper program (No such
file or
directory))"
I ran Geany -d from the command line, but there isn't any difference,
and
the error message is almost the same:" "g_spawn_async_with_pipes() failed: Failed to execute helper program (No such file or directory)"
Then I found out that Geany also needs a compiler (well, how was I
supposed
to know that? When using Visual Studio I don't need to install any compilers).
But when using VS you need to pay lots of money to a company in Redmond. When using Geany you don't have to pay anyone.
In any case I installed MinGW, and i set the path to the g++.exe in
Geany,
and still the same error. This was the path to the compiler: C:\MinGW\bin\g++ -Wall -c "%f"
Assuming C:\MinGW\bin is the correct path, the g++ binary is probably called "g++.exe", so use this one: C:\MinGW\bin\g++.exe -Wall -c "%f"
I also installed cygwin32, and set the path to its g++: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\g++ -Wall -c "%f" but again the exact same error.
Same as above, you should add the ".exe" extension. Furthermore, I'm not sure whether you can use the cygwin compiler outside of cygwin. As far as I know, cygwin is an environment not just a program. The included tools are designed to work inside this environment. It might work calling it from Geany but I wouldn't be surprised if it doesn't.
If all other things fail, you could compile and run Geany inside cygwin, then compiling from inside Geany should work out-of-the-box because when Geany is run inside cygwin it is almost as it would run natively on Linux.
I don't understand why is it so complicated to get to compile a simple "hello world" program.
Once you got the correct paths, it works mostly. But please notice, main development of Geany happens on Linux, Windows isn't our favourite operating system and so its support could be better. Anyway, you could add the path "C:\MinGW\bin" to $path% environment variable(can be set in the control panel, don't ask me where exactly), then you can use g++.exe -Wall -c "%f" and it will work.
Late note: the whole build support(compile, link, run) on Windows is not yet very stable and not well tested. So expect problems, but if you report those, we can work on this.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 13 Mar 2008 12:50:06 -0600 "Alexandru Guzu" alexguzu@gmail.com wrote:
[...]
As far as executing Geany in the cygwin environment.. I suppose I have to compile the file using the command line, separately from Geany. And even the cygwin minght not be "complete" in the sense that it may require another piece of software, and so on. I don't really
I haven't used cygwin myself, but it is quite a big suite of software. Personally I just use the MinGW tools. Also I should warn you that compiling Geany on Windows is quite involved, and shouldn't be necessary.
like fiddling with such software. When I was working in java, I used Eclipse, and i just had to install some java stuff, but I knew exactly what to install. Now i don't know what compiler works "out of the box" with Geany on Windows.
The MinGW gcc compiler should work, I use it myself.
You may already have done this, but just in case you downloaded only gcc, use the 'Automated MinGW Installer' program: http://sourceforge.net/project/showfiles.php?group_id=2435
Also you should probably read any documentation for MinGW.
I understand it can be a barrier having to install tools yourself, but Geany is meant to be a lightweight IDE, and many people use Geany who don't want to do any C programming. So it doesn't make sense for us to offer a bundled download. Of course, someone could make a MinGW-Geany bundle if they want to, under the terms of the GNU GPL.
Probably it's not a good idea to use Geany on Windows after all. Has anyone actually been able to compile with Geany under Windows, and if so, what are the steps?
Besides what I mentioned earlier, you should check that you can compile with gcc from the command prompt (usually cmd.exe). If this is the case, it's possible there is a bug with Geany's build support on Windows.
Another thing to try is writing a Makefile and using the Build->Make command, after configuring the make tool in preferences. (Most useful projects should use makefiles anyway.)
Just to be clear - both gcc and make work fine for me on Windows 2000 with a recent version of Geany (read 0.13).
Regards, Nick
On Fri, 14 Mar 2008 12:23:51 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
You may already have done this, but just in case you downloaded only gcc, use the 'Automated MinGW Installer' program: http://sourceforge.net/project/showfiles.php?group_id=2435
Also you should probably read any documentation for MinGW.
I understand it can be a barrier having to install tools yourself, but Geany is meant to be a lightweight IDE, and many people use Geany who don't want to do any C programming.
I just added a note on the website about installing build tools on Windows, it also mentions installing Grep for Find in Files: http://geany.uvena.de/Support/RunningOnWindows
Regards, Nick
Wow, this was quick. Thanks for being ahead with my suggestion. At least i feel happy that my problem was not ignored, and maybe others will not have this problem since you put the link to that MiniGW (which I never heard of before :)
On 3/14/08, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 14 Mar 2008 12:23:51 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
You may already have done this, but just in case you downloaded only gcc, use the 'Automated MinGW Installer' program: http://sourceforge.net/project/showfiles.php?group_id=2435
Also you should probably read any documentation for MinGW.
I understand it can be a barrier having to install tools yourself, but Geany is meant to be a lightweight IDE, and many people use Geany who don't want to do any C programming.
I just added a note on the website about installing build tools on Windows, it also mentions installing Grep for Find in Files: http://geany.uvena.de/Support/RunningOnWindows
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Hey guys,
Guess what... I worked!!! Somehow I think I installed the same thing, but with the link you gave me, I had the option to choose which compilers to install. After choosing a C compiler (even thought I wrote "C++" code) it worked. Well there are some problems with my code now, but at least I get errors pointing at specific lines instead of just getting "Cannot execute child process".
Anyway, thanks guys! Also I think you should mention about this MinGW on your site, so others can benefit from my experience without too much trouble.
Basically what i had to install was: -Geany -GTK+ Runtime Environment (not sure if this was actually necessary) -Selected compilers from the link you gave me via the Automated MinGW installer (5.1.3) Also i had to set the path to the g++.exe like this: C:\MinGW\bin\g++ -Wall -c "%f" This path also worked: C:\MinGW\bin\g++.exe -Wall -c "%f"
Again thanks for your help.
Regards,
Alex.
On 3/14/08, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Thu, 13 Mar 2008 12:50:06 -0600 "Alexandru Guzu" alexguzu@gmail.com wrote:
[...]
As far as executing Geany in the cygwin environment.. I suppose I have to compile the file using the command line, separately from Geany. And even the cygwin minght not be "complete" in the sense that it may require another piece of software, and so on. I don't really
I haven't used cygwin myself, but it is quite a big suite of software. Personally I just use the MinGW tools. Also I should warn you that compiling Geany on Windows is quite involved, and shouldn't be necessary.
like fiddling with such software. When I was working in java, I used Eclipse, and i just had to install some java stuff, but I knew exactly what to install. Now i don't know what compiler works "out of the box" with Geany on Windows.
The MinGW gcc compiler should work, I use it myself.
You may already have done this, but just in case you downloaded only gcc, use the 'Automated MinGW Installer' program: http://sourceforge.net/project/showfiles.php?group_id=2435
Also you should probably read any documentation for MinGW.
I understand it can be a barrier having to install tools yourself, but Geany is meant to be a lightweight IDE, and many people use Geany who don't want to do any C programming. So it doesn't make sense for us to offer a bundled download. Of course, someone could make a MinGW-Geany bundle if they want to, under the terms of the GNU GPL.
Probably it's not a good idea to use Geany on Windows after all. Has anyone actually been able to compile with Geany under Windows, and if so, what are the steps?
Besides what I mentioned earlier, you should check that you can compile with gcc from the command prompt (usually cmd.exe). If this is the case, it's possible there is a bug with Geany's build support on Windows.
Another thing to try is writing a Makefile and using the Build->Make command, after configuring the make tool in preferences. (Most useful projects should use makefiles anyway.)
Just to be clear - both gcc and make work fine for me on Windows 2000 with a recent version of Geany (read 0.13).
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 14 Mar 2008 06:53:50 -0600 "Alexandru Guzu" alexguzu@gmail.com wrote:
Hey guys,
Guess what... I worked!!!
Great ;-)
Somehow I think I installed the same thing, but with the link you gave me, I had the option to choose which compilers to install. After choosing a C compiler (even thought I wrote "C++" code) it worked.
This is probably because g++ requires gcc, which isn't just a C compiler but a compiler backend as well. I hadn't thought about that, I always just install gcc anyway.
...
Basically what i had to install was: -Geany -GTK+ Runtime Environment (not sure if this was actually necessary)
It depends on which installer you used for Geany, but no harm reinstalling one.
-Selected compilers from the link you gave me via the Automated MinGW installer (5.1.3) Also i had to set the path to the g++.exe like this: C:\MinGW\bin\g++ -Wall -c "%f" This path also worked: C:\MinGW\bin\g++.exe -Wall -c "%f"
Thanks for this information, good luck with Windows coding.
Regards, Nick