[GRASS-dev] Make Errors: Compile GRASS on Ubuntu
Johannes Radinger
JRadinger at gmx.at
Wed Jul 11 04:34:29 PDT 2012
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 at 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
More information about the grass-dev
mailing list