Hello:
I'm trying to compile GC in Linux (Debian Sid), but I obtain an error. I cloned yesterday the git repository, and I'm following the instructions stated in the INSTALL-LINUX file. Apparently all works fine, although I obtain errors with three files. The errors are related to non existent files *.tab.h, but they can be solved renaming files. The errors are
DataFilter.tab.c:152:10: fatal error: DataFilter.tab.h: File does not exist
JsonRideFile.tab.c:206:10: fatal error: JsonRideFile.tab.h: File does not exist
RideDB.tab.c:141:10: fatal error: RideDB.tab.h: File does not exist
but in the src/ folder there are the files DataFilter_yacc.h, JsonRideFile_yacc.h, and RideDByacc.h, so if I rename them to DataFilter.tab.h, JsonRideFile.tab.h, and RideDB.tab.h the files compile and the process go on.
But after a few more compiling tasks I obtain this error:
/usr/bin/ld: CloudService.o: undefined reference to symbol 'inflateEnd'
/usr/bin/ld: /lib/x86_64-linux-gnu/libz.so.1: error al añadir símbolos: DSO faltante desde línea de orden
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2112: GoldenCheetah] Error 1
make[1]: se sale del directorio '/home/topo/Desktop/GoldenCheetah/src'
make: *** [Makefile:91: sub-src-make_first-ordered] Error 2
I think it is a problem with zlib, but I can't understand the reason. In the gcconfig.pri file we can read
# If your QT build includes its own local compress libs
# then you should comment the line below, otherwise you
# will need to have the compress libraries installed
# separately.
#LIBZ_INCLUDE =
#LIBZ_LIBS = -lz
Well, I don't know exactly if my QT build (I'm working with QT5 from the Debian repositories) includes it own local compress libs, but my compilation breaks if I leave LIBZ_INCLUDE and LIBZ_LIBS commented and also if I assign values as
LIBZ_INCLUDE = /usr/include/
LIBZ_LIBS = -lz
The error appears in the GC binary file creation:
g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o GoldenCheetah ... lots of *.o files... -L/home/topo/Desktop/GoldenCheetah/src/../qwt/lib -lqwt -lm /usr/lib/x86_64-linux-gnu/libQt5Svg.so ... /usr/lib/x86_64-linux-gnu/libQt5Core.so -lGL -lpthread
but in this order there is no -lz although LIBZ_LIBS = -lz is configured
Attached I send my gcconfig.pri