ubuntu 10.04 安装 CELayoutEditor-0.7.1


一、下载 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.


  • 1 Abstract
  • 2 Using a distribution
  • 3 Compiling yourself
    • 3.1 Setup CEGUI
  • 4 Compile WxWidgets
    • 4.1 On Windows
      • 4.1.1 Recommended: WxWidgets (2.8.11)
      • 4.1.2 WxWidgets (2.9.0)
      • 4.1.3 WxWidgets (2.8.3 - 2.8.10)
      • 4.1.4 WxWidgets (2.6.4)
      • 4.1.5 WxWidgets (less than 2.6.4)
    • 4.2 On Linux
      • 4.2.1 Setup the editor
        • 4.2.1.1 Checkout
        • 4.2.1.2 Compile
    • 4.3 Setup CELayoutEditor

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.

  • GTK+ 3.2
  • GLib 2.30
  • Pango 1.28
  • Gdk-Pixbuf 2.24
  • ATK 2.0

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



ubuntu 10.04 安装 CELayoutEditor-0.7.1_第1张图片







你可能感兴趣的:(ubuntu,Build,Path,library,dependencies,gtk)