#30 Build Error

Open
opened 1 year ago by jianghukangke · 3 comments

use ubuntu docker container build build Error

cmake --build . -- -j4
.......
[ 70%] Linking CXX static library ../lib/libkeystone.a
[ 70%] Built target keystone
gmake: *** [Makefile:156: all] Error 2
use ubuntu docker container build build Error ``` text cmake --build . -- -j4 ....... [ 70%] Linking CXX static library ../lib/libkeystone.a [ 70%] Built target keystone gmake: *** [Makefile:156: all] Error 2 ```
jianghukangke commented 1 year ago
Poster
cmake --build .
[  3%] Built target navicat-keygen
[  3%] Building C object _deps/unicorn-build/CMakeFiles/unicorn-common.dir/qemu/util/bitmap.c.o
In file included from /root/navicat16-build/navicat-keygen/build/_deps/unicorn-src/qemu/util/bitmap.c:12:
/root/navicat16-build/navicat-keygen/build/_deps/unicorn-src/qemu/include/qemu/osdep.h:30:10: fatal error: config-host.h: No such file or directory
   30 | #include "config-host.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [_deps/unicorn-build/CMakeFiles/unicorn-common.dir/build.make:216: _deps/unicorn-build/CMakeFiles/unicorn-common.dir/qemu/util/bitmap.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:509: _deps/unicorn-build/CMakeFiles/unicorn-common.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
``` text cmake --build . [ 3%] Built target navicat-keygen [ 3%] Building C object _deps/unicorn-build/CMakeFiles/unicorn-common.dir/qemu/util/bitmap.c.o In file included from /root/navicat16-build/navicat-keygen/build/_deps/unicorn-src/qemu/util/bitmap.c:12: /root/navicat16-build/navicat-keygen/build/_deps/unicorn-src/qemu/include/qemu/osdep.h:30:10: fatal error: config-host.h: No such file or directory 30 | #include "config-host.h" | ^~~~~~~~~~~~~~~ compilation terminated. gmake[2]: *** [_deps/unicorn-build/CMakeFiles/unicorn-common.dir/build.make:216: _deps/unicorn-build/CMakeFiles/unicorn-common.dir/qemu/util/bitmap.c.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:509: _deps/unicorn-build/CMakeFiles/unicorn-common.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2 ```
jianghukangke commented 1 year ago
Poster
  • 问题解决了,
  • 需要安装 pkg-config, apt-get install pkg-config
  • 然后重新执行
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -- -j8
  • 搞定
- 问题解决了, - 需要安装 pkg-config, `apt-get install pkg-config` - 然后重新执行 ```shell cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build . -- -j8 ``` - 搞定
ift commented 5 months ago

你用的哪个版本的ubuntu呀,我也是用的ubuntu23.10的容器但是还是不行

你用的哪个版本的ubuntu呀,我也是用的ubuntu23.10的容器但是还是不行
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.