2015/5/22
apt-get install qt4-qmake qt4-dev-tools g++ make -y apt-get install cups-pdf inkscape -y
mkdir ~/BSch;cd ~/BSch wget http://www.suigyodo.com/online/e/qbsv047.tgz wget http://www.suigyodo.com/online/e/qlcv043.tgz tar xzf qbsv047.tgz cd qbsv047/qtbsch3v echo "#include <stdlib.h>" >> stdafx.h echo "#include <limits.h>" >> stdafx.h echo "#include <string.h>" >> stdafx.h mv application.cpp application.org sed -e "s/::QVariant//g" application.org > application.cpp rm application.org qmake-qt4;make cd ~/BSch tar xzf qlcv043.tgz cd qlcv043/qtlcov echo "#include <stdlib.h>" >> stdafx.h echo "#include <limits.h>" >> stdafx.h echo "#include <string.h>" >> stdafx.h mv application.cpp application.org sed -e "s/::QVariant//g" application.org > application.cpp rm application.org qmake-qt4;make cd ~/BSch ln -s ~/BSch/qbsv047/qtbsch3v/qtbsch3v ~/BSch/qtbsch3v ln -s ~/BSch/qlcv043/qtlcov/qtlcov ~/BSch/qtlcov convert ~/BSch/qbsv047/qtbsch3v/bsch.ico ~/BSch/bsch.png convert ~/BSch/qlcv043/qtlcov/lco.ico ~/BSch/lco.png #ライブラリのダウンロードは実験室に限定 wget http://www.takahashi.lab/~nt/technicalnote/debian8/LIBnt.tar.bz2 && tar xf LIBnt.tar.bz2 && rm LIBnt.tar.bz2
~/BSch/qtbsch3vBSchは回路図をイメージ(png)としてエクスポートできる。
convert -density 720 ~/print.pdf -background white -flatten -alpha off ~/bsch.png
~/BSch/qtlcov