LookingGlass icon indicating copy to clipboard operation
LookingGlass copied to clipboard

Build instructions for Fedora 27

Open hesdago opened this issue 8 years ago • 8 comments

Hi, I've just ran through the build instructions for Fedora 27 workstation, and the following corrections might be useful for a fresh install:

Actual required package list for me was:

dnf groupinstall "Development Tools" "Development Libraries"
sudo dnf install git SDL2-devel SDL2_ttf-devel openssl-devel spice-protocol fontconfig-devel libX11-devel gnu-free-mono-fonts ivshmem-tools mesa-libGL-devel mesa-libGLU-devel

Without libGL and libGLU packages, make would error out with:

Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'virtual:world', not found
Package 'glu', required by 'virtual:world', not found
gcc -c -g -O3 -std=gnu99 -march=native -Wall -Werror -I./ -I../common -DDEBUG -ffast-math -fdata-sections -ffunction-sections  -DBUILD_VERSION='"a2-5-g2ae9b479f6"' -o .build/main.o main.c
In file included from lg-renderers.h:21:0,
                 from main.c:42:
lg-renderer.h:25:10: fatal error: SDL_ttf.h: No such file or directory
 #include <SDL_ttf.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:28: .build/main.o] Error 1

hesdago avatar Dec 14 '17 09:12 hesdago

Beat me to it. I had to do an additional Makefile patch to get it to recognize SDL2 and spice-protocol include dirs. Not sure if it's actually needed yet

tylerjwatson avatar Dec 14 '17 10:12 tylerjwatson

I just fixed the include path, I missed that one sorry.

Is mesa-libGL-devel mesa-libGLU-devel correct for all configurations? On Debian we have NVIDIA and Mesa variants of this, among others. Depends on the hardware in the machine.

gnif avatar Dec 14 '17 11:12 gnif

@gnif you can also add libva-devel, i just tried to build on fedora 27

slis avatar Dec 30 '17 06:12 slis

@slis libva isn't used yet, please build a tagged release.

gnif avatar Dec 30 '17 09:12 gnif

I also got an error stating libconfig.h was missing. Maybe need to add libconfig-devel in the DNF list?

Leooow avatar Feb 28 '18 13:02 Leooow

@Leooow please build the tagged release. libconfig is not in a tagged release yet as such the documentation will not be updated.

gnif avatar Feb 28 '18 22:02 gnif

I'm having a similar issue on KDE Neon I was following your guide and I could not make it this is the error message I got when I try to make it any help would be appreciated Package libconfig was not found in the pkg-config search path. Perhaps you should add the directory containing libconfig.pc' to the PKG_CONFIG_PATH environment variable No package 'libconfig' found Package libva was not found in the pkg-config search path. Perhaps you should add the directory containing libva.pc' to the PKG_CONFIG_PATH environment variable No package 'libva' found Package libva-glx was not found in the pkg-config search path. Perhaps you should add the directory containing `libva-glx.pc' to the PKG_CONFIG_PATH environment variable No package 'libva-glx' found cc -c -g -O3 -std=gnu99 -march=native -Wall -Werror -I./ -I../common -DDEBUG -DATOMIC_LOCKING -ffast-math -fdata-sections -ffunction-sections -Wfatal-errors -DBUILD_VERSION='"a10-50-gfd8d4d3d38"' -o .build/main.o main.c main.c:37:23: fatal error: libconfig.h: No such file or directory compilation terminated. Makefile:38: recipe for target '.build/main.o' failed make: *** [.build/main.o] Error 1

Username123456765645 avatar Apr 28 '18 00:04 Username123456765645

@Username123456765645 use a tagged release.

gnif avatar Apr 28 '18 12:04 gnif