<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Hi,<br><br>Can anyone help me on this list?<br><br>Thanks and best regards,<br><br>Will<br><div><span><br></span></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 User Mailing List <scribus@lists.scribus.net>; "scribus@lists.scribus.info" <scribus@lists.scribus.info> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 23 August 2013, 13:31<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [scribus] compiling Scribus 1.4.3 on an ARM CPU (Debian Wheezy)<br> </font> </div>
<div class="y_msg_container"><br>Hi,<br><br>Who are the lead developers of the Scribus Qt4 interface?<br><br>Thanks and best regards,<br><br>Will<br><br><br><br><br>________________________________<br> From: William Bell <<a ymailto="mailto:whbell@btinternet.com" href="mailto:whbell@btinternet.com">whbell@btinternet.com</a>><br>To: "<a ymailto="mailto:scribus@lists.scribus.info" href="mailto:scribus@lists.scribus.info">scribus@lists.scribus.info</a>" <<a ymailto="mailto:scribus@lists.scribus.info" href="mailto:scribus@lists.scribus.info">scribus@lists.scribus.info</a>> <br>Sent: Tuesday, 20 August 2013, 17:36<br>Subject: [scribus] compiling Scribus 1.4.3 on an ARM CPU (Debian Wheezy)<br> <br><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>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20130823/84fa74d9/attachment-0001.html"
target="_blank">http://lists.scribus.net/pipermail/scribus/attachments/20130823/84fa74d9/attachment-0001.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>