Mail Archives: cygwin/2005/04/10/05:52:41
--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 -