Skip to content

Unable to compile on Ubuntu 20.04 (solution inside) #3

@smirgol

Description

@smirgol

When trying to compile, I got tons of errors about std::filesystem not found, despite it is included in the headers.
Running cmake with these flags made it work for me:
cmake -D CMAKE_CXX_COMPILER=g++ -D CMAKE_CXX_FLAGS=-std=c++17 .

Then, when linking the files, it will complain about the missing lib -lThreads::Threads. That's an odd library to be honest, never seen a linker include a library with that naming scheme. If you encounter this error, to make it work edit CMakeList.txt and replace the three occurences of "Threads::Threads" with "pthread".

Example:
target_link_libraries(winevfs_lib64 stdc++fs dl pthread)

Hope that helps someone. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions