build geany from geany.git
OS: Ubuntu 18.04 64bit
### ### ###
### install from geany ppa too
$ sudo add-apt-repository ppa:geany-dev/ppa
$ sudo apt-get update
$ sudo apt-get install geany geany-plugins
### end session
### ### ###
### build from source code : geany.git
###
$ cd ~/jeffer
$ git clone https://github.com/geany/geany.git
$ cd geany
$ git reset 1.37.1
~/jeffer/geany$ ./autogen.sh
**Error**: You must have `intltool' installed.
**Error**: You must have `glib' installed.
You must have pkg-config installed to compile .
$ sudo apt-get install pkg-config
$ sudo apt install intltool
$ sudo apt install libglib2.0-dev
$ ./autogen.sh
$ apt search libgtk-3
### libgtk-3-dev
$ sudo apt install libgtk-3-dev
$ ./autogen.sh
configure: error: Documentation enabled but rst2html not found.
#### open another terminal to another directory
#### from https://pypi.org/project/rst2html/
#### download rst2html-2020.7.4.tar.gz (1.5 kB)
$ tar xvf rst2html-2020.7.4.tar.gz
$ sudo pip install rst2html
The directory '/home/jeffer/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jeffer/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rst2html
Downloading https://files.pythonhosted.org/packages/29/8e/050653d3f88c7c0ef3ba6df84421dc022d84f152e2c84fc23d49b2d60d1f/rst2html-2020.7.4.tar.gz
Collecting docutils (from rst2html)
Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
100%
Installing collected packages: docutils, rst2html
Running setup.py install for rst2html ... done
Successfully installed docutils-0.17.1 rst2html-2020.7.4
####
#### back to /geny folder terminal
####
$ ./autogen.sh
.......
Install Geany in : /usr/local
Compiling Git revision : 26f4813f
Using GTK version : 3.22.30
Enable binary relocation : no
Build with plugin support : yes
Use (UNIX domain) socket support : yes
Use virtual terminal support (VTE) : yes
Build HTML documentation : yes
Build PDF documentation : no
Build API documentation : no
Generate GtkDoc header : no
Configuration is done OK.
Now type 'make' to compile.
$ ./configure
~/jeffer/geany$ ./autogen.sh
**Error**: You must have `intltool' installed.
**Error**: You must have `glib' installed.
You must have pkg-config installed to compile .
$ sudo apt-get install pkg-config
$ sudo apt install intltool
$ sudo apt install libglib2.0-dev
$ ./autogen.sh
$ apt search libgtk-3
### libgtk-3-dev
$ sudo apt install libgtk-3-dev
$ ./autogen.sh
configure: error: Documentation enabled but rst2html not found.
#### open another terminal to another directory
#### from https://pypi.org/project/rst2html/
#### download rst2html-2020.7.4.tar.gz (1.5 kB)
$ tar xvf rst2html-2020.7.4.tar.gz
$ sudo pip install rst2html
The directory '/home/jeffer/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jeffer/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rst2html
Downloading https://files.pythonhosted.org/packages/29/8e/050653d3f88c7c0ef3ba6df84421dc022d84f152e2c84fc23d49b2d60d1f/rst2html-2020.7.4.tar.gz
Collecting docutils (from rst2html)
Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
100%
Installing collected packages: docutils, rst2html
Running setup.py install for rst2html ... done
Successfully installed docutils-0.17.1 rst2html-2020.7.4
####
#### back to /geny folder terminal
####
$ ./autogen.sh
.......
Install Geany in : /usr/local
Compiling Git revision : 26f4813f
Using GTK version : 3.22.30
Enable binary relocation : no
Build with plugin support : yes
Use (UNIX domain) socket support : yes
Use virtual terminal support (VTE) : yes
Build HTML documentation : yes
Build PDF documentation : no
Build API documentation : no
Generate GtkDoc header : no
Configuration is done OK.
Now type 'make' to compile.
$ ./configure
### Makefile use GCC flag use -O0 -g3 to maximize debug info
$ make
$ make
### whereis execute file .../geany/src/.lib/geany
$ sudo make install
$ sudo make install
### $ make clean ### to make sure clean
### entry point is main.c main()
### I untar eclipse-cpp-2021-03-R-linux-gtk-x86_64.tar.gz to a folder , run eclipse, import geany project , It can debug.
1 個意見:
#### build & install geany & geany-plugins
#### install at $HOME/geany/prefix
$ cd ~
$ mkdir jeffer ; cd ~/jeffer
$ git clone https://github.com/geany/geany.git
$ cd geany
$ git reset 1.37.1 --hard
$ ./autogen.sh --prefix=$HOME/geany/prefix
$ make
$ make install
$ ~/geany/prefix/bin/geany -c ~/geany/prefix/config
$ cd ~/jeffer
$ git clone https://github.com/geany/geany-plugins.git
$ cd geany-plugins
$ git reset 1.37.0 --hard
### $ locate pkgconfig
### $ sudo cp ~/geany/prefix/lib/pkgconfig/geany.pc /usr/lib/x86_64-linux-gnu/pkgconfig
### export PKG_CONFIG_PATH=~/jeffer/geany #### this also work
$ export PKG_CONFIG_PATH=~/geany/prefix/lib/pkgconfig
$ pkg-config --modversion geany
1.37.1
### $ ./autogen.sh
$ ./autogen.sh --prefix=$HOME/geany/prefix
geany-plugins-1.37
Build Environment:
Build Features:
Plugins:
Features:
$ make
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁