Page 1 of 1

8.0.1 compilation error on Raspberry

Posted: 28 Feb 2017 19:06
by sailoog
I am getting this on a fresh Raspbian (latest)

Code: Select all

cd src/g2clib; make
make[1]: Entering directory '/home/pi/Downloads/zyGrib-8.0.1/src/g2clib'
gcc -c -O3 -g -m64 -I/nwprod/lib/include/ -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ gridtemplates.c
gcc: error: unrecognized command line option ‘-m64’
makefile:89: recipe for target 'libg2c.a(gridtemplates.o)' failed
make[1]: *** [libg2c.a(gridtemplates.o)] Error 1
make[1]: Leaving directory '/home/pi/Downloads/zyGrib-8.0.1/src/g2clib'
Makefile:43: recipe for target 'zyGrib' failed
make: *** [zyGrib] Error 2
libpng16-dev doesn't exist on raspbian repository so I have tried with libpng-dev

any ideas?

Re: 8.0.1 compilation error on Raspberry

Posted: 06 Mar 2017 17:41
by sailoog
Same error under Ubuntu MATEon Raspberry 3

Code: Select all

cd src/g2clib; make
make[1]: Entering directory '/home/openplotter/Downloads/zyGrib-8.0.1/src/g2clib'
gcc -c -O3 -g -m64 -I/nwprod/lib/include/ -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ gridtemplates.c
gcc: error: unrecognized command line option ‘-m64’
makefile:89: recipe for target 'libg2c.a(gridtemplates.o)' failed
make[1]: *** [libg2c.a(gridtemplates.o)] Error 1
make[1]: Leaving directory '/home/openplotter/Downloads/zyGrib-8.0.1/src/g2clib'
Makefile:43: recipe for target 'zyGrib' failed
make: *** [zyGrib] Error 2
this time I was able to install all required dependencies from repository.

I am lost here...

Re: 8.0.1 compilation error on Raspberry

Posted: 06 Mar 2017 18:51
by sailoog
Trying to install from suggested ubuntu repositoryes did not work. There is no repository for arm. Does this means that zygrib 8 is not arm compatible? :(