Hello,
I have followed the instructions here:
https://www.quora.com/How-can-I-install-the-graphics-h-header-file-on-Fedora-22
but in step 7. after “make” command I have recieved following errors:
Makefile:934: warning: overriding recipe for target 'libgraph.pc'
Makefile:409: warning: ignoring old recipe for target 'libgraph.pc'
make all-recursive
make[1]: Entering directory '/home/zdenek/libgraph-1.0.2'
Makefile:934: warning: overriding recipe for target 'libgraph.pc'
Makefile:409: warning: ignoring old recipe for target 'libgraph.pc'
Making all in doc
make[2]: Entering directory '/home/zdenek/libgraph-1.0.2/doc'
Making all in man
make[3]: Entering directory '/home/zdenek/libgraph-1.0.2/doc/man'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/zdenek/libgraph-1.0.2/doc/man'
make[3]: Entering directory '/home/zdenek/libgraph-1.0.2/doc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/zdenek/libgraph-1.0.2/doc'
make[2]: Leaving directory '/home/zdenek/libgraph-1.0.2/doc'
make[2]: Entering directory '/home/zdenek/libgraph-1.0.2'
Makefile:934: warning: overriding recipe for target 'libgraph.pc'
Makefile:409: warning: ignoring old recipe for target 'libgraph.pc'
/bin/sh ./libtool --mode=link gcc -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -o libgraph.la -rpath /usr/local/lib -version-info 1:2:0 -export-dynamic libgraph.lo text.lo shapes.lo polygon.lo -lm -lSDL_image -lSDL -lpthread
gcc -shared .libs/libgraph.o .libs/text.o .libs/shapes.o .libs/polygon.o -lm -lSDL_image -lSDL -lpthread -Wl,-soname -Wl,libgraph.so.1 -o .libs/libgraph.so.1.0.2
/usr/bin/ld: .libs/text.o:/home/zdenek/libgraph-1.0.2/grtext.h:77: multiple definition of `InternalFont'; .libs/libgraph.o:/home/zdenek/libgraph-1.0.2/grtext.h:77: first defined here
/usr/bin/ld: .libs/text.o:/home/zdenek/libgraph-1.0.2/grtext.h:87: multiple definition of `TP'; .libs/libgraph.o:/home/zdenek/libgraph-1.0.2/grtext.h:87: first defined here
/usr/bin/ld: .libs/shapes.o:/home/zdenek/libgraph-1.0.2/shapes.h:121: multiple definition of `_internal_linestyle'; .libs/libgraph.o:/home/zdenek/libgraph-1.0.2/shapes.h:121: first defined here
/usr/bin/ld: .libs/shapes.o:/home/zdenek/libgraph-1.0.2/shapes.h:115: multiple definition of `_last_arc'; .libs/libgraph.o:/home/zdenek/libgraph-1.0.2/shapes.h:115: first defined here
/usr/bin/ld: .libs/polygon.o:/home/zdenek/libgraph-1.0.2/polygon.h:42: multiple definition of `_scanlist'; .libs/libgraph.o:/home/zdenek/libgraph-1.0.2/polygon.h:42: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:377: libgraph.la] Error 1
make[2]: Leaving directory '/home/zdenek/libgraph-1.0.2'
make[1]: *** [Makefile:552: all-recursive] Error 1
make[1]: Leaving directory '/home/zdenek/libgraph-1.0.2'
make: *** [Makefile:268: all] Error 2
Please can anyone help?
Thanks for support!
Neo75