8.0.1 compilation error on Raspberry

Image Ici on parle français ou anglais, comme on veut, comme on peut.
Image Here we speak french or english, as we want, as we can.

Moderator: jza

Forum rules
Image Ici on parle français ou anglais, comme on veut, comme on peut, mais on n'oublie jamais que l'on discute entre humains.
Il ne faut surtout pas oublier les mots magiques: bonjour, salut, merci, etc.
Les messages impolis sont rejetés et restent sans réponse.
Il faut souvent être patient, car il y a plein d'autres activités encore plus passionantes dans notre vie.

Image Here we speak french or english, as we want, as we can, but we never forget that we discuss between humans.
Do not forget the magic words: hello, hi, thank you, etc.
Rude messages are rejected and remain unanswered.
It is often necessary to be patient because there are many other activities even more exciting in our life.
Post Reply
sailoog
Posts: 3
Joined: 28 Feb 2017 18:14

8.0.1 compilation error on Raspberry

Post by sailoog » 28 Feb 2017 19:06

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?

sailoog
Posts: 3
Joined: 28 Feb 2017 18:14

Re: 8.0.1 compilation error on Raspberry

Post by sailoog » 06 Mar 2017 17:41

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...

sailoog
Posts: 3
Joined: 28 Feb 2017 18:14

Re: 8.0.1 compilation error on Raspberry

Post by sailoog » 06 Mar 2017 18:51

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? :(

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests