Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qbs debug ERROR: Unexpected command line parameter 'debug'. #29

Open
code4lala opened this issue Jun 15, 2023 · 2 comments
Open

qbs debug ERROR: Unexpected command line parameter 'debug'. #29

code4lala opened this issue Jun 15, 2023 · 2 comments

Comments

@code4lala
Copy link

code4lala commented Jun 15, 2023

Hi, I followed the doc and tried to build Open-TEE on Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-73-generic x86_64)
https://open-tee.github.io/documentation/
after repo sync, creating a new file /etc/opentee.conf and pasting the contents into it, I run qbs debug

user@ubuntu:~/Open-TEE$ repo sync -c --force-sync -j32
Fetching projects: 100% (10/10), done.
repo sync has finished successfully.
user@ubuntu:~/Open-TEE$ cat /etc/opentee.conf
[PATHS]
ta_dir_path = /home/user/Open-TEE/gcc-debug/TAs
core_lib_path = /home/user/Open-TEE/gcc-debug
opentee_bin = /home/user/Open-TEE/gcc-debug/opentee-engine
subprocess_manager = libManagerApi.so
subprocess_launcher = libLauncherApi.so
user@ubuntu:~/Open-TEE$ qbs debug
ERROR: Unexpected command line parameter 'debug'.
Expected an assignment of the form <property>:<value>, profile:<profile-name> or config:<configuration-name>.
user@ubuntu:~/Open-TEE$ ls
Android.mk  autogen.sh  CAs  chrome  configure.ac  driver  emulator  install_android.sh  libomnishare  libtee  libtee_pkcs11  Makefile.am  opentee  project  README  TAs  tests
user@ubuntu:~/Open-TEE$

How to solve the qbs error? Thanks for your kind help!

qbs version is

$ qbs -h
Qbs 1.19.2, a cross-platform build tool.
Usage: qbs [command] [command parameters]
Built-in commands:
  build                       Build (parts of) a project. This is the default command.
  clean                       Remove the files generated during a build.
  dump-nodes-tree             Dumps the nodes in the build graph to stdout.
  generate                    Generate project files for another build tool.
  help                        Show general or command-specific help.
  install                     Install (parts of) a project.
  list-products               Lists all products in the project, including sub-projects.
  resolve                     Resolve a project without building it.
  run                         Run an executable generated by building a project.
  session                     Starts a session for an IDE.
  shell                       Open a shell with a product's environment.
  show-version                Print the Qbs version number to stdout.
  status                      Show the status of files in the project directory.
  update-timestamps           Mark the build as up to date.

Auxiliary commands:
  config                      This tool manages qbs settings.
  config-ui  create-project              This tool creates a qbs project from an existing source tree.
  setup-android               This tool creates qbs profiles from Android SDK and NDK installations.
  setup-qt                    This tool creates qbs profiles from Qt versions.
  setup-toolchains            This tool creates qbs profiles from toolchains.
@TanelDettenborn
Copy link
Member

QBS support has been removed. Please refer to the Quickstart Guide about building OpenTEE. Unfortunately guide is tested on Ubuntu 20.04. If there are any issues with 22.04, then please raise a bug!

@code4lala
Copy link
Author

Thanks! I tried the doc, and some steps were different.
The doc told me:

Run opentee and connection test program
/opt/OpenTee/bin/opentee
but I only got opentee-engine in /opt/OpenTee/bin, not opentee binary.

I launched opentee-engine as root, then run conn_test, but conn_test stucked at START: conn test app

I searched the opentee-engine process by doing ps aux |grep tee and killed kill -9 <pid of tee_manager>, then conn_test printed some ERROR message which lead me to /var/log/syslog.
After checking syslog it seemed tee_launcher could not open libmbedcrypto.so.11, I didn't know why tee_launcher could not find the libmbedcrypto.so.11 located in /usr/local/lib, so I did ln -s /usr/local/lib/libmbedcrypto.so.11 /opt/OpenTee/lib/libmbedcrypto.so.11, then conn_test worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants