Results 1 to 5 of 5

Thread: Compiling qwt on Opensolaris

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Compiling qwt on Opensolaris

    Hi qwt folks,

    maybe this would be more adequate to post to the qwt mailing-list, I'll report here first anyway:

    compiling 5.0.x or 5.2.x on Opensolaris 6/09 with Sun cc breaks at:

    Qt Code:
    1. slow@os:~/qwt-5.0.2/src$ make
    2. CC -c -O2 -mt -KPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/opt/csw/mkspecs/solaris-cc -I. -I/opt/csw//include -Imoc/ -o obj/qwt_plot_layout.o qwt_plot_layout.cpp
    3. "qwt_plot_layout.cpp", line 815: Error: QMIN is not defined.
    To copy to clipboard, switch view to plain text mode 

    Huh? Whats happening? There's not QMIN in qwt_plot_layout.cpp:
    Qt Code:
    1. $ grep QMIN qwt_plot_layout.cpp
    2. $
    To copy to clipboard, switch view to plain text mode 

    So probably some prepoccessing going foobar?
    Qt Code:
    1. slow@os:~/qwt-5.0.2/src$ grep QMIN *
    2. qwt_math.h:#define qwtMin QMIN
    To copy to clipboard, switch view to plain text mode 

    Ah! Line 815 is indeed calling qwtMin. But where's QMIN ?
    slow@os:~/qwt-5.0.2/src$ grep QMIN /opt/csw/include/*.h
    Qt Code:
    1. /opt/csw/include/qglobal.h:#define QMIN(a, b) ((a) < (b) ? (a) : (b))
    To copy to clipboard, switch view to plain text mode 

    It's another macro. Hm. Let's see what the preprocessor is doing for us:
    Qt Code:
    1. slow@os:~/qwt-5.0.2/src$ CC -E -O2 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/opt/csw/mkspecs/solaris-cc -I. -I/opt/csw//include -Imoc/ qwt_plot_layout.cpp > qwt_plot_layout.i
    2. slow@os:~/qwt-5.0.2/src$ grep QMIN *.i
    3. qwt_plot_layout.i:length += QMIN
    4. qwt_plot_layout.i:length += QMIN
    To copy to clipboard, switch view to plain text mode 

    Ouch! It didn't get expanded twice! gcc does a better job:
    Qt Code:
    1. slow@os:~/qwt-5.0.2/src$ g++ -E -O2 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/opt/csw/mkspecs/solaris-cc -I. -I/opt/csw//include -Imoc/ qwt_plot_layout.cpp > qwt_plot_layout.i
    2. slow@os:~/qwt-5.0.2/src$ grep QMIN *.i
    To copy to clipboard, switch view to plain text mode 

    I'm currently also reading my way through the specs and documentation in order to get a clue.

    Anybody?

    -slow

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling qwt on Opensolaris

    QMIN is a macro from Qt3, with Qt4 qwtMin is a define for qMin. Is it intended, that you build for Qt3 ?

    Uwe

  3. #3

    Default Re: Compiling qwt on Opensolaris

    QMIN is a macro from Qt3, with Qt4 qwtMin is a define for qMin. Is it intended, that you build for Qt3 ?
    No. That's the only binary version available via Opensolaris package manager ips from the Blastwave.org repository. I'll spare the ugly details, but the Blastwave.org repo is also accessible via it's own package manager pkgutil where more up2date packages are available (i.e. Qt4) so I'll try that next.

    Thanks for the hint!! I'll post an update.
    -slow

  4. #4

    Default Re: Compiling qwt on Opensolaris

    Ok, I have Qt 4.4.3 installed in /opt/csw. Now I get this error:
    Qt Code:
    1. slow@os:~/qwt-5.0.2$ qmake
    2. Project LOAD(): Feature qt_config cannot be found.
    To copy to clipboard, switch view to plain text mode 

    I've set these env vars:
    Qt Code:
    1. slow@os:~/qwt-5.0.2$ env | grep Q
    2. QTDIR=/opt/csw
    3. QMAKESPEC=/opt/csw/mkspecs/solaris-g++
    4. slow@os:~/qwt-5.0.2$ echo $PATH
    5. /usr/local/bin:/opt/csw/bin:/opt/csw/sbin:/usr/bin:/usr/sbin:/sbin
    To copy to clipboard, switch view to plain text mode 

    QMAKESPEC=solaris-g++ also gives the same error. Google doesn't give me a working clue.

    Anybody?
    Thanks!
    Last edited by slowfranklin; 18th June 2009 at 11:53. Reason: missing [code] tags

  5. #5

    Default Re: Compiling qwt on Opensolaris

    As it seems my installed version of Qt does not include the developer stuff. As there doesn't exits any Qt-dev package for Opensolaris, I'll try again to compile Qt from source.

    -slow

Similar Threads

  1. QWT doesnt show any windows
    By Cal in forum Qwt
    Replies: 5
    Last Post: 30th June 2009, 17:05
  2. qwt 5.2 install on qt 4.5
    By HyperB in forum Qwt
    Replies: 4
    Last Post: 13th May 2009, 20:03
  3. Replies: 0
    Last Post: 23rd April 2009, 09:38
  4. Step by step Qwt on MinGW
    By Doug Broadwell in forum Qwt
    Replies: 2
    Last Post: 23rd January 2009, 00:19
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.