diff mbox

qt5base build issue

Message ID 55B3B794.3080706@jcz.nl
State Superseded
Headers show

Commit Message

Jaap Crezee July 25, 2015, 4:21 p.m. UTC
On 07/24/15 12:17, Julien CORJON wrote:
>>>>>>> During compilation I get following error:
>>>>>>>
>>>>>>> Running configuration tests...
>>>>>>> Failed to process makespec for platform 'devices/linux-buildroot-g++'
>>>>>>> Project ERROR: Compiler
>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/host/usr/bin/ccache
>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/host/usr/bin/arm-none-linux-gnueabi-g++
>>>>>>> not found. Check the value of CROSS_COMPILE -device-option
>>>>>>> Could not read qmake configuration file
>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/build/qt5base-5.5.0/mkspecs/devices/linux-buildroot-g++/qmake.conf.

<snip>

Dear all,

Please see attached patch. It fixes this build issue for me.

Kind regards,


Jaap Crezee

Comments

Yegor Yefremov July 25, 2015, 8:02 p.m. UTC | #1
Hi Jaap,

On Sat, Jul 25, 2015 at 6:21 PM, Jaap Crezee <jaap@jcz.nl> wrote:
> On 07/24/15 12:17, Julien CORJON wrote:
>>>>>>>> During compilation I get following error:
>>>>>>>>
>>>>>>>> Running configuration tests...
>>>>>>>> Failed to process makespec for platform 'devices/linux-buildroot-g++'
>>>>>>>> Project ERROR: Compiler
>>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/host/usr/bin/ccache
>>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/host/usr/bin/arm-none-linux-gnueabi-g++
>>>>>>>> not found. Check the value of CROSS_COMPILE -device-option
>>>>>>>> Could not read qmake configuration file
>>>>>>>> /home/user/MyProjects/oss/buildroot/prods1/build/qt5base-5.5.0/mkspecs/devices/linux-buildroot-g++/qmake.conf.
>
> <snip>
>
> Dear all,
>
> Please see attached patch. It fixes this build issue for me.

Works for me too. Thanks.

Please resend this patch via git send-mail. You can add my "Tested-by:
Yegor Yefremov <yegorslists@googlemail.com>".

Btw have you already filed a bug request by Qt?

Yegor
Jaap Crezee July 26, 2015, 10:54 a.m. UTC | #2
Hello Yegor,

On 07/25/15 22:02, Yegor Yefremov wrote:
> Works for me too. Thanks.
> 
> Please resend this patch via git send-mail. You can add my "Tested-by:
> Yegor Yefremov <yegorslists@googlemail.com>".

Done.

> Btw have you already filed a bug request by Qt?

No, at least not yet. I will think about that, but it would require a lot of time to
describe why/how. There are several other problems in the qt5base configure script, but I
haven't taken the time to patch these as well...
It's a pity a day only has 24 hours ;).

regards,

Jaap
diff mbox

Patch

From 4f589ddce4dbf93ab1b43f1aed6cc7b9de475d12 Mon Sep 17 00:00:00 2001
From: Jaap Crezee <jaap@jcz.nl>
Date: Sat, 25 Jul 2015 18:17:38 +0200
Subject: [PATCH 1/1] Added extra patch to qt5base package for fixing ccache
 related compile error with new QT 5.5

Signed-off-by: Jaap Crezee <jaap@jcz.nl>
---
 package/qt5/qt5base/0008-ccache_buildroot_fix.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/qt5/qt5base/0008-ccache_buildroot_fix.patch

diff --git a/package/qt5/qt5base/0008-ccache_buildroot_fix.patch b/package/qt5/qt5base/0008-ccache_buildroot_fix.patch
new file mode 100644
index 0000000..62aa57b
--- /dev/null
+++ b/package/qt5/qt5base/0008-ccache_buildroot_fix.patch
@@ -0,0 +1,16 @@ 
+Author: Jaap Crezee <jaap@jcz.nl>
+---
+diff --git a/mkspecs/features/device_config.prf b/mkspecs/features/device_config.prf
+index cd3a0cf..674b3dd 100644
+--- a/mkspecs/features/device_config.prf
++++ b/mkspecs/features/device_config.prf
+@@ -35,6 +35,9 @@ defineTest(deviceSanityCheckCompiler) {
+             return()
+     }
+ 
++    # Last resort, check if we can still execute it (for example in Buildroot/Crosscompile...)
++    system("which $$QMAKE_CXX > /dev/null"):return()
++
+     # QMAKE_CXX does not point to a compiler.
+     error("Compiler $$QMAKE_CXX not found. Check the value of CROSS_COMPILE -device-option")
+ }
-- 
2.4.6