ubuntu cross-compile mingw error #106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
can you help me ,thanks!
I also meet such problem