This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: compiling flpsed under Cygwin
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 20 Jul 2005 19:25:46 -0700
- Subject: Re: compiling flpsed under Cygwin
- References: <BAY102-DAV34ECB8E8122E97AF12D55DDD70@phx.gbl> <42DDB680.30303@alltel.net> <6.2.1.2.0.20050719225728.03ce4120@pop.prospeed.net> <BAY102-DAV12D860730A0A27539DDA7BDDD70@phx.gbl> <42DE0837.A91E1C80@dessent.net> <BAY102-DAV1776C8E8880D5B50E3150DDD70@phx.gbl>
- Reply-to: cygwin-xfree at cygwin dot com
"Stephen P. Harris" wrote:
> Pontificate on your own dime. My point has nothing to do with
> the correctness of your advice, but the irrelevancy of it to flpsed.
FYI, I was able to build flpsed just fine. The actual hard part is
building a X11 fltk. The Cygwin packaged version uses win32/GDI and the
configure scripts will try to force this if configured under Cygwin so
you have to do some surgery to get a true X11 library. The steps I used
were roughly:
# uninstall Cygwin fltk package
$ tar jxvf fltk-1.1.6-source.tar.bz2
$ cd fltk-1.1.6
$ CFLAGS="-UWIN32" CXXFLAGS="-UWIN32" LDFLAGS="-L/usr/X11R6/lib -lX11" \
./configure --with-x --enable-cygwin --disable-gl
$ make
# edit fltk-config to get correct library order:
--- fltk-config.orig 2005-07-20 19:06:38.171875000 -0700
+++ fltk-config 2005-07-20 19:16:11.359375000 -0700
@@ -52,8 +52,8 @@
# flags for C++ compiler:
CFLAGS="-mwindows -DWIN32 -UWIN32"
CXXFLAGS="-mwindows -DWIN32 -UWIN32"
-LDFLAGS="-mwindows -L/usr/X11R6/lib -lX11"
-LDLIBS=" -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++"
+LDFLAGS="-mwindows"
+LDLIBS=" -L/usr/X11R6/lib -lX11 -lole32 -luuid -lcomctl32 -lwsock32
-lsupc++"
if test -d $includedir/FL/images; then
CFLAGS="-I$includedir/FL/images $CFLAGS"
$ make install
$ cd ..
$ tar zxvf flpsed-0.3.5.tar.gz
$ cd flpsed-0.3.5
$ ./configure
$ make
The result is a working flpsed.
Now take your rude, craptastic attitude towards volunteers that are
trying to help you in their spare time and shove it.
Brian