Skip to content
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

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

Open
smirgol opened this issue Nov 7, 2020 · 3 comments
Open

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

smirgol opened this issue Nov 7, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@smirgol
Copy link

smirgol commented Nov 7, 2020

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. :)

@qsniyg qsniyg added the bug Something isn't working label Nov 7, 2020
@qsniyg
Copy link
Owner

qsniyg commented Nov 7, 2020

Thanks for reporting, I'll try to fix this tomorrow :)

That being said, I really wouldn't recommend using this project in any serious way, it's horribly broken. I don't have no idea why it is (I spent many hours trying to debug it to no avail), but it fails really badly with things like FNIS, and performance is often unfortunately much worse than without it (not completely sure why, but I believe it might be to the amount of locks that are used).

@smirgol
Copy link
Author

smirgol commented Nov 7, 2020

I actually tried to compile it hours ago, because I thought it is a requirement for your other tool, but then found out that I don't really need it. But I wanted to give it a try right now, because for unknown reasons the performance of symlinked mods is really bad with proton 5.13.

@qsniyg
Copy link
Owner

qsniyg commented Nov 7, 2020

Yeah I remember it was pretty bad... if you really want to try it, I'd strongly recommend backing up at least your MO2 profile, in case something goes awry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants