ubuntu 18编译 R818 TinaSDK 2.0 ROS包,提示 host python 错误,有遇到过的同学么?
-
参考下图配置,使用ubuntu 18环境,尝试 安装了 python pip对应包,解决,发现问题依旧存在,
目前认为是 host端 python存在不兼容问题导致,现尝试更换到Ubuntu 20看是否可以解决
make[3]: Entering directory '/home/book/R818/sdk/r818-tina-sdk/package/lang/python-dateutil' ************** host do not need to execute install ************** if [ "HOST" == "HOST" ]; then export PYTHONPATH="/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7:/home/book/R818/sdk/r818-tina-sdk/out/host//lib/python2.7/site-packages"; export PYTHONDONTWRITEBYTECODE=0; else export PYTHONPATH="/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/staging_dir/target/usr/lib/python2.7:/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/staging_dir/target//usr/lib/python2.7/site-packages:/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/compile_dir/target/python-dateutil-2.7.5/ipkg-install//usr/lib/python2.7/site-packages"; export PYTHONDONTWRITEBYTECODE=1; export _python_sysroot="/home/book/R818/sdk/r818-tina-sdk/out"; export _python_prefix="/usr"; export _python_exec_prefix="/usr"; fi; export PYTHONOPTIMIZE=""; cd /home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/compile_dir/target/host/python-dateutil-2.7.5/; CC="gcc" CCSHARED="gcc -fPIC" CXX="g++" LD="gcc" LDSHARED="gcc -shared" CFLAGS="-O2 -I/home/book/R818/sdk/r818-tina-sdk/out/host/include -I/home/book/R818/sdk/r818-tina-sdk/out/host/usr/include -I/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/staging_dir/target/host/include" CPPFLAGS="-I/home/book/R818/sdk/r818-tina-sdk/out/host/include -I/home/book/R818/sdk/r818-tina-sdk/out/host/usr/include -I/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/staging_dir/target/host/include -I/home/book/R818/sdk/r818-tina-sdk/out/host/include/python2.7" LDFLAGS="-L/home/book/R818/sdk/r818-tina-sdk/out/host/lib -L/home/book/R818/sdk/r818-tina-sdk/out/host/usr/lib -L/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/staging_dir/target/host/lib -lpython2.7 -Wl,-rpath=/home/book/R818/sdk/r818-tina-sdk/out/host/lib" _PYTHON_HOST_PLATFORM=linux2 /home/book/R818/sdk/r818-tina-sdk/out/host/bin/python2.7 ./setup.py install --root="/" --prefix="/home/book/R818/sdk/r818-tina-sdk/out/host" ; Traceback (most recent call last): File "./setup.py", line 86, in <module> "test": Unsupported File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/__init__.py", line 128, in setup _install_setup_requires(attrs) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/dist.py", line 513, in fetch_build_eggs replace_conflicting=True, File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve replace_conflicting=replace_conflicting File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1057, in best_match return self.obtain(req, installer) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1069, in obtain return installer(requirement) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/dist.py", line 580, in fetch_build_egg return cmd.easy_install(req) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 884, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1152, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1138, in run_setup run_setup(setup_script, args) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/home/book/R818/sdk/r818-tina-sdk/out/host/lib/python2.7/site-packages/setuptools/sandbox.py", line 44, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-6NxiQu/setuptools_scm-7.1.0/setup.py", line 20 def scm_version() -> str: ^ SyntaxError: invalid syntax Makefile:65: recipe for target '/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/compile_dir/target/host/python-dateutil-2.7.5/.built' failed make[3]: *** [/home/book/R818/sdk/r818-tina-sdk/out/r818-sc3917/compile_dir/target/host/python-dateutil-2.7.5/.built] Error 1 make[3]: Leaving directory '/home/book/R818/sdk/r818-tina-sdk/package/lang/python-dateutil' package/Makefile:192: recipe for target 'package/lang/python-dateutil/host/compile' failed make[2]: *** [package/lang/python-dateutil/host/compile] Error 2 make[2]: Leaving directory '/home/book/R818/sdk/r818-tina-sdk'
查看了包的Makefile规则
找到软件包源码报错位置 out/r818-sc3917/compile_dir/target/host/python-dateutil-2.7.5/setup.py
我的主机环境这里 python 2.7 python3 都有 -
试试使用Ubuntu 14.04
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号