ubuntu 20.04
Pre-requisites for Ubuntu:
sudo apt install libwxgtk3.0-gtk3-dev libwxgtk-media3.0-gtk3-dev meson
Build and run:
git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
meson _build --prefix $PWD/_install --buildtype=release
ninja -C _build install
./_install/bin/wxformbuilder
出現(xiàn)下面的錯誤:
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/liblayout.so: cannot open shared object file: No such file or directory
21:36:00: Error loading library /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/liblayout <database.cpp@1447>
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libcommon.so: cannot open shared object file: No such file or directory
21:36:00: Error loading library /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libcommon <database.cpp@1447>
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libadditional.so: cannot open shared object file: No such file or directory
21:36:00: Error loading library /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libadditional <database.cpp@1447>
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libforms.so: cannot open shared object file: No such file or directory
21:36:00: Error loading library /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libforms <database.cpp@1447>
21:36:00: Could not set current working directory (error 2: No such file or directory)
21:36:00: /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libcontainers.so: cannot open shared object file: No such file or directory
21:36:00: Error loading library /home/george/tx/wxFormBuilder/_install/lib/wxformbuilder/libcontainers <database.cpp@1447>
解決方法:
cp -r _install/lib/x86_64-linux-gnu/wxformbuilder/ _install/lib/
安裝成功嫂便。
deepin系統(tǒng)安裝wxPython捞镰,還需要先安裝:
sudo apt-get install build-essential gdb