pcp
[Top] [All Lists]

Re: building kmchart on OSX 10.5

To: "James Peach" <jamespeach@xxxxxxx>
Subject: Re: building kmchart on OSX 10.5
From: nscott@xxxxxxxxxx
Date: Sat, 14 Jun 2008 15:19:11 +1000 (EST)
Cc: pcp@xxxxxxxxxxx
Importance: Normal
In-reply-to: <3D043F62-29E3-4D11-AF60-C45FAB2EF09E@mac.com>
References: <0C6D67D2-A53B-4300-8B06-2EA6086FB113@mac.com> <6FE954E2-8003-477C-8F9C-A5240D9E01AB@mac.com> <37995.192.168.3.1.1213416596.squirrel@mail.aconex.com> <E4716A0D-3C64-4F66-8FD2-E3BF32CEC432@mac.com> <38391.192.168.3.1.1213418196.squirrel@mail.aconex.com> <3D043F62-29E3-4D11-AF60-C45FAB2EF09E@mac.com>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: SquirrelMail/1.4.8-4.el4.centos
>
> So I set QT into release mode by doing this:
>
> diff --git a/GNUmakefile b/GNUmakefile
> index 187f208..fa5be43 100644
> --- a/GNUmakefile
> +++ b/GNUmakefile
> @@ -37,6 +37,8 @@ $(CONFIGURE):
>          autoconf
>          ./configure \
>                  --prefix=/usr \
> +               QMAKE="/opt/local/bin/qmake -spec macx-xcode" \

You should be able to set QMAKE in the environment, and configure will
pick it up.  Also, I think "-spec macx-xcode" is the default, isn't it?  I
did
not need that when I build on 10.5, IIRC.

> +               QT_RELEASE=Release \

Same for this, set in the environment before running configure & no
patch required.

>                  $$LOCAL_CONFIGURE_OPTIONS
>          touch .census
>
> And kmchart builds and loads, so I'm quite stoked :)

Ah, good stuff.  You're running very experimental code there (check out
the floating charts) ... lots to do still, but the basic functionality is
still
there.

> However, the build continues on to build kmdumptext, which fails. I
> make the following change and the whole thing built:
>
> diff --git a/src/dumptext/kmdumptext.pro.in b/src/dumptext/
> kmdumptext.pro.in
> index 8f48b45..3f08596 100644
> --- a/src/dumptext/kmdumptext.pro.in
> +++ b/src/dumptext/kmdumptext.pro.in
> @@ -5,4 +5,4 @@ INCLUDEPATH     += ../include ../libqmc @pcp_inc_dir@
>   LIBS           = -lpcp -L../libqmc -lqmc
>   LIBS           += -L../libqmc/@qt_release@ -L../libqmc/build/
> @qt_release@
>   QT             -= gui
> -CONFIG         += qt warn_on debug
> +CONFIG         += qt

That should be "qt warn_on @qt_release@" like the other project files. 
I'll fix
that up, thanks.

cheers.


--
Nathan


<Prev in Thread] Current Thread [Next in Thread>