Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18.04 MapReady Make error #498

Open
JonyG123 opened this issue Apr 10, 2019 · 2 comments
Open

Ubuntu 18.04 MapReady Make error #498

JonyG123 opened this issue Apr 10, 2019 · 2 comments

Comments

@JonyG123
Copy link

Hello, I was hoping I can get some assistance getting MapReady running. I made sure I had all of the libraries installed and up-to-date. I've read over all of the problems that other people had. I keep getting the same errors after I run ( make). I've spent more time on this than I care to admit and I still can't seem to get it to work. If I could get any help on this, it would be greatly appreciated.

git clone https://github.com/asfadmin/ASF_MapReady.git

cd ASF_MapReady

./configure

make

j@j-ThinkPad-P50:$ cd ASF_MapReady
j@j-ThinkPad-P50:
/ASF_MapReady$ ./configure
Configuring ASF Tools
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for fopen in -lc... yes
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cos in -lm... yes
checking for cblas_dgemm in -lgslcblas... yes
checking for gsl_blas_dgemm in -lgsl... yes
checking for GSL... yes
checking for PROJ... yes
checking for GLIB... yes
checking for JPEG... no
checking for jpeg_read_header in -ljpeg... yes
checking for TIFF... yes
checking for PNG... yes
checking for GEOTIFF... no
checking for main in -lgeotiff... yes
checking for xtiffio.h in /usr/include... /usr/include/geotiff/xtiffio.h
checking /usr/include/geotiff/xtiffio.h usability... yes
checking /usr/include/geotiff/xtiffio.h presence... yes
checking for /usr/include/geotiff/xtiffio.h... yes
checking for SHAPELIB... yes
checking for FFTW... yes
checking for GTK... yes
checking for XML2... yes
checking for GDAL... yes
checking for CURL... yes
checking for HDF5... yes
checking for NETCDF... yes
checking for CUNIT... yes
checking for LIBGLADE... yes
########## Determining machine characteristics #############
endian.c: In function 'main':
endian.c:41:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("\tshort = %d bytes.\n",sizeof(short));
~^
%ld
endian.c:42:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("\tint = %d bytes.\n",sizeof(int));
~^
%ld
endian.c:43:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("\tlong = %d bytes.\n",sizeof(long));
~^
%ld
endian.c:46:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("\tfloat = %d bytes.\n",sizeof(float));
~^
%ld
endian.c:47:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("\tdouble = %d bytes.\n",sizeof(double));
~^
%ld
Computer Information:
short = 2 bytes.
int = 4 bytes.
long = 8 bytes.
-> Integers are little-endian.

float = 4 bytes.
double = 8 bytes.
(float)(-9.5)= 0x0 0 18 c1
->Floats are IEEE standard  little-endian.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/config.h
########### Automatic configuration complete ###########

The ASF tools Makefile is now fully prepared.

To build the tools, type 'make'.
To install the tools, type 'make install'.

The tools will be installed in this location:
/usr/local

########### Build system is now configured ############



THIS IS THE BOTTOM PART OF THE PRINT OUT AFTER I RAN (MAKE)

In file included from /usr/include/hdf5/serial/H5public.h:145:0,
from /usr/include/hdf5/serial/hdf5.h:24,
from ../../include/asf_meta.h:35,
from asf_coregister.c:2:
../../include/ifm.h:30:13: error: two or more data types in declaration specifiers
typedef int bool;
^
In file included from asf_coregister.c:7:0:
../../include/ifm.h:30:1: warning: useless type name in empty declaration
typedef int bool;
^~~~~~~
asf_coregister.c: In function ‘read_ardop_params’:
asf_coregister.c:389:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, "%f %f %f", &fd, &fdd, &fddd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asf_coregister.c:397:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp,"%f %f %f %f", &sloper, &interr, &slopea, &intera);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asf_coregister.c:402:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp,"%f %f %f %f", &dsloper, &dinterr, &dslopea, &dintera);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asf_coregister.c: In function ‘asf_coregister’:
asf_coregister.c:621:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, "%lf%lf%lf%lf", &a, &b, &c, &d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asf_coregister.c:622:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, "%lf%lf%lf%lf", &e, &f, &g, &h);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: recipe for target 'asf_coregister.o' failed
make[1]: *** [asf_coregister.o] Error 1
make[1]: Leaving directory '/home/j/ASF_MapReady/src/libasf_insar'
Makefile:290: recipe for target 'mapready' failed
make: *** [mapready] Error 2

@besterling
Copy link

Exactly the same problem and I'm also with Ubuntu 18.04

@JonyG123
Copy link
Author

JonyG123 commented Nov 3, 2019

Hey Besterling, did you ever get mapready working on Ubuntu 18.04?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants