Connexion
Ce forum permet à des personnes du monde entier de communiquer, c′est pourquoi les messages échangés sont en anglais.

Can't build on Raspberry Pi 4 / Raspbian Buster

  • Ma 2 0
    Message de Magnus le
    Hi all,
    I've downloaded the binary for 2.2 and followed the instructions in the readme, but I get an error running qmake:g++: error: unrecognized command line option '-mfpath=387'Is there any way to get this running on Arm?

    Thanks!
  • Message de Magnus le
    I got it! Not sure how exactly, but I’ll share what I tried at least.

    So:qmake -qt5 && makeper the readme, was failing in the make part with the

    g++: error: unrecognized command line option '-mfpath=387'error I mentioned above.

    I tried going into the Makefile and just taking out all occurrences of
    -mfpmath=387(there were 7). I then tried ‘make’ again, and actually got further into compiling, but still ended up with an error. This time it was the
    Chorus.h: No such file or directoryerror (mentioned in this post). I tried the solution listed there, which was to uncomment the line
    DEFINES += USE_LOCAL_STKin the polyphone.pro file. I ran ‘make’ again, and again got a bit further in compiling, but hit another error. This time it was
    fatal error: jack.h: No such file or directoryBasically my experience was going the same as in the thread mentioned above. I then went to try Knut Petersen’s solution from that thread, to manually add -isystem /usr/include/stk -isystem /usr/include/jackadd the end of INCPATH in Makefile – except that when I got in there, I saw that both paths were already listed. I double checked that these folders were in fact at usr/include/ in my system, and they are. So I went a little further into polyphone.pro, to the section starting with unix:!macx {and where it says INCLUDEPATH += $$PREFIX/include/jackI changed it to INCLUDEPATH += /usr/include/jackI then ran make again, and it worked. Interestingly, because at some point I guess I ran qmake again, it looks like the Makefile once again had the -mfpmath=387flags in it, and yet I hit no errors for that.

    Also, the executable ended up in the sources/bin/ folder, not in a directory called ‘RELEASE’ as per the readme file.

    * * *

    TL;DR

    If trying to compile for Raspberry Pi, in the polyphone.pro file, uncomment DEFINES += USE_LOCAL_STKThen go down to the section starting with unix:!macx {and make sure the INCLUDEPATH += path is set to where your jack folder is. By default it is pointing to $$PREFIX/include/jack(which is /usr/local/include/jack), but try INCLUDEPATH += /usr/include/jack.

    If you still get the -mfpmath error, you can try taking mentions of it out of the Makefile; I may or may not have done that at the time that I successfully built it.

    I should mention that I haven't really tested out the program other than launching it, but it looks correct. Also, sorry for the long post, wanted to be thorough. I am very much looking forward to using this software, thanks Davy!

Connectez-vous ou inscrivez-vous pour participer à la discussion.

Polyphone a besoin de vous !

Polyphone est gratuit mais il y a des coûts associés à son site web et à son développement. Un petit coup de pouce aidera beaucoup.

Faire un don
Apprenez les bases Voir le tutoriel
Haut de
page