This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiling flpsed under Cygwin


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]