dannyedel / dspdfviewer

Dual-Screen PDF Viewer for latex-beamer
http://dspdfviewer.danny-edel.de
GNU General Public License v2.0
218 stars 27 forks source link

Fix ftbfs big endian #126

Closed dannyedel closed 8 years ago

dannyedel commented 8 years ago

dspdfviewer failed to build on two Ubuntu xenial architectures, powerpc and s390x.

The mismatching numbers (printed in decimal in the logs) are 0xFF88FF88 vs 0x88FF88FF and 0xFF701EC1 vs 0xC11E70FF which suggests an endian-issue.

This PR first helps by printing colors in html-ish hex format #rrggbb and comparing the QColor objects instead of the possibly endian-dependent QRgb (typedef for some int) instances.

dannyedel commented 8 years ago

Split this PR. Re-open a one that makes the adjustments to boost::test output, and another that fixes the ftbfs; to ease backporting.