Fwd: Compiling gtk apps on MingW



well, my Makefile is like this now

PREFIX=/mingw
PATH=/d/GtkWin/bin:/usr/bin:/bin:/mingw/bin
CPPFLAGS=-O2 -I/d/GtkWin/include
PKG_CONFIG_PATH=/d/GtkWin/lib/pkgconfig
LD_LIBRARY_PATH=/d/GtkWin/bin:/d/GtkWin/lib:/lib:/usr/lib:/mingw/lib

GTK_CFLAGS=`pkg-config --cflags gtk+-2.0 | sed -e 's/d:/\/d/'`
GTK_LIBS=`pkg-config --libs gtk+-2.0 | sed -e 's/d:/\/d/'`

LDFLAGS=-L/d/GtkWin/bin -L/d/GtkWin/lib 

all: exec/teste.exe

exec/teste.exe: teste.c
        gcc.exe -mwindows -mms-bitfields $(GTK_CFLAGS) $(GTK_LIBS) teste.c -o
exec/teste.exe

And still doesn't work.  The gcc command line shown, shows not the
result of the sed processed pkg-config output, but simply `pkg-config
--cflags gtk+-2.0 | sed -e 's/d:/\/d/'`.

i'll try a bit more later...

---------- Forwarded message ----------
From: Ricardo Malafaia <rmalafaia gmail com>
Date: Jul 1, 2005 4:27 PM
Subject: Re: Compiling gtk apps on MingW
To: Hubert Sokołowski <h sokolowski wsisiz edu pl>


ugh!
now that you tell me, it is returning -Ld:/GtkWin/lib as first entry
when i guess it'd better of returning -L/d/GtkWin/lib

hmm, perhaps i should workout a quick sed script? i'll try that in a minute...

On 7/1/05, Hubert Sokołowski <h sokolowski wsisiz edu pl> wrote:
On Fri, 1 Jul 2005 12:06:28 -0300
does the command
pkg-config --libs gtk+-2.0
really returns what it should?



-- 
http://www.spreadfirefox.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]