mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-12 10:13:43 +00:00
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:
parent
69f3ffd7c7
commit
4783d25609
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# BLE GATT configuration generator for use with BTstack
|
||||
# Copyright 2019 BlueKitchen GmbH
|
||||
|
Loading…
x
Reference in New Issue
Block a user