AnyQ在树莓派4B上编译的问题
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 657
- PR merge metrics
- No merged PRs in 30d
Description
编译环境:
cmake 3.2.2(原来是比较高版本的,后来编译一直报各种乱七八糟的问题,特意按照文档改成3.2.2)
g++ 8.3.0(本来也是想降版本的,但是网上的各种方法,都表示降不到4.8,而且还出现新的各种问题,就恢复了最新的)
bison 3.3.2(觉得版本区别不大,应该是可以直接用的吧)
[ 4%] Built target extern_eigen
[ 9%] Built target extern_zlib
[ 14%] Built target extern_protobuf
[libprotobuf WARNING /home/pi/AnyQ/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: anyq.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING /home/pi/AnyQ/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: http_service.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 19%] Built target proto_build
[ 23%] Built target extern_xgboost
[ 28%] Built target extern_curl
[ 32%] Built target extern_jsoncpp
[ 36%] Built target extern_leveldb
[ 40%] Built target extern_glog
[ 45%] Built target extern_gflags
[ 50%] Built target extern_openssl
[ 50%] Performing install step for 'extern_brpc'
Compiling src/mcpack2pb/generator.o
g++: error: unrecognized command line option ‘-msse4’
g++: error: unrecognized command line option ‘-msse4.2’
make[3]: *** [Makefile:249:src/mcpack2pb/generator.o] 错误 1
make[2]: *** [CMakeFiles/extern_brpc.dir/build.make:67:third_party/brpc/src/extern_brpc-stamp/extern_brpc-install] 错误 2
make[1]: *** [CMakeFiles/Makefile2:249:CMakeFiles/extern_brpc.dir/all] 错误 2
make: *** [Makefile:76:all] 错误 2
绝对按照流程来做的。
查了很久的资料,还是没有解决,请教各位大佬了!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the CMake build on a Raspberry Pi 4B with the versions listed in the issue. Inspect the external brpc build and its Makefile around src/mcpack2pb/generator.o, where the -msse4 and -msse4.2 errors occur; done means the project builds successfully on that target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, raspberry-pi
- Domain
- build-system, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100