Skip to content

lXxf86vm and lXi linker option on Ubuntu 20 #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sihyeon-kim opened this issue Mar 4, 2022 · 2 comments
Closed

lXxf86vm and lXi linker option on Ubuntu 20 #275

sihyeon-kim opened this issue Mar 4, 2022 · 2 comments

Comments

@sihyeon-kim
Copy link

I've been following Development environment.
In my case on Ubuntu 20.04, -lXxf86vm and -lXi linker option is not working.

$ make test
g++ -std=c++17 -O2 -o VulkanTest main.cpp -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
/usr/bin/ld: cannot find -lXxf86vm
/usr/bin/ld: cannot find -lXi
collect2: error: ld returned 1 exit status
make: *** [Makefile:5: VulkanTest] Error 1

Without these options, I think it works like below.

$ make test
g++ -std=c++17 -O2 -o VulkanTest main.cpp -lglfw -lvulkan -ldl -lpthread -lX11 -lXrandr
./VulkanTest
18 extensions supported

Is it better to manually install libraries?

@fake-rookie
Copy link

i think you maybe need check the Library Name on Ubuntu.
Ubuntu always chage name of library.

@Overv
Copy link
Owner

Overv commented Mar 8, 2022

That just means that you are missing the packages libxxf86vm-dev libxi-dev. I'll mention that in the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants