ubuntu cross-compile mingw error #106

Open
opened 2020-12-25 15:10:41 +01:00 by qjw2bqn · 1 comment
qjw2bqn commented 2020-12-25 15:10:41 +01:00 (Migrated from github.com)

enviromnet:
ubunut 16.04

hello,i use mingw cross-compile livox-sdk on ubuntu after setup all of the needs,and generate the makefile after excute:
cmake -DCMAKE_TOOLCHAIN_FILE=../w10.cmake ..

but when i excute the command ,make something went wrong:
root1:~/pointCloud/lidar-server/build$ make
Scanning dependencies of target livox_sdk_static
[ 1%] Building CXX object sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj
In file included from /home/root1/pointCloud/lidar-server/sdk_core/src/command_handler/command_handler.h:33,
from /home/root1/pointCloud/lidar-server/sdk_core/src/livox_sdk.cpp:26:
/home/root1/pointCloud/lidar-server/sdk_core/src/device_discovery.h:49: error: ignoring '#pragma comment ' [-Werror=unknown-pragmas]
49 | #pragma comment(lib,"ws2_32.lib")
|
cc1plus: note: unrecognized command-line option '-Wno-c++11-long-long' may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
sdk_core/CMakeFiles/livox_sdk_static.dir/build.make:160: recipe for target 'sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj' failed
make[2]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj] Error 1
CMakeFiles/Makefile2:360: recipe for target 'sdk_core/CMakeFiles/livox_sdk_static.dir/all' failed
make[1]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

image
can you help me ,thanks!

enviromnet: ubunut 16.04 hello,i use mingw cross-compile livox-sdk on ubuntu after setup all of the needs,and generate the makefile after excute: cmake -DCMAKE_TOOLCHAIN_FILE=../w10.cmake .. but when i excute the command ,make something went wrong: root1:~/pointCloud/lidar-server/build$ make Scanning dependencies of target livox_sdk_static [ 1%] Building CXX object sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj In file included from /home/root1/pointCloud/lidar-server/sdk_core/src/command_handler/command_handler.h:33, from /home/root1/pointCloud/lidar-server/sdk_core/src/livox_sdk.cpp:26: /home/root1/pointCloud/lidar-server/sdk_core/src/device_discovery.h:49: error: ignoring '#pragma comment ' [-Werror=unknown-pragmas] 49 | #pragma comment(lib,"ws2_32.lib") | cc1plus: note: unrecognized command-line option '-Wno-c++11-long-long' may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors sdk_core/CMakeFiles/livox_sdk_static.dir/build.make:160: recipe for target 'sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj' failed make[2]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/src/livox_sdk.cpp.obj] Error 1 CMakeFiles/Makefile2:360: recipe for target 'sdk_core/CMakeFiles/livox_sdk_static.dir/all' failed make[1]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 ![image](https://user-images.githubusercontent.com/7847058/103136740-f66de700-46fd-11eb-8307-f1254bcb231d.png) can you help me ,thanks!
qiemy commented 2024-03-08 14:16:37 +01:00 (Migrated from github.com)

I also meet such problem

I also meet such problem
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/Livox-SDK#106