[GRASS-dev] errors in compiling grass6.4 in ubuntu 11.10

Hi,
There are some errors when I compiled Grass 6.4 in Unbuntu 11.10.


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

In case of errors please change into the directory with error and run ‘make’.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.

I went to /usr/local/src/grass64_release/lib/ogsf and run ‘make’.

gcc -I/usr/local/src/grass64_release/dist./include -g -fPIC -DPACKAGE="“grasslibs”" -I/usr/include/gdal -DPACKAGE="“grasslibs”" -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/local/src/grass64_release/dist./include -o OBJ./gsd_img_mpeg.o -c gsd_img_mpeg.c
gsd_img_mpeg.c: In function ‘add_video_stream’:
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: In function ‘open_video’:
gsd_img_mpeg.c:161:5: warning: ‘avcodec_open’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-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:1363) [-Wdeprecated-declarations]
gsd_img_mpeg.c:341:5: warning: ‘dump_format’ is deprecated (declared at /usr/include/libavformat/avformat.h:1485) [-Wdeprecated-declarations]
gsd_img_mpeg.c:350:2: warning: ‘url_fopen’ is deprecated (declared at /usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
gsd_img_mpeg.c:357:5: warning: ‘av_write_header’ is deprecated (declared at /usr/include/libavformat/avformat.h:1421) [-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:279) [-Wdeprecated-declarations]
make: *** [OBJ./gsd_img_mpeg.o] Error 1

I went to /usr/local/src/grass64_release/lib/nviz and run ‘make’.

gcc -shared -o /usr/local/src/grass64_release/dist./lib/libgrass_nviz.6.4.3svn.so -L/usr/local/src/grass64_release/dist./lib -Wl,–export-dynamic -L/usr/lib64 -Wl,-rpath-link,/usr/local/src/grass64_release/dist./lib OBJ./change_view.o OBJ./cplanes_obj.o OBJ./draw.o OBJ./exag.o OBJ./lights.o OBJ./map_obj.o OBJ./nviz.o OBJ./position.o OBJ./render.o -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_dgl.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_linkm.6.4.3svn -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -L/usr/lib -lgdal1.7.0 -lgeos_c -ltiff -lavutil -lavcodec -lavformat -lgrass_sites.6.4.3svn -lgrass_datetime.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_ogsf.6.4.3svn -lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn -lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_sites.6.4.3svn -lgrass_datetime.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lm -lSM -lICE -lX11 -L/usr/include/GL -lGL -L/usr/include/GL -lGLU
/usr/bin/ld: cannot find -lgrass_ogsf.6.4.3svn
collect2: ld returned 1 exit status
make: *** [/usr/local/src/grass64_release/dist./lib/libgrass_nviz.6.4.3svn.so] Error 1

I don’t know how to deal with these errors. Is there anyone can help me? Thank you so much.

Hello,
please provide exact ./configure call and information about libavcodec
(ffmepg) version installed on to Your system.

Maris.

2012. gada 12. aprīlis 02:42 Hui Peng <penghui3040@gmail.com> rakstīja:

Hi,
There are some errors when I compiled Grass 6.4 in Unbuntu 11.10.

--
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
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--

I went to /usr/local/src/grass64_release/lib/ogsf and run 'make'.

gcc -I/usr/local/src/grass64_release/dist./include -g -fPIC
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -DPACKAGE=\""grasslibs"\"
-I/usr/include/libavcodec -I/usr/include/libavformat
-I/usr/include/libswscale -I/usr/local/src/grass64_release/dist./include -o
OBJ./gsd_img_mpeg.o -c gsd_img_mpeg.c
gsd_img_mpeg.c: In function ‘add_video_stream’:
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: In function ‘open_video’:
gsd_img_mpeg.c:161:5: warning: ‘avcodec_open’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3650) [-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:1363) [-Wdeprecated-declarations]
gsd_img_mpeg.c:341:5: warning: ‘dump_format’ is deprecated (declared at
/usr/include/libavformat/avformat.h:1485) [-Wdeprecated-declarations]
gsd_img_mpeg.c:350:2: warning: ‘url_fopen’ is deprecated (declared at
/usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
gsd_img_mpeg.c:357:5: warning: ‘av_write_header’ is deprecated (declared at
/usr/include/libavformat/avformat.h:1421) [-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:279) [-Wdeprecated-declarations]
make: *** [OBJ./gsd_img_mpeg.o] Error 1

I went to /usr/local/src/grass64_release/lib/nviz and run 'make'.

gcc -shared -o
/usr/local/src/grass64_release/dist./lib/libgrass_nviz.6.4.3svn.so
-L/usr/local/src/grass64_release/dist./lib -Wl,--export-dynamic
-L/usr/lib64 -Wl,-rpath-link,/usr/local/src/grass64_release/dist./lib
OBJ./change_view.o OBJ./cplanes_obj.o OBJ./draw.o OBJ./exag.o OBJ./lights.o
OBJ./map_obj.o OBJ./nviz.o OBJ./position.o OBJ./render.o
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn -lgrass_vect.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn
-lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_dig2.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_dgl.6.4.3svn -lgrass_rtree.6.4.3svn
-lgrass_linkm.6.4.3svn -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -L/usr/lib
-lgdal1.7.0 -lgeos_c -ltiff -lavutil -lavcodec -lavformat
-lgrass_sites.6.4.3svn -lgrass_datetime.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_vect.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn
-lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_g3d.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_ogsf.6.4.3svn -lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn
-lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_sites.6.4.3svn -lgrass_datetime.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_vect.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn
-lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_vect.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn
-lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lm -lSM -lICE -lX11
-L/usr/include/GL -lGL -L/usr/include/GL -lGLU
/usr/bin/ld: cannot find -lgrass_ogsf.6.4.3svn
collect2: ld returned 1 exit status
make: ***
[/usr/local/src/grass64_release/dist./lib/libgrass_nviz.6.4.3svn.so] Error 1

I don't know how to deal with these errors. Is there anyone can help me?
Thank you so much.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev