ubuntu 10.04 安装 CELayoutEditor-0.7.1

本文档详细介绍了在Ubuntu 10.04上安装CEGUI的CELayoutEditor 0.7.1的步骤,包括检查和安装wxWidgets及GTK+的依赖。在安装过程中,遇到wxWidgets版本不兼容及GTK+配置问题,通过安装指定版本的GTK+和解决依赖问题,最终成功完成安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


一、下载 CELayoutEditor

下载 CELayoutEditor

http://www.cegui.org.uk/wiki/index.php/Main_Page

查看 readme


Linux/Mac Build Instructions:
------------------------------------------


If you are running Linux or Max, check http://www.cegui.org.uk/wiki/index.php/Getting_Started.



On Linux

  • Enter ./configure --with-opengl --enable-unicode
  • Enter make
  • Enter make install

dengpei@dengpei-laptop:~/ogre/CEGUI/CELayoutEditor-0.7.1$ ./configure --with-opengl --enable-unicode

...

checking for wxWidgets version >= 2.8.0... no (version 2.6.3 is not new enough)
configure: error:
    wxWidgets must be installed on your system
    but wx-config script couldn't be found.


    Please check that wx-config is in path, the directory
    where wxWidgets libraries are installed (returned by
    wx-config - -libs' command) is in LD_LIBRARY_PATH or
    equivalent variable and wxWidgets version is 2.8.0 or above.
  
[1]+  Done                    gedit readme.txt
dengpei@dengpei-laptop:~/ogre/CEGUI/CELayoutEditor-0.7.1$


二、安装wxWidgets

提示 安装wxWidgets
下载:

http://www.wxwidgets.org/


查看 readme-gtk.txt

dengpei@dengpei-laptop:~/ogre/CEGUI/wxWidgets-2.8.12$ gedit readme-gtk.txt &
[1] 12734
dengpei@dengpei-laptop:~/ogre/CEGUI/wxWidgets-2.8.12$


Information on how to install can be found in the file 
INSTALL.txt, but if you cannot wait, this should work on
many systems:


    mkdir build_gtk
    cd build_gtk
    ../configure
    make
    su <type root password>
    make install
    ldconfig



dengpei@dengpei-laptop:~/ogre/CEGUI/wxWidgets-2.8.12/buildgtk$ ../configure --with-gtk

...

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
                            
dengpei@dengpei-laptop:~/ogre/CEGUI/wxWidgets-2.8.12/buildgtk$ 


三 安装 GTK+ 

提示需要安装 GTK+ 


http://www.gtk.org/download/linux.php


Download for GNU/Linux and Unix

Requirements

You will need to get the GLib, Pango, Gdk-Pixbuf, ATK and GTK+ packages to build GTK+.
You may also need some of the external dependencies that are also linked for each version listed below.

Stable Release

To build GTK+ 3.2, see the installation guide. For additional help, the FAQ is a good starting point.

Older Versions

Some applications still require GTK+ 2, an older stable version of GTK+. You can have the run-time and development environments for GTK+ 3.x, GTK+ 2.x and GTK+ 1.2 installed simultaneously on your computer.

Version Packages
GTK+ 3.0 Sources
GTK+ 2.24 Sources
GTK+ 2.20 Sources
GTK+ 2.18 Sources
GTK+ 2.16 Sources
GTK+ 2.14 Sources
GTK+ 2.12 Sources
GTK+ 2.10 Sources
GTK+ 2.8 Sources
GTK+ 2.6 Sources
GTK+ 2.4 Sources
GTK+ 1.2 Sources

运气好的话,能安装成功,

或许 选择 低版本 GTK+ 2 可以 。


不过 安装 Glib之后 会出现

“打开我的电脑提示

Nautilus 无法处理“computer”位置”

问题。

解决办法

dengpei@dengpei-laptop:/usr/local/lib$ ls libgio-2.0.
libgio-2.0.la.backup           libgio-2.0.so.0.backup
libgio-2.0.so.0.3000.0.backup  libgio-2.0.so.backup
dengpei@dengpei-laptop:/usr/local/lib$


最终 我参考 http://blog.csdn.net/pathfinder163/article/details/7219816

安装 gtk


接着 回到 wxWidgets 、CELayoutEditor 都很顺利。


./configure

make

sudo make install


dengpei@dengpei-laptop:/usr/local/bin$ ls
CELayoutEditor            glib-compile-schemas  OgreMeshUpgrader
CELayoutEditor.ini        glib-genmarshal       OgreXMLConverter
CELayoutEditor.log        glib-gettextize       pango-querymodules
gdbus                     glib-mkenums          pango-view
gdbus-codegen             gobject-query         pkg-config
gdk-pixbuf-csource        gsettings             wx-config
gdk-pixbuf-query-loaders  gtester               wxrc
gio-querymodules          gtester-report        wxrc-2.8
dengpei@dengpei-laptop:/usr/local/bin$ 


四、success










评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值