<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Hi Dan,<br><br><code>Is<br>Scribus/scribus/ui/modetoolbar.h.orig</code><br><div><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>the orginal file in the Scribus repository or your patched version?  How does your change fix the problem in scpainter?  What does the Fedora ARM build contain in </span>/usr/include/qt4/Qt/qglobal.h ? Do you have float types on ARM or not?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Thanks and best
 regards,</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Will<br></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> Dan Horák <dan@danny.cz><br> <b><span style="font-weight: bold;">To:</span></b> scribus@lists.scribus.net <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 20 August 2013, 18:30<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>On Tue, 20 Aug 2013 17:12:50 +0100 (BST)<br>William Bell <<a ymailto="mailto:whbell@btinternet.com" href="mailto:whbell@btinternet.com">whbell@btinternet.com</a>> wrote:<br><br>> Hi,<br>> <br>> I am trying to build Scribus 1.4.3 on an ARM CPU that runs <br>> Debian Wheezy (Raspbian).  Following the installation of all of the <br>> dependencies, the compilation goes well until <br><br>we in Fedora use<br><a href="http://pkgs.fedoraproject.org/cgit/scribus.git/tree/scribus-to-double.patch" target="_blank">http://pkgs.fedoraproject.org/cgit/scribus.git/tree/scribus-to-double.patch</a><br>for ARM, resulting rpms are at<br><a href="http://koji.fedoraproject.org/koji/taskinfo?taskID=5830461" target="_blank">http://koji.fedoraproject.org/koji/taskinfo?taskID=5830461</a><br><br><br>        Dan<br><br>> [ 66%] Building CXX object<br>>
 scribus/CMakeFiles/scribus.dir/scpainter.cpp.o /home/pi/Scribus/scribus/scpainter.cpp:<br>> In member function ‘void ScPainter::drawVPath<br>> (int)’: /home/pi/Scribus/scribus/scpainter.cpp:1119:31: error: no<br>> matching function for call to ‘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<br>> (const QVector<float>&) /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<br>> #(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<br>> 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<br>> pieces of code such as<br>> <br>> Scribus/scribus/util.cpp<br>> <br>> void getDashArray(int dashtype, double linewidth, QVector<float><br>> &m_array) { QVector<double> tmp;<br>>    getDashArray(dashtype, linewidth, tmp);<br>>    m_array.clear();<br>>    for (int i = 0; i < tmp.count(); ++i)
 {<br>>    m_array <<<br>>  static_cast<float>(tmp[i]);<br>>   }<br>> }<br>> <br>> void getDashArray(int dashtype, double linewidth, QVector<double><br>> &m_array) {<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<br>> sed, I will have to remove overloaded functions that include<br>> <float>.  Is this safe?<br>> <br>> Thanks and best regards,<br>> Will<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL:<br>> <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20130820/ea7587d4/attachment.html" target="_blank">http://lists.scribus.net/pipermail/scribus/attachments/20130820/ea7587d4/attachment.html</a>><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>___<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>