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

Linux Support #51

Closed
RangerMauve opened this issue Dec 7, 2020 · 15 comments
Closed

Linux Support #51

RangerMauve opened this issue Dec 7, 2020 · 15 comments
Labels
enhancement feature improvement or request question Issue is a question

Comments

@RangerMauve
Copy link

Any chance this could be made compatible with SteamVR for Linux?

Does the server side rely on windows-specific APIs?

@ShootingKing-AM
Copy link
Member

ShootingKing-AM commented Dec 7, 2020

Hello,
The OpenVR API Seems not to fully support linux yet(ValveSoftware/openvr#749), but I personally didnt test PVR on linux. As far as building goes, there shouldn't be any issue in compiling PVR-Server for linux.

Any PRs for linux support are welcome :D

@ShootingKing-AM ShootingKing-AM added the question Issue is a question label Dec 7, 2020
@ghost
Copy link

ghost commented Jan 17, 2021

@ShootingKing-AM Hey, I'm looking to build this, could you throw me some build instructions? I'm not too sure how to go about building this!

@ShootingKing-AM
Copy link
Member

@rainonwires You mean building on Linux ?? Then you need to use "makefile" + gcc. Just like any other cpp projects.

@ghost
Copy link

ghost commented Jan 17, 2021

@rainonwires You mean building on Linux ?? Then you need to use "makefile" + gcc. Just like any other cpp projects.

I've never used a makefile before, nor built any cpp files from a custom makefile so could you help me out here?

@ShootingKing-AM
Copy link
Member

ShootingKing-AM commented Jan 17, 2021

Actually I didn't myself try to build it on Linux. So it may give out certain errors/warning which should be fixed. I am presently working of hwencoding implementation.

If you wish to help us with Linux compilation and you are uncomfortable with make, you can just use gcc to compile .cpp files to .o with -o argument and link all files into .so at the end.

@ghost
Copy link

ghost commented Jan 17, 2021

@ShootingKing-AM Alright Ill try that out. Thanks.

@ShootingKing-AM
Copy link
Member

If you are stuck with any errors or anything, you can use the discrod Server to ping us to get much faster reply :)

@RichardTry
Copy link

RichardTry commented Jun 3, 2021

I get
error: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(const wchar_t*)
cos ifstream(wchar_t *) is not standard C++.

@blooalien
Copy link

Any PRs for linux support are welcome :D

Hey, thanks for bein' open to the idea of Linux support. I also was interested in trying to build this on Linux. Were you needing someone to create a Makefile for this? I didn't find one anywhere in the git checkout.

@ShootingKing-AM
Copy link
Member

ShootingKing-AM commented Jun 26, 2021

Any PRs for linux support are welcome :D

Hey, thanks for bein' open to the idea of Linux support. I also was interested in trying to build this on Linux. Were you needing someone to create a Makefile for this? I didn't find one anywhere in the git checkout.

Thanks for taking interest in this project :)
I didn't personally compile it on linux so no makefile is in the repo.

@RichardTry and @RangerMauve were trying to compile it on linux. Seems still they didn't find a way. The discussion was going on discord(link in readme) group.

Basically whats needed is makefile + some conditional code compilation based on the Compiler os. Some basic functions have some linux alternatives which need to be implemented to compile on linux.

@RichardTry
Copy link

@blooalien you can find Makefile in my fork, many errors are fixed, but windows.h and d3d11.h are still in dependencies, so it not compiles yet.

@blooalien
Copy link

@blooalien you can find Makefile in my fork, many errors are fixed, but windows.h and d3d11.h are still in dependencies, so it not compiles yet.

Oh, very nice! Thanks for that. I'll have to see if I can figure anything out. Prolly not. I'ma Python guy mostly, but I'ma try anyhow... :)

@ShootingKing-AM
Copy link
Member

Guys if you are stuck anywhere unable to convert winodws -> linux; Ping me with those spcecific issues, with Error, Line number, function, file name etc. on Discord.

We have another similar community also trying to get things running on Linux, using OpenVR SDK as well as another Dev(who is more active on the other community :/) working on both. We can discuss and collaborate on specific issues :) Dont get depressed if you are not getting though a point ;)

@gaycodegal
Copy link

looks like most of the wide character typing is involved with file names. C++17 std::filesystem::path is cross platform and should make it so it handles wide characters and other types normally cross platform. Will be looking into this myself, but wanted to mention it here in case I do not complete this work

https://en.cppreference.com/w/cpp/filesystem/path/path
https://stackoverflow.com/questions/821873/how-to-open-an-stdfstream-ofstream-or-ifstream-with-a-unicode-filename

@ShootingKing-AM
Copy link
Member

This has been solved in latest release by using ALVR Server. If its not feel free to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature improvement or request question Issue is a question
Projects
None yet
Development

No branches or pull requests

5 participants