1.boost 版本 1.65
编译过程
(1)./bootstrap.sh
(2) ./b2 toolset=qcc target-os=qnxnto threadapi=pthread link=static -l240 --layout=system --without-python cxxflags="-Vgcc_ntoarmv7le -Y_cxx -Wc,-std=gnu++14 -D_LITTLE_ENDIAN" linkflags="-Vgcc_ntoarmv7le -Y_cxx -lang-c++" -j4
2.使用
(1)qt pro工程文件中
#boost
INCLUDEPATH+= /home/zoutianming/qnx700/opensource/boost_1_65_0
LIBS += -L/home/zoutianming/qnx700/opensource/boost_1_65_0/stage/lib -lboost_system -lboost_thread -lboost_date_time -lboost_program_options
LIBS += -lstdc++
(2)BSP
由于依赖stdc++库,BSP中需要加入文件 libstdc++.so.6
3.qcc编译选项
-Y lib_type
Select the C++ library type to be used (if available); lib_type can be:
_cxx — LL