building qcad-2.0.5.0 on blfs

lux-integ lux-integ at btconnect.com
Wed Apr 29 11:49:07 PDT 2009


On Wednesday 29 April 2009 04:22:53 pm David Jensen wrote:

> > ###########
> >
> > In file included from /opt/qt-3.3.8b/include/qobjectdefs.h:45,
> >                  from /opt/qt-3.3.8b/include/qobject.h:45,
> >                  from actions/rs_actioninterface.h:31,
> >                  from actions/rs_actioninterface.cpp:28:
> > /opt/qt-3.3.8b/include/qglobal.h:734: error: ISO C++ 1998 does not
> > support 'long long'
> > /opt/qt-3.3.8b/include/qglobal.h:735: error: ISO C++ 1998 does not
> > support 'long long'
> > make[2]: *** [obj/rs_actioninterface.o] Error 1
> > make[2]: Leaving directory
> > `~/qcad-2.0.5.0-1-community.src/qcadlib/src' make[1]: ***
> > [lib/libqcad.a] Error 2 make[1]: Leaving directory
> > `~/qcad-2.0.5.0-1-community.src/qcadlib' make: *** [all] Error 2
> > Building qcadlib failed
>
> compiler is forced to be pedantic,  try;
>
> sed -i 's/^QMAKE/#&/g' mkspecs/defs.pro
thanks the sed  works  I then ran into problems with 
qcadlib/src/engine/rs_entity.cpp

##################


In file included from ../include/rs_img.h:31,
                 from ../include/rs_painter.h:32,
                 from engine/rs_ellipse.cpp:32:
/opt/qt-3.3.8b/include/qimage.h: In member function 'bool 
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/opt/qt-3.3.8b/include/qimage.h:61: warning: suggest parentheses around && 
within ||
g++ -c -pipe -Wall -W -O2  -DRS_NO_COMPLEX_ENTITIES -DQT_NO_DEBUG -I/opt/qt-3.3.8b/mkspecs/linux-g++-64 -I. -I../include -I../../dxflib/include -I../../fparser/include -I../../qcadcmd/include -I/opt/qt-3.3.8b/include -Imoc/ -o 
obj/rs_entity.o engine/rs_entity.cpp
In file included from ../include/rs_img.h:31,
                 from ../include/rs_painter.h:32,
                 from engine/rs_entity.cpp:42:
/opt/qt-3.3.8b/include/qimage.h: In member function 'bool 
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/opt/qt-3.3.8b/include/qimage.h:61: warning: suggest parentheses around && 
within ||
engine/rs_entity.cpp: In function 'std::ostream& operator<<(std::ostream&, 
RS_Entity&)':
engine/rs_entity.cpp:864: error: cast from 'RS_Layer*' to 'int' loses 
precision
make[2]: *** [obj/rs_entity.o] Error 1
make[2]: Leaving directory `~/qcad-2.0.5.0-1-community.src/qcadlib/src'
make[1]: *** [lib/libqcad.a] Error 2
make[1]: Leaving directory `~/qcad-2.0.5.0-1-community.src/qcadlib'
make: *** [all] Error 2
Building qcadlib failed



#########  offending snippet  
(qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_entity.cpp)  seems to be

    if (e.layer==NULL) {
        os << " layer: NULL ";
    } else {
        os << " layer: " << e.layer->getName().latin1() << " ";
        os << " layer address: " << (int)(e.layer) << " ";
    }
##############

suggestions welcomed

> or just edit mkspecs/defs.pro and comment the offending assignments
> yourself.
>
> maybe
>
> ---
> David Jensen





More information about the blfs-support mailing list