Hi,
after sucessfully compiling, installing and working with GRASS on MacOS I am working now as well on Ubuntu (12.04) and want to compile GRASS (6.4SVN revision 52364). Hence I tried to follow the corresponding wiki to install all the depencies. There are some problems with following dependecnies:
E: Unable to locate package sip4
E: Package 'python-sip4' has no installation candidate
E: Unable to locate package python-sip4-dev
E: Unable to locate package libpngwriter0-dev
Anyway I tried to run configure which works:
GRASS is now configured for: i686-pc-linux-gnu
Source directory: /usr/local/src/grass64_release
Build directory: /usr/local/src/grass64_release
Installation directory: ${prefix}/grass-6.4.3svn
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g
C++ compiler: c++ -g -O2
Building shared libraries: yes
64bit support: no
OpenGL platform: X11
MacOSX application: no
MacOSX architectures:
MacOSX SDK:
Tcl/Tk NVIZ: yes
BLAS support: no
C++ support: yes
Cairo support: yes
DWG support: no
FFMPEG support: yes
FFTW support: yes
FreeType support: yes
GDAL support: yes
GEOS support: yes
GLw support: no
LAPACK support: no
Large File support (LFS): yes
Motif support: no
MySQL support: no
NLS support: no
ODBC support: no
OGR support: yes
OpenGL support: yes
PNG support: yes
PostgreSQL support: no
Python support: yes
Readline support: yes
SQLite support: yes
Tcl/Tk support: yes
wxWidgets support: yes
TIFF support: yes
X11 support: yes
Running make ends in some Errors:
Errors in:
/usr/local/src/grass64_release/lib/ogsf
/usr/local/src/grass64_release/lib/nviz
/usr/local/src/grass64_release/misc/m.nviz.image
/usr/local/src/grass64_release/visualization/nviz
The first error in detail:
radinger@grassgis:/usr/local/src/grass64_release/lib/ogsf$ make
gcc -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -g -fPIC -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include -DPACKAGE=\""grasslibs"\" -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o -c gsd_img_mpeg.c
gsd_img_mpeg.c: In function ‘add_video_stream’:
gsd_img_mpeg.c:61:5: warning: ‘av_new_stream’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
gsd_img_mpeg.c:69:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
gsd_img_mpeg.c:69:21: note: each undeclared identifier is reported only once for each function it appears in
gsd_img_mpeg.c:100:5: warning: ‘quality’ is deprecated (declared at /usr/include/libavformat/avformat.h:667) [-Wdeprecated-declarations]
gsd_img_mpeg.c: In function ‘open_video’:
gsd_img_mpeg.c:161:5: warning: ‘avcodec_open’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
gsd_img_mpeg.c: In function ‘write_video_frame’:
gsd_img_mpeg.c:218:15: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
gsd_img_mpeg.c: In function ‘gsd_init_mpeg’:
gsd_img_mpeg.c:304:9: warning: assignment makes pointer from integer without a cast [enabled by default]
gsd_img_mpeg.c:307:6: warning: assignment makes pointer from integer without a cast [enabled by default]
gsd_img_mpeg.c:315:8: warning: assignment makes pointer from integer without a cast [enabled by default]
gsd_img_mpeg.c:336:5: warning: ‘av_set_parameters’ is deprecated (declared at /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations]
gsd_img_mpeg.c:341:5: warning: ‘dump_format’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
gsd_img_mpeg.c:350:2: warning: ‘url_fopen’ is deprecated (declared at /usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
gsd_img_mpeg.c:357:5: warning: ‘av_write_header’ is deprecated (declared at /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
gsd_img_mpeg.c: In function ‘gsd_close_mpeg’:
gsd_img_mpeg.c:442:2: warning: ‘url_fclose’ is deprecated (declared at /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
make: *** [OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o] Error 1
Maybe someone can help me (considering I am Newbie in Linux/Ubuntu) first do solve the issues with the dependencies and secondly handling the make errors. Any more information needed? If I can find out the acutall working commands for getting the dependencies I can also update the wiki accordingly..
Thank you and best regards,
Johannes
On Wed, Jul 11, 2012 at 1:34 PM, Johannes Radinger <JRadinger@gmx.at> wrote:
Hi,
after sucessfully compiling, installing and working with GRASS on MacOS I am working now as well on Ubuntu (12.04) and want to compile GRASS (6.4SVN revision 52364). Hence I tried to follow the corresponding wiki to install all the depencies. There are some problems with following dependecnies:
E: Unable to locate package sip4
E: Package 'python-sip4' has no installation candidate
E: Unable to locate package python-sip4-dev
E: Unable to locate package libpngwriter0-dev
(no idea about these...)
Anyway I tried to run configure which works:
GRASS is now configured for: i686-pc-linux-gnu
...
FFMPEG support: yes
...
ok
Running make ends in some Errors:
Errors in:
/usr/local/src/grass64_release/lib/ogsf
...
The first error in detail:
radinger@grassgis:/usr/local/src/grass64_release/lib/ogsf$ make
gcc -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -g -fPIC -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include -DPACKAGE=\""grasslibs"\" -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o -c gsd_img_mpeg.c
gsd_img_mpeg.c: In function ‘add_video_stream’:
gsd_img_mpeg.c:61:5: warning: ‘av_new_stream’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
gsd_img_mpeg.c:69:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
gsd_img_mpeg.c:69:21: note: each undeclared identifier is reported only once for each function it appears in
gsd_img_mpeg.c:100:5: warning: ‘quality’ is deprecated (declared at /usr/include/libavformat/avformat.h:667) [-Wdeprecated-declarations]
...
Perhaps it is related to this ticket?
http://trac.osgeo.org/grass/ticket/1423
You could apply the patch locally and let us know if it helps.
Markus
Hi
Perhaps it is related to this ticket?
http://trac.osgeo.org/grass/ticket/1423
You could apply the patch locally and let us know if it helps.
I patched ogsf and make worked without any problems now (all 4 Errors are solved!)...thank you!
> E: Unable to locate package sip4
> E: Package 'python-sip4' has no installation candidate
> E: Unable to locate package python-sip4-dev
> E: Unable to locate package libpngwriter0-dev
Just a question about the other dependencies. What are they for?
If they are important how should they be installed?
/johannes
-------- Original-Nachricht --------
Datum: Wed, 11 Jul 2012 14:03:36 +0200
Von: Markus Neteler <neteler@osgeo.org>
An: Johannes Radinger <JRadinger@gmx.at>
CC: GRASS developers list <grass-dev@lists.osgeo.org>
Betreff: Re: [GRASS-dev] Make Errors: Compile GRASS on Ubuntu
On Wed, Jul 11, 2012 at 1:34 PM, Johannes Radinger <JRadinger@gmx.at>
wrote:
> Hi,
>
> after sucessfully compiling, installing and working with GRASS on MacOS
I am working now as well on Ubuntu (12.04) and want to compile GRASS
(6.4SVN revision 52364). Hence I tried to follow the corresponding wiki to
install all the depencies. There are some problems with following dependecnies:
>
> E: Unable to locate package sip4
> E: Package 'python-sip4' has no installation candidate
> E: Unable to locate package python-sip4-dev
> E: Unable to locate package libpngwriter0-dev
(no idea about these...)
> Anyway I tried to run configure which works:
>
> GRASS is now configured for: i686-pc-linux-gnu
...
> FFMPEG support: yes
...
ok
> Running make ends in some Errors:
> Errors in:
> /usr/local/src/grass64_release/lib/ogsf
...
>
> The first error in detail:
> radinger@grassgis:/usr/local/src/grass64_release/lib/ogsf$ make
> gcc -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -g
-fPIC -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/usr/include/libavcodec
-I/usr/include/libavformat -I/usr/include/libswscale
-I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o -c
gsd_img_mpeg.c
> gsd_img_mpeg.c: In function ‘add_video_stream’:
> gsd_img_mpeg.c:61:5: warning: ‘av_new_stream’ is deprecated
(declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
> gsd_img_mpeg.c:69:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first
use in this function)
> gsd_img_mpeg.c:69:21: note: each undeclared identifier is reported only
once for each function it appears in
> gsd_img_mpeg.c:100:5: warning: ‘quality’ is deprecated (declared at
/usr/include/libavformat/avformat.h:667) [-Wdeprecated-declarations]
...
Perhaps it is related to this ticket?
http://trac.osgeo.org/grass/ticket/1423
You could apply the patch locally and let us know if it helps.
Markus
MarkusN:
> Perhaps it is related to this ticket?
> http://trac.osgeo.org/grass/ticket/1423
>
> You could apply the patch locally and let us know if it helps.
Johannes Radinger:
I patched ogsf and make worked without any problems now (all 4 Errors are
solved!)...thank you!
> > E: Unable to locate package sip4
> > E: Package 'python-sip4' has no installation candidate
> > E: Unable to locate package python-sip4-dev
> > E: Unable to locate package libpngwriter0-dev
Just a question about the other dependencies. What are they for?
Some dev could provide a detailed answer I guess.
If they are important how should they be installed?
I think they are important. To satisfy various dependencies I (also) install:
sudo apt-get install \
build-essential \
make \
flex \
bison \
gcc \
libgcc1 \
g++ \
cmake \
cmake-curses-gui \
ccache \
swig swig1.3 \
python python-dev \
python3 python3-dev \
python-qt4 python-qt4-dev \
pyqt4-dev-tools \
sip4 \
python-sip4 python-sip4-dev
[...]
Greets, Nikos