添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱喝酒的手电筒  ·  Add settings to ...·  昨天    · 
玩手机的饭卡  ·  Cannot install custom ...·  昨天    · 
被表白的围巾  ·  Not displaying data ...·  3 天前    · 
狂野的投影仪  ·  Solved: CCL1043: ...·  3 天前    · 
高大的椅子  ·  ChatGPT Got Internet ...·  5 天前    · 
成熟的脸盆  ·  东风汽车股份有限公司·  2 周前    · 
无邪的仙人球  ·  CD3 x CD22 - Drugs, ...·  3 月前    · 
率性的米饭  ·  QT ...·  8 月前    · 
I am sharing my current build recipe for the Coverity build on Ubuntu 16.04. Mostly it is basically just a normal build with a few commands to set up and run the scanner. I will continue to make the builds as I did in the past, so this is mostly for the purpose if it can maybe be of some use and help for some other projects...
sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update -qq
sudo apt-get install -y libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-signals-dev libboost-thread-dev libboost-python-dev libcoin-dev libdouble-conversion-dev liblz4-dev libglew-dev libopencv-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libmetis-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libproj-dev libpyside-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libshiboken-dev libspnav-dev libvtk6-dev libx11-dev libxerces-c-dev libzipios++-dev lsb-release netgen netgen-headers occt-draw pybind11-dev pyside-tools python3-pyside.qtcore python3-pyside.qtgui python3-pyside.qtsvg python3-pyside.qtuitools python3-pyside.qtxml python3-dev python3-ply swig doxygen
sudo apt-get install -y git curl cmake
sudo apt-get clean
git clone --depth=1600 --branch=master https://github.com/FreeCAD/FreeCAD.git FreeCAD
cd FreeCAD/
git checkout
mkdir build
cd build
cmake -DBUILD_FEM_NETGEN=ON -DFREECAD_USE_PYBIND11=ON ../
cd ..
cd ..
wget https://scan.coverity.com/download/linux64 --post-data "<<<TOKEN>>>" -O coverity_tool.tgz
tar xvzf coverity_tool.tgz
rm coverity_tool.tgz
export PATH=$PATH:/home/user/cov-analysis-linux64-2019.03/bin
echo $PATH
cd FreeCAD/build/
make clean
cov-build --dir cov-int --fs-capture-search ../src make -j4
tar czvf FreeCAD.tgz cov-int
A small note on the command that runs the scan, Coverity supports the analysis of both C++ and python code (and others) and in the above example the command that runs the scan does both at the same time. For running the scanner just on C++ code the command would be... (where --dir cov-int is the output directory for the results)
cov-build --dir cov-int make -j4
And for running it only on the python code the command would be... (where --fs-capture-search ../src is the place of the code to be scanned)
cov-build --dir cov-int --no-command --fs-capture-search ../src
chennes wrote: Sat Sep 03, 2022 8:22 pm A lot of good reminders in this one about the dangers of blindly using auto without considering whether you really want a reference (or a constant, for that matter). Any chance you could expand on that? Perhaps in a new thread would be appropriate?