下载ceed-0.8.0
https://sourceforge.net/projects/crayzedsgui/files/CEED/0.8/
解压后打开README看到,
### Dependencies
1. Python 2.7+ (but not Python 3)
> If you have *32bit* CEGUI you have to use *32bit* Python, the arch has to match!
> It is recommended to use the same toolchain to build PyCEGUI that your Python was built with, on Windows with Python 2.7 this will most likely be *MSVC 2008*.
2. CEGUI 0.8.x with PyCEGUI //就是编译安装cegui 0.8.7,编译前打开python模块 CMakeCache.txt CEGUI_BUILD_PYTHON_MODULES:BOOL=ON
3. Qt 4.7+ with PySide
4. PyOpenGL //新立德安装
这几个依赖就是 PySide 有点麻烦,因为软件是用PySide1编译的,PySide1的Linux版又不好找,而且PySide1依赖与Qt4,ceed还要用到Qt4中qtwebkit
先在用新德立安装libqt4-dev libqt4-opengl-dev ,新德里的安装包里面不带qtwebkit,只能自己手动编译
在源里找到qt 4.8.7的源代码
http://pkg.loongnix.cn/loongnix/pool/main/q/qt4-x11/qt4-x11_4.8.7+lnd.6.tar.gz
解压后 编译 qt 4.8.7
./configure -opensource -confirm-license -release -prefix /usr/local/qt4.8.7 -webkit
注意,后面的-webkit一定要加上
编译的过程中有可能会出错
'std::tr1' has not been declared
编辑 mkspecs/common/gcc-base.conf 在后面加上一句
QMAKE_CXXFLAGS += -std=gnu++98
然后继续编译,中途有可能继续出错 [Makefile:965:sub-examples-make_default-ordered]
这个错误是示例中出现了,已经不重要了,只要qtwebkit.so编译好了就行了
打开 /lib 把与qtwebkit相关的所有文件cp到 /usr/lib/loongarch64-linux-gnu
然后把 /include/QtWebKit cp 到 /usr/include/qt4 下面
把qtwebkit.so编译到
编译Qt 4.7
g++base
QMAKE_CXX = g++ -std=gnu++98
标签:0.8,ceed,PyCEGUI,Python,++,编译,3A5000,qtwebkit From: https://www.cnblogs.com/zxdplay/p/16912946.html