Skip to content

lXxf86vm and lXi linker option on Ubuntu 20 #275

Closed

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?

Activity

  1. fake-rookie commented on Mar 4, 2022

    @fake-rookie

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

  2. Overv commented on Mar 8, 2022

    @Overv
    Owner

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

  3. added a commit that references this issue on Mar 8, 2023
    0fd54b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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