[SOLVED] android - Could not start process "make" - linux opensus
-
wrote on 5 Aug 2014, 10:57 last edited by
Hi,
I installed qt creator on windows and it works ok, but problems starts with linux.
I have linux opensus, Qt Creator 3.1.2 (opensource),Based on Qt 5.3.1 (GCC 4.6.1, 64 bit). The problem appears when I want to build the app. This is output from console
@12:24:02: Could not start process "make"
Error while building/deploying project tested (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.3.1))
When executing step 'Make'@when I look at my kits I see red circle next to desktop qt 5.3 gcc 64 bit and error says: "no compiler set in kit" I try to do it manually but apparently I do it in wrong way. The rest of kits look right.
When i open qt creator I got this message "/bin/sh: .../android-ndk-r10/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: No such file or directory"
I have no idea how to solve this problem, I feeling like baby in the fog, cause I'm newbie in linux and qt-creator.
I try to install qt creator both ways:
online/offline.
I try to put commands in system folder of qt : "sudo apt-get install build-essential" but I get apt-get command not found. I took it from this "topic:":http://qt-project.org/forums/viewthread/12928I have directory of gcc_64/qmake in qt folder
I would be grateful for any help
-
Hi,
Is your OpenSuse 32 bit or 64 bit ?
Have you properly set ndk and sdk's ?
Can you post the screenshot of Tools > Options > Android of QtCreator ? -
wrote on 5 Aug 2014, 11:22 last edited by
[quote author="p3c0" date="1407237084"]
Is your OpenSuse 32 bit or 64 bit ?[/quote]OpenSuse 64 bit.
[quote author="p3c0" date="1407237084"]
Have you properly set ndk and sdk's ?[/quote]
yeah I set it in the same way like for windows, but obviously I download linux version.[quote author="p3c0" date="1407237084"]
Can you post the screenshot of Tools > Options > Android of QtCreator ?[/quote]
yeah of course,
[IMG]http://i62.tinypic.com/10e1shk.png[/IMG]
!http://i62.tinypic.com/10e1shk.png(screen)! -
This seems good.
Now Can you post Screenshot of Kit ?Are you compiling for Android or Desktop?
Also
bq.
I try to put commands in system folder of qt : “sudo apt-get install build-essential” but I get apt-get command not found. I took it from this topic: [qt-project.org]You must find something equivalent for apt-get in OpenSuse
Probably YaST -> Software -> Software Management and install make command.To make sure if make installed on system, type make on terminal
@
make --version
@ -
wrote on 5 Aug 2014, 12:44 last edited by
Firstly after type @make --version@ in terminal I get message "If 'make' is not a typo..."
after installing make by typing this name into yast ->software -> software management, when I write into terminal @make --version@ I get back:
"GNU Make 3.82
Built for x86_64-unknown-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law"Ok, here is the screen
!http://i58.tinypic.com/2uoj32t.png(screen)!I compiling on Android.
After Installing 'make', when I try to compile I get this output:
@14:28:38: Running steps for project newone...
14:28:39: Starting: "/home/ctewoj/Qt5.3.1/5.3/android_armv7/bin/qmake" /home/ctewoj/newone/newone.pro -r -spec android-g++ CONFIG+=debug
14:28:41: The process "/home/ctewoj/Qt5.3.1/5.3/android_armv7/bin/qmake" exited normally.
14:28:41: Starting: "/usr/bin/make"
/home/ctewoj/Qt5.3.1/5.3/android_armv7/bin/uic ../newone/mainwindow.ui -o ui_mainwindow.h
/home/ctewoj/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt5.3.1/5.3/android_armv7/mkspecs/android-g++ -I../newone -I../Qt5.3.1/5.3/android_armv7/include -I../Qt5.3.1/5.3/android_armv7/include/QtWidgets -I../Qt5.3.1/5.3/android_armv7/include/QtGui -I../Qt5.3.1/5.3/android_armv7/include/QtCore -I. -I. -I../android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/include -I../android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/ctewoj/android-ndk-r10/platforms/android-9/arch-arm//usr/include -I. -o main.o ../newone/main.cpp
In file included from ../android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/stl_algo.h:59:0,
from ../android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/include/algorithm:62,
from ../Qt5.3.1/5.3/android_armv7/include/QtCore/qglobal.h:85,
from ../Qt5.3.1/5.3/android_armv7/include/QtGui/qwindowdefs.h:45,
from ../Qt5.3.1/5.3/android_armv7/include/QtWidgets/qwidget.h:45,
from ../Qt5.3.1/5.3/android_armv7/include/QtWidgets/qmainwindow.h:45,
from ../Qt5.3.1/5.3/android_armv7/include/QtWidgets/QMainWindow:1,
from ../newone/mainwindow.h:4,
from ../newone/main.cpp:1:
../android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:72:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
make: *** [main.o] Error 1
14:28:44: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project newone (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.3.1))
When executing step 'Make'
14:28:44: Elapsed time: 00:05.@EDIT:
Now I'm trying to reinstall whole qt creator -
well issue for.desktop is that it is not able to find make. Set the path to /usr/bin. but thats for desktop
for android try compiling for platform higher than android-9
-
wrote on 5 Aug 2014, 14:09 last edited by
I just reinstall the qt creator and then remove folder with android-ndk-r10 and miracle appears cause it works :D thx for help I think the crucial thing was to install 'make'. On windows there is no need to do this, but the linux is way different ;) Then, as I said before I reinstall this stuff and finally it works after day of war.
-
Well that's fine, Welcome :)
I actually overlooked the make command requirement at first :o
On some linux distros make command is not installed by default.
1/8