在centos7下面编译kicad

1、C++17
参考链接:
https://blog.csdn.net/mandiheyanyu/article/details/118995670

2、git
安装步骤:

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
yum remove git
make prefix=/usr/local/git all
make prefix=/usr/local/git install
gedit /etc/profile
PATH=$PATH:/usr/local/git/bin
export PATH

参考链接:
https://blog.csdn.net/weixin_43842146/article/details/128332693

3、cmake
需要安装gcc make automake openssl openssl-devel
安装步骤:

cd cmake-3.25.1
	./bootstrap && make -j4 && sudo make install

参考链接:
https://blog.csdn.net/qq_19734597/article/details/104200371

4、glm
安装步骤:

sudo yum remove -y glm-devel
	git clone https://github.com/g-truc/glm
	cd glm
	git checkout 0.9.8
	sudo cp -a glm /usr/include

5、boost
安装步骤:

./bootstrap.sh --prefix=/usr/local/boost_1_81_0
sudo ./b2 install
export BOOST_ROOT=/usr/local/boost_1_81_0

6、ngspice
安装步骤:

sudo yum install autoconf automake libtool bison flex ncurses readline fontconfig freetype libomp xorg-libXaw
	./autogen.sh
	./compile_linux_shared.sh
 	mkdir release
 	cd release
 	../configure --with-ngshared --enable-xspice --disable-debug --enable-cider --enable-openmp
 	make 2>&1 | tee make.log
 	sudo make install

7、OpenCASCADE(OCC)
安装步骤:

mkdir build
cd build
cmake -DINSTALL_DIR=/opt/OCCT-7_6_0 …
make -j6
sudo make install

cat “/opt/OCCT-7_6_0/lib” > /etc/ld.so.conf.d/OCTT.conf
sudo ldconfig

8、Python 3.6.0以上
安装步骤:

	yum install -y openssl-static
	./configure --prefix=/usr/local/python3
	make
	sudo make install
	#将原来的链接备份
	mv /usr/bin/python /usr/bin/python.bak

	#添加python3的软链接
	ln -s /usr/local/python3/bin/python3.7 /usr/bin/python

	#测试是否安装成功了
	python -V

参考链接:
https://blog.csdn.net/weixin_42349277/article/details/114490649

9、wxWidgets
安装步骤:

mkdir build
cd build
…/configure --with-opengl --with-gtk=3 --prefix=/opt/wxWidgets-3.2.1
make -j6
sudo make install
make clean

sudo ldconfig
export PATH=$PATH:/opt/wxWidgets-3.2.1/bin

11、glew-2.1.0
安装步骤:

make
sudo make install

12、freeglut-3.4.0
安装步骤:

cp ./altbuild/config.h.unix config.h
cp ./altbuild/makefile makefile
make
sudo make install

10、kicad
安装步骤:

mkdir -p build/release
cd build/release
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DOCC_LIBRARY_DIR=/opt/OCCT-7_6_0 \
-DOCC_INCLUDE_DIR=/opt/OCCT-7_6_0/include/opencascade \
-DCMAKE_INSTALL_PREFIX=/opt/KiCad-6.0.10 \
-DDEFAULT_INSTALL_PATH=/opt/KiCad-6.0.10/kidata \
-DwxWidgets_CONFIG_EXECUTABLE=/opt/wxWidgets-3.2.1/bin/wx-config \
-DwxWidgets_ROOT_DIR=/opt/wxWidgets-3.2.1 \
-DwxWidgets_LIBRARIES=/opt/wxWidgets-3.2.1/lib \
-DwxWidgets_INCLUDE_DIRS=/opt/wxWidgets-3.2.1/include/wx-3.2/wx \
-DKICAD_BUILD_I18N=ON \
-DKICAD_INSTALL_DEMOS=ON \
-DKICAD_PCM=ON \
-DKICAD_SPICE=ON \
-DKICAD_STDLIB_DEBUG=OFF \
-DKICAD_VERSION_EXTRA=custom \
-DKICAD_SCRIPTING_WXPYTHON=OFF \
-DKICAD_USE_EGL=ON \
 ../../
make -j6
sudo make install

参考链接:
https://dev-docs.kicad.org/en/build/
http://idoka.ru/blog/posts/howto-install-kicad6-on-centos/

你可能感兴趣的:(kicad,C++,Kicad,EDA,Centos,编译)