Skip to content

lXxf86vm and lXi linker option on Ubuntu 20 #275

Closed
@sihyeon-kim

Description

@sihyeon-kim

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions