openslide / openslide

C library for reading virtual slide images
https://openslide.org/
GNU Lesser General Public License v2.1
409 stars 224 forks source link

Error installing openslide on linux os #299

Closed shahto closed 4 years ago

shahto commented 4 years ago

"./configure" runs successfully but "make" gives me these errors

CC src/src_libopenslide_la-openslide.lo pgcc-Error-Unknown switch: -pedantic pgcc-Error-Unknown switch: -pthread pgcc-Error-Unknown switch: -pthread pgcc-Error-Unknown switch: -Wall pgcc-Error-Unknown switch: -Wextra pgcc-Error-Unknown switch: -Wstrict-prototypes pgcc-Error-Unknown switch: -Wmissing-prototypes pgcc-Error-Unknown switch: -Wmissing-declarations pgcc-Error-Unknown switch: -Wnested-externs pgcc-Error-Unknown switch: -fno-common make[1]: [src/src_libopenslide_la-openslide.lo] Error 1 make[1]: Leaving directory `/home/mydir/dataprocessing/' make: [all] Error 2

I do not have root access and cannot install anything on \user\bin\local

bgilbert commented 4 years ago

You appear to be using a compiler that doesn't support common compiler options. GCC will work; clang should also work. Try passing CC=gcc to ./configure.