Re: Hello
- Original Message - From: Christopher Faylor [EMAIL PROTECTED] Subject: Re: Hello Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. Thanks Christopher, When I first installed, I left everything set at 'Default'. Now I've re-run the setup program and I navigated to that screen with X11 at the bottom. The categories all have a little + sign and if I click it, they expand and give various sub-options. But if I click the + sign for 'X11' there are no sub-options. The only thing I can do with the X11 branch is change it from 'Default' to 'Install'. However, that makes no difference to the installed file count. This makes me suspect that X11 is probably already installed. Is there a way to check? Thanks, John - Original Message - From: Christopher Faylor [EMAIL PROTECTED] To: cygwin-xfree@cygwin.com Sent: 17 August 2008 18:34 Subject: Re: Hello On Sun, Aug 17, 2008 at 06:27:05PM -, John Emmas wrote: Hi - I just installed Cygwin today for the first time and I'm trying to find out if any kind of X server got installed. When I click on the Cygwin desktop icon (I'm running it under Windows XP) it opens a DOS type window and I can search around my various folders etc. I've tried looking for things like 'xwin' or 'startx' and stuff like that but I can't find anything. Is there a way to find out if X got installed? If you didn't specify that X should be installed then X was not installed. Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Hello
Hi John, I suppose you are trying an install from localdirectory. Because you didn't download the X11-packages (because you used only the default-option only defaultz packages were downloaded). Why not reading the Installation-Howo? http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html Marco John Emmas schrieb: - Original Message - From: Christopher Faylor [EMAIL PROTECTED] Subject: Re: Hello Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. Thanks Christopher, When I first installed, I left everything set at 'Default'. Now I've re-run the setup program and I navigated to that screen with X11 at the bottom. The categories all have a little + sign and if I click it, they expand and give various sub-options. But if I click the + sign for 'X11' there are no sub-options. The only thing I can do with the X11 branch is change it from 'Default' to 'Install'. However, that makes no difference to the installed file count. This makes me suspect that X11 is probably already installed. Is there a way to check? Thanks, John - Original Message - From: Christopher Faylor [EMAIL PROTECTED] To: cygwin-xfree@cygwin.com Sent: 17 August 2008 18:34 Subject: Re: Hello On Sun, Aug 17, 2008 at 06:27:05PM -, John Emmas wrote: Hi - I just installed Cygwin today for the first time and I'm trying to find out if any kind of X server got installed. When I click on the Cygwin desktop icon (I'm running it under Windows XP) it opens a DOS type window and I can search around my various folders etc. I've tried looking for things like 'xwin' or 'startx' and stuff like that but I can't find anything. Is there a way to find out if X got installed? If you didn't specify that X should be installed then X was not installed. Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Hello
Thanks Marco, you were absolutely right. I've now re-installed following those instructions and a lot more things are getting installed. It looks like this will be a lengthy process so in the meantime, can I ask another newbie question please...? At the moment, I'm starting Cygwin by using its desktop icon, This brings up a DOS window and (I'm assuming) that from within the DOS window I'll need to type commands - e.g. to start X and to run any program that I eventually want to run. Is that the normal procedure - or will I eventually get to the stage where I can launch an app directly from a desktop icon and everything else will happen automatically? John - Original Message - From: Marco Lechner [EMAIL PROTECTED] To: cygwin-xfree@cygwin.com Sent: 18 August 2008 07:52 Subject: Re: Hello Hi John, I suppose you are trying an install from localdirectory. Because you didn't download the X11-packages (because you used only the default-option only defaultz packages were downloaded). Why not reading the Installation-Howo? http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html Marco John Emmas schrieb: - Original Message - From: Christopher Faylor [EMAIL PROTECTED] Subject: Re: Hello Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. Thanks Christopher, When I first installed, I left everything set at 'Default'. Now I've re-run the setup program and I navigated to that screen with X11 at the bottom. The categories all have a little + sign and if I click it, they expand and give various sub-options. But if I click the + sign for 'X11' there are no sub-options. The only thing I can do with the X11 branch is change it from 'Default' to 'Install'. However, that makes no difference to the installed file count. This makes me suspect that X11 is probably already installed. Is there a way to check? Thanks, John - Original Message - From: Christopher Faylor [EMAIL PROTECTED] To: cygwin-xfree@cygwin.com Sent: 17 August 2008 18:34 Subject: Re: Hello On Sun, Aug 17, 2008 at 06:27:05PM -, John Emmas wrote: Hi - I just installed Cygwin today for the first time and I'm trying to find out if any kind of X server got installed. When I click on the Cygwin desktop icon (I'm running it under Windows XP) it opens a DOS type window and I can search around my various folders etc. I've tried looking for things like 'xwin' or 'startx' and stuff like that but I can't find anything. Is there a way to find out if X got installed? If you didn't specify that X should be installed then X was not installed. Rerun http://cygwin.com/setup.exe, keep hitting Next, and when it gets to the Select Packages screen, maximimize the screen and you'll see an X11 category on the bottom. You can either install everything by clicking once on the Default next to the X11 or you can click on the plus to see the available packages and install the packages individually. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
ioctl in cygwin
Hi, Can anyone tell me if ioctl works the same like linux or not? If they work differently, how to do the ioctl call in cygwin environment? Thanks. Lihong Chen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Running a simple GUI app
Hi there, After installing Cygwin (under WinXP) I've got to the stage of compiling a very simple Hello World app which just displays an empty GTK dialog with the title Hello World. To run the app I (currently) have to start Cygwin (using its desktop icon), type startx into the DOS terminal (which opens a second terminal window), navigate to the folder containing my executable and finally type ./HelloWorld. Obviously this is all a bit convoluted. Is there a simpler way to launch my app - for example:- a) Double clicking on an icon, or b) Issuing some command (from a DOS terminal) that would launch the app - but starting Cygwin and X invisibly. Thanks, John -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: ioctl in cygwin
Lihong Chen wrote: Hi, Can anyone tell me if ioctl works the same like linux or not? If they work differently, how to do the ioctl call in cygwin environment? The idea is that it's the same as Linux. If you're having a problem, report it to the main Cygwin list unless it's intricately tied to X. You'll get better visibility to general issues there. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 429-6305 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: Running a simple GUI app
John Emmas wrote on Monday, August 18, 2008 4:55 PM:: Hi there, After installing Cygwin (under WinXP) I've got to the stage of compiling a very simple Hello World app which just displays an empty GTK dialog with the title Hello World. To run the app I (currently) have to start Cygwin (using its desktop icon), type startx into the DOS terminal (which opens a second terminal window), navigate to the folder containing my executable and finally type ./HelloWorld. Obviously this is all a bit convoluted. Is there a simpler way to launch my app - for example:- a) Double clicking on an icon, or b) Issuing some command (from a DOS terminal) that would launch the app - but starting Cygwin and X invisibly. Thanks, John First, there's no such concept as starting Cygwin. Cygwin is just a DLL. If you mean start a bash session, there's no need to do that just to run an X program. You could* write a bash script along the lines of: /path/to/runyourprog --- #!/bin/bash --login checkx || startx exec yourprogname - The --login should ensure that the environment is set up correctly. Then you can create a shortcut with a target of: C:\cygwin\bin\bash -c /path/to/runyourprog * This is very much a lame Windows-user type of thing to be doing. Xwin is a SERVER. It should not be started by running a client. If you were to ask a linux mailing list for a way to switch runlevel if someone tried to run your program without an X server, you would rightly expect the electronic equivalent of howls of derision. Why do you not just start X when you log on? If you'd rather not start X every time you log on, you only need to start it the first time you try to run an X program. Any properly written X program (including yours) should tell the user if it cannot connect to the X server, so if you get this message, you just need to run the server - once, then try again. Phil -- This email has been scanned by Ascribe PLC using Microsoft Antigen for Exchange. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Running a simple GUI app
Sorry Phil if my questions seem 'lame'. I should have explained that I only installed Cygwin this morning so I'm by no means up to speed with the concepts or terminology. Anyway, I managed to arrange Windows so that it now starts X at boot up. This means that I can use a (DOS) console window to navigate to the appropriate directory, type 'HelloWorld' and my HelloWorld app launches with X just running silently in the background. That's a lot slicker than the procedure I was using a few hours ago. Thanks for the suggestion. What's strange though is that I can't just double-click on the app's icon and launch it. There's a (slim) chance that this could be a Windows problem but I've never known any other Windows app that can be started from a command line but can't be started by clicking its icon. Any ideas? John - Original Message - From: Phil Betts [EMAIL PROTECTED] To: cygwin-xfree@cygwin.com Sent: 18 August 2008 16:41 Subject: RE: Running a simple GUI app John Emmas wrote on Monday, August 18, 2008 4:55 PM:: Hi there, After installing Cygwin (under WinXP) I've got to the stage of compiling a very simple Hello World app which just displays an empty GTK dialog with the title Hello World. To run the app I (currently) have to start Cygwin (using its desktop icon), type startx into the DOS terminal (which opens a second terminal window), navigate to the folder containing my executable and finally type ./HelloWorld. Obviously this is all a bit convoluted. Is there a simpler way to launch my app - for example:- a) Double clicking on an icon, or b) Issuing some command (from a DOS terminal) that would launch the app - but starting Cygwin and X invisibly. Thanks, John First, there's no such concept as starting Cygwin. Cygwin is just a DLL. If you mean start a bash session, there's no need to do that just to run an X program. You could* write a bash script along the lines of: /path/to/runyourprog --- #!/bin/bash --login checkx || startx exec yourprogname - The --login should ensure that the environment is set up correctly. Then you can create a shortcut with a target of: C:\cygwin\bin\bash -c /path/to/runyourprog * This is very much a lame Windows-user type of thing to be doing. Xwin is a SERVER. It should not be started by running a client. If you were to ask a linux mailing list for a way to switch runlevel if someone tried to run your program without an X server, you would rightly expect the electronic equivalent of howls of derision. Why do you not just start X when you log on? If you'd rather not start X every time you log on, you only need to start it the first time you try to run an X program. Any properly written X program (including yours) should tell the user if it cannot connect to the X server, so if you get this message, you just need to run the server - once, then try again. Phil -- This email has been scanned by Ascribe PLC using Microsoft Antigen for Exchange. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Running a simple GUI app
On Mon, Aug 18, 2008 at 06:42:58PM -, John Emmas wrote: Sorry Phil if my questions seem 'lame'. I should have explained that I only installed Cygwin this morning so I'm by no means up to speed with the concepts or terminology. Anyway, I managed to arrange Windows so that it now starts X at boot up. This means that I can use a (DOS) console window to navigate to the appropriate directory, type 'HelloWorld' and my HelloWorld app launches with X just running silently in the background. That's a lot slicker than the procedure I was using a few hours ago. Thanks for the suggestion. What's strange though is that I can't just double-click on the app's icon and launch it. There's a (slim) chance that this could be a Windows problem but I've never known any other Windows app that can be started from a command line but can't be started by clicking its icon. Any ideas? X apps use a DISPLAY environment variable to denote which display they should attach to. It's possible that all that you need to do is add DISPLAY=:0 to your environment via the Control Panel-Systems setting. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/