Fix some python3 related errors during compilation

* qt-h4 cmake now uses PROJECT_SOURCE_DIR to correctly point to the project root folder (fixes compilation error when the user build from sub-folder)
* Change from using python to `python3` (previously compilation would fail if user had python as the default python2.7)
This commit is contained in:
Matheus Garbelini 2020-06-24 02:33:27 +08:00
parent 69f3ffd7c7
commit 4783d25609
3 changed files with 4 additions and 4 deletions

View File

@ -288,7 +288,7 @@ default_target: all
# compile .gatt descriptions
%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
# examples
ant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c

View File

@ -14,10 +14,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
message("${Qt5_DIR}")
find_package(Qt5Core)
include(FindPythonInterp)
find_package(FindPython3)
# BTstack Root
set(BTSTACK_ROOT "../..")
set(BTSTACK_ROOT "${PROJECT_SOURCE_DIR}/../..")
message("BTSTACK_ROOT: ${BTSTACK_ROOT}")
# BTstack include

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# BLE GATT configuration generator for use with BTstack
# Copyright 2019 BlueKitchen GmbH