Cross-compile for RPi

Robert Helling helling at atdotde.de
Thu Aug 9 09:27:30 PDT 2018


Hi,

> On 6. Aug 2018, at 15:43, Philip Balister <philip at balister.org> wrote:
> 
> Maybe, but on work travel. I'm not familiar with raspbian, anyone know
> if they have cross compilers available.
> 
> If I get time, I can look at creating a pi-s image with subsurface. Just
> need to figure out how to build subsurface without using the script :)

I just picked up another raspberry pi to take with me on my summer vacation. It had a Rapberrian based on Debian Squeeze on it. It turns out that lacks qt location. I tried to comment out all location stuff and build without map but so far without success. The other problem is that the imagedownloader throws compile errors starting with

/home/pi/src/subsurface/core/imagedownloader.cpp: In function 'std::pair<QImage, bool> getHashedImage(const QString&, bool)':
/home/pi/src/subsurface/core/imagedownloader.cpp:118:9: error: 'qInfo' was not declared in this scope
   qInfo() << "Error loading image" << filename << "[local:" << localFilename << "]";
         ^
/home/pi/src/subsurface/core/imagedownloader.cpp: In member function 'void Thumbnailer::imageDownloaded(QString)':
/home/pi/src/subsurface/core/imagedownloader.cpp:247:101: error: no matching function for call to 'run(QThreadPool*, Thumbnailer::imageDownloaded(QString)::<lambda()>)'
  workingOn[filename] = QtConcurrent::run(&pool, [this, filename]() { processItem(filename, false); });
                                                                                                     ^
/home/pi/src/subsurface/core/imagedownloader.cpp:247:101: note: candidates are:
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/QtConcurrent:14:0,
                 from /home/pi/src/subsurface/core/imagedownloader.cpp:16:
/usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentrun.h:70:12: note: template<class T> QFuture<T> QtConcurrent::run(T (*)())
 QFuture<T> run(T (*functionPointer)())
            ^
/usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentrun.h:70:12: note:   template argument deduction/substitution failed:
/home/pi/src/subsurface/core/imagedownloader.cpp:247:101: note:   mismatched types 'T()' and 'QThreadPool'
  workingOn[filename] = QtConcurrent::run(&pool, [this, filename]() { processItem(filename, false); });
                                                                                                     ^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/QtConcurrent:14:0,
                 from /home/pi/src/subsurface/core/imagedownloader.cpp:16:
/usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentrun.h:75:12: note: template<class T, class Param1, class Arg1> QFuture<T> QtConcurrent::run(T (*)(Param1), const Arg1&)
 QFuture<T> run(T (*functionPointer)(Param1), const Arg1 &arg1)
            ^
/usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentrun.h:75:12: note:   template argument deduction/substitution failed:
/home/pi/src/subsurface/core/imagedownloader.cpp:247:101: note:   mismatched types 'T(Param1)' and 'QThreadPool'
  workingOn[filename] = QtConcurrent::run(&pool, [this, filename]() { processItem(filename, false); });
                                                                                                     ^

and continuing for many screens. I have not really looked into this at any depth but the fact that it seems to be about C++ templates does not make me optimistic. Maybe bstoeger can help.

Right now, I have to run. The next thing to try will be to start with a more recent Debian stretch.

Best
Robert


--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 528 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180809/b2d93f89/attachment.sig>


More information about the subsurface mailing list