Raspberry Pi 3 / Error message when compiling #346

Open
opened 2017-05-24 12:50:41 +02:00 by raphaelcreton · 1 comment
raphaelcreton commented 2017-05-24 12:50:41 +02:00 (Migrated from github.com)

Hello everyone,
after typing in terminal $ qmake && make

all I get is this error message :

cd qmltermwidget/ && ( test -e Makefile || /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /home/pi/cool-retro-term/qmltermwidget/qmltermwidget.pro -o Makefile ) && make -f Makefile make[1]: Entering directory '/home/pi/cool-retro-term/qmltermwidget' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/home/pi/cool-retro-term/qmltermwidget' cd app/ && ( test -e Makefile || /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /home/pi/cool-retro-term/app/app.pro -o Makefile ) && make -f Makefile make[1]: Entering directory '/home/pi/cool-retro-term/app' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -I. -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQuick -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQml -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSql -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -o qrc_resources.o qrc_resources.cpp virtual memory exhausted: Cannot allocate memory Makefile:395: recipe for target 'qrc_resources.o' failed make[1]: *** [qrc_resources.o] Error 1 make[1]: Leaving directory '/home/pi/cool-retro-term/app' Makefile:82: recipe for target 'sub-app-make_first-ordered' failed make: *** [sub-app-make_first-ordered] Error 2

Not knowing exactly what to do I typed $ sudo raspi-config
to change the ram ( 124 ) to the original settings ( 64 ), and rebooted. But without any success.
Then tried back to the max of RAM ( 256 ), I still get the error.
Thanks for any help. ®


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Hello everyone, after typing in terminal `$ qmake && make` all I get is this error message : `cd qmltermwidget/ && ( test -e Makefile || /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /home/pi/cool-retro-term/qmltermwidget/qmltermwidget.pro -o Makefile ) && make -f Makefile make[1]: Entering directory '/home/pi/cool-retro-term/qmltermwidget' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/home/pi/cool-retro-term/qmltermwidget' cd app/ && ( test -e Makefile || /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /home/pi/cool-retro-term/app/app.pro -o Makefile ) && make -f Makefile make[1]: Entering directory '/home/pi/cool-retro-term/app' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -I. -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQuick -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQml -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSql -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -o qrc_resources.o qrc_resources.cpp virtual memory exhausted: Cannot allocate memory Makefile:395: recipe for target 'qrc_resources.o' failed make[1]: *** [qrc_resources.o] Error 1 make[1]: Leaving directory '/home/pi/cool-retro-term/app' Makefile:82: recipe for target 'sub-app-make_first-ordered' failed make: *** [sub-app-make_first-ordered] Error 2` Not knowing exactly what to do I typed `$ sudo raspi-config` to change the ram ( 124 ) to the original settings ( 64 ), and rebooted. But without any success. Then tried back to the max of RAM ( 256 ), I still get the error. Thanks for any help. ® <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45522989-raspberry-pi-3-error-message-when-compiling?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github). </bountysource-plugin>
jgillman commented 2017-10-02 22:28:58 +02:00 (Migrated from github.com)

I was able to successfully compile it by increasing the size of the swap file on my Pi. The way to do that on the Pi is different but I found good instructions here: https://raspberrypi.stackexchange.com/a/1605/74172

However I'm unable to launch it and I get the following output:

$ ./cool-retro-term
libEGL warning: DRI2: failed to authenticate
QQmlApplicationEngine failed to load component
qrc:/main.qml:-1 File not found

Cannot load QML interface
I was able to successfully compile it by increasing the size of the swap file on my Pi. The way to do that on the Pi is different but I found good instructions here: https://raspberrypi.stackexchange.com/a/1605/74172 However I'm unable to launch it and I get the following output: ``` $ ./cool-retro-term libEGL warning: DRI2: failed to authenticate QQmlApplicationEngine failed to load component qrc:/main.qml:-1 File not found Cannot load QML interface ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#346
No description provided.