delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/10/05:52:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: <BAY24-F314F8C7B36D9FCF5583648A6310@phx.gbl>
References: <BAY24-F314F8C7B36D9FCF5583648A6310 AT phx DOT gbl>
Mime-Version: 1.0 (Apple Message framework v619.2)
Message-Id: <eb938364720fdc193769299a5ff17c74@smousseland.com>
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

<excerpt><excerpt>

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?


</excerpt></excerpt>


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

<fontfamily><param>Lucida Grande</param>>gcc
=E2=80=9B</fontfamily>$(GTK_PATH)/pkg-config --cflags
gtk+-2.0<fontfamily><param>Lucida Grande</param>=E2=80=9B </fontfamily>[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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019