<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Hi,<br><br>Who are the lead developers of the Scribus Qt4 interface?<br><br>Thanks and best regards,<br><br>Will<br><div><span><br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> William Bell <whbell@btinternet.com><br> <b><span style="font-weight: bold;">To:</span></b> "scribus@lists.scribus.info" <scribus@lists.scribus.info> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 20 August 2013, 17:36<br> <b><span style="font-weight: bold;">Subject:</span></b> [scribus] compiling Scribus 1.4.3 on an ARM CPU (Debian Wheezy)<br> </font> </div> <div
class="y_msg_container"><br>Hi,<br><br>I am trying to build Scribus 1.4.3 on an ARM CPU that runs Debian Wheezy (Raspbian). Following the installation of all of the dependencies, the compilation goes well until <br><br>[ 66%] Building CXX object scribus/CMakeFiles/scribus.dir/scpainter.cpp.o<br>/home/pi/Scribus/scribus/scpainter.cpp: In member function ‘void ScPainter::drawVPath(int)’:<br>/home/pi/Scribus/scribus/scpainter.cpp:1119:31:<br> error: no matching function for call to <br>‘QPen::setDashPattern(QVector<double>&)’<br>/home/pi/Scribus/scribus/scpainter.cpp:1119:31: note: candidate is:<br>/usr/include/qt4/QtGui/qpen.h:87:10: note: void QPen::setDashPattern(const QVector<float>&)<br>/usr/include/qt4/QtGui/qpen.h:87:10:<br> note: no known conversion for argument 1 from ‘QVector<double>’<br> to ‘const QVector<float>&’<br>make[2]: ***
[scribus/CMakeFiles/scribus.dir/scpainter.cpp.o] Error 1<br>make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Error 2<br>make: *** [all]<br> Error 2<br><br>It is very clear why this fails. In Qt4 there is<br><br>/usr/include/qt4/Qt/qglobal.h<br><br>typedef QT_COORD_TYPE qreal;<br>#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)<br>typedef float qreal;<br>#else<br>typedef double qreal;<br>#endif<br><br>The Qt functions use qreal, rather than double of float. In the Scribus source code there are lots of <br><br>QList<double> and QVector<double><br><br>While I could use sed to switch these to qreal, there are other pieces of code such as<br><br>Scribus/scribus/util.cpp<br><br>void getDashArray(int dashtype, double linewidth, QVector<float> &m_array) {<br> QVector<double> tmp;<br> getDashArray(dashtype, linewidth, tmp);<br>
m_array.clear();<br> for (int i = 0; i < tmp.count(); ++i) {<br> m_array << static_cast<float>(tmp[i]);<br> }<br>}<br><br>void getDashArray(int dashtype, double linewidth, QVector<double> &m_array)<br>{<br> m_array.clear();<br> if ((dashtype == 1) || (dashtype == 0))<br> return;<br> double Dt = qMax(1.0*linewidth, 0.1);<br> double Sp = qMax(2.0*linewidth,<br> 0.1);<br> double Da = qMax(4.0*linewidth, 0.1);<br> switch (dashtype)<br> {<br><br><br>Why is QVector<double> used instead of QVector<qreal> etc? If
I use sed, I will have to remove overloaded functions that include <float>. Is this safe?<br><br>Thanks and best regards,<br><br>Will<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20130820/7f6c7e4c/attachment.html" target="_blank">http://lists.scribus.net/pipermail/scribus/attachments/20130820/7f6c7e4c/attachment.html</a>><br>___<br>Scribus Mailing List: <a ymailto="mailto:scribus@lists.scribus.net" href="mailto:scribus@lists.scribus.net">scribus@lists.scribus.net</a><br>Edit your options or unsubscribe:<br><a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>See also:<br><a href="http://wiki.scribus.net/" target="_blank">http://wiki.scribus.net</a><br><a href="http://forums.scribus.net/" target="_blank">http://forums.scribus.net</a><br><br></div>
</div> </div> </div></body></html>