Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: multipart/alternative; boundary=Apple-Mail-1--471983438 Message-Id: Reply-To: cygwin AT cygwin DOT com From: kraken+spam AT smousseland DOT com Subject: Re: GTK+, CYGWIN & MSW [oops] Date: Sun, 10 Apr 2005 11:51:26 +0200 To: cygwin AT cygwin DOT com X-IsSubscribed: yes --Apple-Mail-1--471983438 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed >> >> I have finally got an application to compile under cygwin, but to run=20= =20 >> it I have to launch the X server, 'startx' to be able to run the=20=20 >> program under cygwin. However, I am not able to run the program form=20= =20 >> windows, I have added the 'cygwin.dll' and 'cygX11-6.dll' directories=20= =20 >> to the 'autoexec.bat' '%path%'. the program just does not run. What=20= =20 >> can I do to get this fixed? >> If you want to have a packaged windows application which don't need=20=20 cygwin installation to run with native GTK (not X11), you have to=20=20 install gtk for windows dev from there : http://prdownloads.sourceforge.net/gladewin32/gtk-win32-devel-2.6.4-=20 rc2.exe?download in c:\cygwin\usr\local\gtk for exemple. in you Makefile you could define gtk path to use in the Makefile : ifeq ($(origin GTK_PATH),undefined) #windows version GTK_PATH =3D /usr/local/gtk/bin #X11 version #GTK_PATH =3D /usr/bin endif to get correct gtk flags, compil with >gcc =E2=80=9B$(GTK_PATH)/pkg-config --cflags gtk+-2.0=E2=80=9B [your stuf= f here] and link with >gcc `$(GTK_PATH)/pkg-config --libs gtk+-2.0` [your stuff here] To have a real windows application, you have to compil at link stage=20=20 with >gcc -e _mainCRTStartup -mwindows file.res [your stuff here] file.res is optional, put your windows icon file in it. With this, you will get a full native windows application, provided you=20= =20 bundle required cygwin dll with it, and gtk runtime is installed on the=20= =20 computer from there : http://prdownloads.sourceforge.net/gladewin32/gtk-win32-2.6.4-rc2.exe?=20 download You don't need to install it if you installed the devel version on your=20= =20 computer, but have to install it on other computers you will install=20=20 your software on. Kraken. --Apple-Mail-1--471983438 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=UTF-8 I have finally got an application to compile under cygwin, but to run it I have to launch the X server, 'startx' to be able to run the program under cygwin. However, I am not able to run the program form windows, I have added the 'cygwin.dll' and 'cygX11-6.dll' directories to the 'autoexec.bat' '%path%'. the program just does not run. What can I do to get this fixed? If you want to have a packaged windows application which don't need cygwin installation to run with native GTK (not X11), you have to install gtk for windows dev from there : http://prdownloads.sourceforge.net/gladewin32/gtk-win32-devel-2.6.4-rc2.exe= ?download in c:\cygwin\usr\local\gtk for exemple. in you Makefile you could define gtk path to use in the Makefile : ifeq ($(origin GTK_PATH),undefined) #windows version GTK_PATH =3D /usr/local/gtk/bin #X11 version #GTK_PATH =3D /usr/bin endif to get correct gtk flags, compil with Lucida Grande>gcc =E2=80=9B$(GTK_PATH)/pkg-config --cflags gtk+-2.0Lucida Grande=E2=80=9B [your stuff here] and link with >gcc `$(GTK_PATH)/pkg-config --libs gtk+-2.0` [your stuff here] To have a real windows application, you have to compil at link stage with >gcc -e _mainCRTStartup -mwindows file.res [your stuff here] file.res is optional, put your windows icon file in it. With this, you will get a full native windows application, provided you bundle required cygwin dll with it, and gtk runtime is installed on the computer from there : http://prdownloads.sourceforge.net/gladewin32/gtk-win32-2.6.4-rc2.exe?downl= oad You don't need to install it if you installed the devel version on your computer, but have to install it on other computers you will install your software on. Kraken. --Apple-Mail-1--471983438--