Skocz do zawartości

cukier_puder

Rekomendowane odpowiedzi

Witam po raz kolejny. Tym razem z jeszcze bardziej frustrującym problemem, gdyż zupełnie wyższej wagi. Mianowicie w celu utworzenia openGL context, pobrałem GLFW w wersji 2.7.6, oraz freeGLUT 2.8.0 - Żaden z nich nie chce mi się zainstalować mimo postępowania step-by-step wg instrukcji - do tego dochodzi problem z instalacją sterownika (producenta) APU... Ale po kolei.

 

1. Na pierwszy ogień - freeGLUT - postępowanie wg tej instrukcji:

 

czyli wchodzę do odpowiedniego folderu po czym kolejno instrukcje:

- ./configure

- make all

- make install

 

Warto dodać, że tą metodą nigdy niczego nie instalowałem, więc z całą pewnością wina leży po mojej stronie... Aczkolwiek człowiek, to tylko człowiek, i mylić się może - poniżej komunikaty.

 

a) po ./configure:

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm - interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for X... no
checking for hid_init in -lusbhid... no
checking for ANSI C header files... (cached) yes
checking usbhid.h usability... no
checking usbhid.h presence... no
checking for usbhid.h... no
checking libusbhid.h usability... no
checking libusbhid.h presence... no
checking for libusbhid.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking GL/glu.h usability... no
checking GL/glu.h presence... no
checking for GL/glu.h... no
checking GL/glx.h usability... no
checking GL/glx.h presence... no
checking for GL/glx.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for X11/extensions/xf86vmode.h... no
checking X11/extensions/Xrandr.h usability... no
checking X11/extensions/Xrandr.h presence... no
checking for X11/extensions/Xrandr.h... no
checking X11/extensions/XI.h usability... no
checking X11/extensions/XI.h presence... no
checking for X11/extensions/XI.h... no
checking X11/extensions/XInput.h usability... no
checking X11/extensions/XInput.h presence... no
checking for X11/extensions/XInput.h... no
checking X11/extensions/XInput2.h usability... no
checking X11/extensions/XInput2.h presence... no
checking for X11/extensions/XInput2.h... no
checking whether gcc needs -traditional... no
checking for vprintf... yes
checking for _doprnt... no
checking for cos in -lm... yes
checking for gettimeofday... yes
checking for vfprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating include/GL/Makefile
config.status: creating include/Makefile
config.status: creating progs/Makefile
config.status: creating progs/demos/CallbackMaker/Makefile
config.status: creating progs/demos/Fractals/Makefile
config.status: creating progs/demos/Fractals_random/Makefile
config.status: creating progs/demos/Lorenz/Makefile
config.status: creating progs/demos/Makefile
config.status: creating progs/demos/One/Makefile
config.status: creating progs/demos/shapes/Makefile
config.status: creating progs/demos/smooth_opengl3/Makefile
config.status: creating progs/demos/spaceball/Makefile
config.status: creating progs/demos/subwin/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

 

B) po make all - make install nie dodaje, gdyż pojawia się podobny problem:

make  all-recursive
make[1]: Entering directory `/home/lucas/freeglut-2.8.0'
Making all in src
make[2]: Entering directory `/home/lucas/freeglut-2.8.0/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include    -DFREEGLUT_EXPORTS -g -O2 -Wall -pedantic -MT libglut_la-freeglut_callbacks.lo -MD -MP -MF .deps/libglut_la-freeglut_callbacks.Tpo -c -o libglut_la-freeglut_callbacks.lo `test -f 'freeglut_callbacks.c' || echo './'`freeglut_callbacks.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DFREEGLUT_EXPORTS -g -O2 -Wall -pedantic -MT libglut_la-freeglut_callbacks.lo -MD -MP -MF .deps/libglut_la-freeglut_callbacks.Tpo -c freeglut_callbacks.c  -fPIC -DPIC -o .libs/libglut_la-freeglut_callbacks.o
In file included from ../include/GL/freeglut.h:17:0,
			 from freeglut_callbacks.c:28:
../include/GL/freeglut_std.h:122:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[2]: *** [libglut_la-freeglut_callbacks.lo] Error 1
make[2]: Leaving directory `/home/lucas/freeglut-2.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lucas/freeglut-2.8.0'
make: *** [all] Error 2

 

c) jak rozumiem, zalecane w przypadku programowania grafiki są sterowniki producenta, jednak one wykrywają brak pliku: /lib/modules/3.5.1-1.fc17.x86_64/build/include/linux/version.h

 

Może na freeGLUT na razie poprzestanę, gdyż jeśli uda nam się problem rozwiązać, nie będzie sensu rozpracowywać GLFW

 

Czekam na Wasze sugestie. Pozdrawiam

Odnośnik do komentarza
Udostępnij na innych stronach

no wychodzi na to, ze jest zainstalowane:

"Package freeglut-2.8.0-3.fc17.x86_64 already installed and latest version"

 

@UP

 

mimo wszystko IDE nie widzi powiazan z

#include <GL...>

#include<x11...>

 

etc...

 

@UP

problem zazegnany. Poinstalowalem "dev" pakiety przez wizualny menedzer pakietów.

Odnośnik do komentarza
Udostępnij na innych stronach

Potrzebujesz zainstalować odpowiednie pakiety -devel, np. freeglut-devel.

Przy ./configure masz całą masę checking for plik.h no. Najszybciej sprawdzisz co potrzeba

yum provides \*plik.h
# w Twoim przypadku raczej się przyda
yum groupinstall "X Software Development"
# sterowniki kompilowane samodzielnie potrzebują
yum install kernel-devel kernel-headers

  • Upvote 1
Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...