NetBSD Problem Report #33800

From  Fri Jun 23 08:37:39 2006
Return-Path: <>
Received: by (Postfix, from userid 31301)
	id F187E63B8B4; Fri, 23 Jun 2006 08:37:38 +0000 (UTC)
Message-Id: <>
Date: Fri, 23 Jun 2006 08:37:38 +0000 (UTC)
Subject: cad/qcad build failure on MacOS X
X-Send-Pr-Version: www-1.0

>Number:         33800
>Category:       pkg
>Synopsis:       cad/qcad build failure on MacOS X
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 23 08:40:02 +0000 2006
>Last-Modified:  Mon Jul 13 20:10:05 +0000 2020
>Originator:     John D. Baker
>Release:        pkgsrc-current, MacOS X 10.4.6
Darwin bwg3.technoskunk.fur 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc

Building cad/qcad on MacOS X fails as follows:

libtool --silent --mode=compile g++ -c -O2 -I/usr/pkg/include -I/usr/pkg/qt3/include -I/usr/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -DQ_TRAILING_DIR_SEP  -DQC_APPKEY="\"/QCad\"" -DQC_APPDIR="\"qcad\"" -DQC_APPNAME="\"QCad\"" -DQT_NO_DEBUG -I/usr/pkg/qt3/mkspecs/netbsd-g++ -I. -I../../fparser/include -I../../dxflib/include -I../../qcadlib/include -I../../qcadcmd/include -I../../qcadactions/include -I../../qcadguiqt/include -I../../../../../../../../pkg/include -I/usr/pkg/qt3/include -Imoc/ -o obj/main.lo main.cpp
main.cpp:34:27: error: qmacstyle_mac.h: No such file or directory
main.cpp: In function 'int main(int, char**)':
main.cpp:233: error: expected type-specifier before 'QMacStyle'
main.cpp:233: error: expected `)' before 'QMacStyle'
main.cpp:233: error: no matching function for call to 'QApplication::setStyle(int*)'
/usr/pkg/qt3/include/qapplication.h:89: note: candidates are: static void QApplication::setStyle(QStyle*)
/usr/pkg/qt3/include/qapplication.h:90: note:                 static QStyle* QApplication::setStyle(const QString&)
gnumake[1]: *** [obj/main.lo] Error 1
gnumake: *** [qcad] Error 2
*** Error code 2

bmake: stopped in /usr/pkgsrc/cad/qcad
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /Volumes/NetBSD/tmp/pkgsrc/cad/qcad/work/.work.log
*** Error code 1

bmake: stopped in /usr/pkgsrc/cad/qcad

Update to current pkgsrc 22 June 2006 or later.
Attempt to build cad/qcad on MacOS X 10.4.6 (and probably 10.3.9).
The file:


contains explicit MacOS X-specific references which are not appropriate
when built through pkgsrc.

The following patch, ironically, permits the build to complete

--- work/qcad-    2006-06-23 03:15:33.000000000 -0500
+++ work/qcad- 2006-06-23 03:22:42.000000000 -0500
@@ -30,10 +30,6 @@

 #include <qapplication.h>

-#ifdef __APPLE__
-#include <qmacstyle_mac.h>
 #include <qtimer.h>

 #if QT_VERSION>=0x030200
@@ -229,9 +225,6 @@

     //QApplication::setStyle(new QWindowsStyle());
     //QApplication::setStyle(new QPlatinumStyle());
-#ifdef __APPLE__
-       QApplication::setStyle(new QMacStyle());

 #ifdef QC_BUILTIN_STYLE //js:
        RS_DEBUG->print("main: applying built in style..");

When run, qcad seems to operate ok.  The opening splash window's
listboxes for "GUI Language" and "Command Language" are blank and
elicit the following messages on stderr:

    QComboBox::changeItem: (cbLanguage) Index 0 out of range
    QComboBox::changeItem: (cbLanguageCmd) Index 0 out of range

On subsequent runs, the Preferences editor (Edit->Preferences) also
shows blank list/combo boxes for "GUI Language" and "Command Language"
but do not elicit any output on stderr.

It is not clear if these are related to issues addressed by the
above workaround.  No further testing beyond launching the program
has been attempted so far.



Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-When: Sat, 24 Jun 2006 19:49:47 +0000
Darwin-specific problem.

Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-When: Wed, 07 Mar 2012 06:27:37 +0000
darwin-pkg-people has been changed to macos-pkg-people

Responsible-Changed-From-To: macos-pkg-people->sevan
Responsible-Changed-When: Tue, 20 Jan 2015 14:02:21 +0000
Sevan, could you verify if this is still a problem?

Responsible-Changed-From-To: sevan->pkg-manager
Responsible-Changed-When: Mon, 13 Jul 2020 20:10:05 +0000
Reset to role account


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.