DadSchoorse / vkBasalt

a vulkan post processing layer for linux
zlib License
1.24k stars 52 forks source link

Doesn't seem to compile on Ubuntu LTS 20.04 x64 #138

Open sjain882 opened 3 years ago

sjain882 commented 3 years ago

After trying ./meson --buildtype=release --prefix=/usr builddir in the dir after git cloning the repo`, I get:

image

I have all the latest dependencies installed (via sudo apt get install), and tried a clean install of all dependencies too, as far as i know there are no perms issues, and I tried replacing the ' with " throughout the file to no avail. I'm following the x64 instructions in README.md.

I am new to this, so if you require any additional details let me know - all help is widely appreciated. Apologies for the briefness of this issue.

I'm using the latest version of Ubuntu 20.04, completely stock, with no modifications or additional apps installed except for Steam, the required libraries, python, etc.

DadSchoorse commented 3 years ago

It looks like you are executing meson.build itself instead of calling meson (which you can install via sudo apt install meson). The execute meson --buildtype=release --prefix=/usr builddir.

Ahmed-E-86 commented 3 years ago

I have a similar issue, and I have meson installed.

[57/58] Linking target src/libvkbasalt.so
FAILED: src/libvkbasalt.so 
c++  -o src/libvkbasalt.so src/libvkbasalt.so.p/basalt.cpp.o src/libvkbasalt.so.p/buffer.cpp.o src/libvkbasalt.so.p/command_buffer.cpp.o src/libvkbasalt.so.p/config.cpp.o src/libvkbasalt.so.p/descriptor_set.cpp.o src/libvkbasalt.so.p/effect_cas.cpp.o src/libvkbasalt.so.p/effect.cpp.o src/libvkbasalt.so.p/effect_deband.cpp.o src/libvkbasalt.so.p/effect_dls.cpp.o src/libvkbasalt.so.p/effect_fxaa.cpp.o src/libvkbasalt.so.p/effect_lut.cpp.o src/libvkbasalt.so.p/effect_reshade.cpp.o src/libvkbasalt.so.p/effect_simple.cpp.o src/libvkbasalt.so.p/effect_smaa.cpp.o src/libvkbasalt.so.p/effect_transfer.cpp.o src/libvkbasalt.so.p/fake_swapchain.cpp.o src/libvkbasalt.so.p/format.cpp.o src/libvkbasalt.so.p/framebuffer.cpp.o src/libvkbasalt.so.p/graphics_pipeline.cpp.o src/libvkbasalt.so.p/image.cpp.o src/libvkbasalt.so.p/image_view.cpp.o src/libvkbasalt.so.p/keyboard_input.cpp.o src/libvkbasalt.so.p/logger.cpp.o src/libvkbasalt.so.p/logical_swapchain.cpp.o src/libvkbasalt.so.p/lut_cube.cpp.o src/libvkbasalt.so.p/memory.cpp.o src/libvkbasalt.so.p/renderpass.cpp.o src/libvkbasalt.so.p/reshade_uniforms.cpp.o src/libvkbasalt.so.p/sampler.cpp.o src/libvkbasalt.so.p/shader.cpp.o src/libvkbasalt.so.p/stb_image.c.o src/libvkbasalt.so.p/stb_image_resize.c.o src/libvkbasalt.so.p/util.cpp.o src/libvkbasalt.so.p/vkdispatch.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libvkbasalt.so -m32 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu src/libkeyboard_input_x11.a src/reshade/libreshade.a /usr/lib/x86_64-linux-gnu/libX11.so -Wl,--end-group
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libX11.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Ahmed-E-86 commented 3 years ago

I installed vkBasalt on KDE neon (Ubuntu 20.04) using this ppa >> https://launchpad.net/~flexiondotorg/+archive/ubuntu/mangohud Mangohud, and Goverlay are included as well.

Ahmed-E-86 commented 3 years ago

The problem with this installing vkBasalt using this PPA >> https://launchpad.net/~flexiondotorg/+archive/ubuntu/mangohud that it only install vkBasalt (64bit)

@DadSchoorse Could you please fix the build script? it fails to compile also on Kubuntu 21.04.