http://www.openswc.com/forum.php?mod=viewthread&tid=308&extra=page%3D1
Install GNOME development environment on Ubuntu
https://live.gnome.org/DeveloperTools/Installation/UbuntuContents
Install GNOME development environment on Ubuntu
Minimal version requirements
Install the developer-tools
Install additional libraries needed for the GStreamer demos
Install required packages for your favourite programming language
C
C++
Python
Vala
JavaScript
Keep this page up-to-date
Minimal version requirements
For setting up a decent GNOME development environment you should be on a fairly recent distribution to avoid fighting with old problems and dependencies. The following instructions assume that you have installed Ubuntu 11.10 "Oneiric Ocelot" (or higher) on your computer already.
Install the developer-tools
First you need to install the basic tools needed for GNOME development. To do so, install these packages either using Software Center or the apt-get command line utility:
anjuta - Integrated development environment (or use your favorite IDE or text editor)
glade - Interface designer
devhelp - API Browser
Or alternatively,
$ sudo apt-get install anjuta glade devhelp
Install additional libraries needed for the GStreamer demos
If you want to follow the tutorials on http://developer.gnome.org you need to install some additional GStreamer packages:
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse
Or alternatively,
$ sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse
Install required packages for your favourite programming language
You can decide which programming language you are going to use and install the appropriate packages for one or more languages. The following subsections will the packages you have to install:
C
For C programming you need to install the development version of the important GNOME libraries. Those contain the header files and additional linker information:
libgtk-3-dev
libgstreamer0.10-dev
libclutter-1.0-dev
libwebkitgtk-3.0-dev
libgda-5.0-dev
Or alternatively,
$ sudo apt-get install libgtk-3-dev libgstreamer0.10-dev libclutter-1.0-dev libwebkitgtk-3.0-dev libgda-5.0-dev
In addition, you will want to install the documentation packages of this libraries so you can view them in the API browser:
libgtk-3-doc
gstreamer0.10-doc
libclutter-1.0-doc
libwebkitgtk-3.0-doc (not available currently)
libgda-5.0-doc
Or alternatively,
$ sudo apt-get install libgtk-3-doc gstreamer0.10-doc libclutter-1.0-doc libgda-5.0-doc
C++
Be sure to have the C++-Compiler installed:
g++
Or alternatively,
$ sudo apt-get install g++
For C++ programming you need to install the development version of the important GNOME libraries. Those contain the header files and additional linker information:
libgtkmm-3.0-dev
libgstreamermm-0.10-dev
libcluttermm-1.0-dev (not available yet)
libgdamm5.0-dev
Or alternatively,
$ sudo apt-get install libgtkmm-3.0-dev libgstreamermm-0.10-dev libgdamm5.0-dev
In addition, you will want to install the documentation packages of this libraries so you can view them in the API browser:
libgtkmm-3.0-doc
libgstreamermm-0.10-doc
libcluttermm-1.0-doc (not available currently)
libgdamm5.0-doc
Or alternatively,
$ sudo apt-get install libgtkmm-3.0-doc libgstreamermm-0.10-doc libgdamm5.0-doc
Python
Python uses GObjectIntrospection which means you don't need to install additional development libraries but you should be sure to have a decent python environment and the introspection bindings installed:
python
python-gobject
Or alternatively,
$ sudo apt-get install python python-gobject
Vala
As the Vala compiler actually translates your code into C code you will have to install all the packages listed in the C section and in addition you need to install the vala compiler:
valac
vala-utils (Not available in Ubuntu 12.04)
vala-doc
Or alternatively,
$ sudo apt-get install valac vala-doc
JavaScript
JavaScript uses GObjectIntrospection which means you don't need to install additional development libraries but you need to have the JavaScript intepreter installed though:
gjs
libgjs-dev
Or alternatively,
$ sudo apt-get install gjs libgjs-dev
Note there is also Seed which is another JavaScript implementation used in GNOME but the examples on developer.gnome.org are all done with gjs.
Keep this page up-to-date
Distribution information can change rather fast so please correct errors found on this page. If you are not able to figure out yourself, please drop a mail to [email protected]. Thanks!
Note if there is errors found on this file, please drop a mail to [url=mailto[email protected]][email protected][/url].
Thanks!
以下是openswc翻譯的中文版本,如有錯誤,請幫忙指出和發郵件給[url=mailto[email protected]][email protected][/url]。
Chinese (simplified) 中文版本
在Ubuntu上安裝GNOME開發環境
目錄
1.在Ubuntu上安裝GNOME開發環境
1.最低版本要求
2.安裝開發工具
3.安裝GStreamer demos版本所需的額外庫
4.安裝你所喜愛的編程語言的開發包
1.C
2.C++
3.Python
4.Vala
5.JavaScript
5.文檔更新
最低版本要求
爲了搭建一個良好的GNOME開發環,您需要一個最新的ubuntu發行版,這樣可以避免遇到舊的問題和依賴舊庫。以下步驟基於您在電腦上已經安裝了Ubuntu 11.10 "Oneiric Ocelot"版本 (或者更高版本) 。
安裝開發工具
首先您需要安裝最基本的開發工具。這些工具包可以通過軟件中心或者 apt-get 命令安裝:
anjuta - 集成開發環境IDE (或者使用您自己喜愛的其他IDE,或者使用文本編輯器)
glade - 交互設計工具
devhelp - API瀏覽器
用 apt-get 命令安裝
$ sudo apt-get install anjuta glade devhelp
安裝GStreamer demos版本所需的額外庫
如果你想參考手冊http://developer.gnome.org,需要安裝一些額外的GStreamer包:
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse
用 apt-get 命令安裝
sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse
安裝你所喜愛的編程語言的開發包
確定您想使用的編程語言,可以是一種或者多種,根據您所選擇的語言安裝相應的軟件包。
您需要安裝的軟件包有一下這些:
C
對於C語言,您需要安裝一些重要的GNOME庫。以下軟件包包含了所需要的頭文件和鏈接信息:
libgtk-3-dev
libgstreamer0.10-dev
libclutter-1.0-dev
libwebkitgtk-3.0-dev
libgda-5.0-dev
用 apt-get 命令安裝
$ sudo apt-get install libgtk-3-dev libgstreamer0.10-dev libclutter-1.0-dev libwebkitgtk-3.0-dev libgda-5.0-dev
另外,您可以通過安裝以上這些軟件庫對應的文檔包,在API瀏覽器中閱讀這些文檔:
libgtk-3-doc
gstreamer0.10-doc
libclutter-1.0-doc
libwebkitgtk-3.0-doc (當前不可用)
libgda-5.0-doc
用 apt-get 命令安裝
$ sudo apt-get install libgtk-3-doc gstreamer0.10-doc libclutter-1.0-doc libgda-5.0-doc
C++
確保安裝C++編譯器:
g++
用 apt-get 命令安裝
$ sudo apt-get install g++
對於C++,您需要安裝一些重要的GNOME庫。以下軟件包包含了所需要的頭文件和鏈接信息:您:
libgtkmm-3.0-dev
libgstreamermm-0.10-dev
libcluttermm-1.0-dev (not available yet)
libgdamm5.0-dev
用 apt-get 命令安裝
$ sudo apt-get install libgtkmm-3.0-dev libgstreamermm-0.10-dev libgdamm5.0-dev
另外,您可以通過安裝以上這些軟件庫對應的文檔包,在API瀏覽器中閱讀這些文檔:
libgtkmm-3.0-doc
libgstreamermm-0.10-doc
libcluttermm-1.0-doc (not available currently)
libgdamm5.0-doc
用 apt-get 命令安裝
$ sudo apt-get install libgtkmm-3.0-doc libgstreamermm-0.10-doc libgdamm5.0-doc
Python
Python使用GObjectIntrospection,這樣您就不需要安裝額外的開發包,但是你需要保證有一個良好的python開發環境和安裝introspection bindings:
python
python-gobject
用 apt-get 命令安裝
$ sudo apt-get install python python-gobject
Vala
由於Vala 編譯器實際上會把您的Vala源代碼轉換成C代碼,這樣您就需要安裝C語言部分列出的所有軟件包,另外,您還需安裝Vala 編譯器:
valac
vala-utils (Not available in Ubuntu 12.04)
vala-doc
用 apt-get 命令安裝
$ sudo apt-get install valac vala-doc
JavaScript
JavaScript使用GObjectIntrospection,,這樣您就不需要安裝額外的開發庫,但是你需要通過以下開發包安裝JavaScript intepreter:
gjs
libgjs-dev
用 apt-get 命令安裝
$ sudo apt-get install gjs libgjs-dev
Note 還有另外一個JavaScript implementation Seed 在GNOME中使用,但是developer.gnome.org上的程序例子都是用gjs開發的.
文檔更新
由於發行版信息改變得非常快,本頁可能存在錯誤,請幫忙更正。如果您不清楚出現的問題,請發郵件給[email protected].謝謝。