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

Making SevenZipExtractor work on Linux #41

Open
adoconnection opened this issue Apr 25, 2020 · 8 comments
Open

Making SevenZipExtractor work on Linux #41

adoconnection opened this issue Apr 25, 2020 · 8 comments

Comments

@adoconnection
Copy link
Owner

There are a Windows-specific API calls that prevent running SevenZipExptractor on Linux:
https://github.com/adoconnection/SevenZipExtractor/blob/master/SevenZipExtractor/Kernel32Dll.cs

This code may do the trick:
https://stackoverflow.com/questions/13461989/p-invoke-to-dynamically-loaded-library-on-mono
https://github.com/gordonmleigh/Stugo.Interop

@adoconnection adoconnection changed the title Making SevenZipExtractor work on linux Making SevenZipExtractor work on Linux Apr 25, 2020
@LoChiquette
Copy link

Hello, I've been looking into that a bit but from my understanding SevenZipExtractor is a wrapper over 7z native dlls. I couldn't find any 7z libs for linux aside p7zip that is not supported anymore and stopped receiving updates in 2016. Are you aware of other options to use SevenZipExtractor on linux?

The Kernel32dll is to load the 7z assembly so even if we achieve to be able to load a library, there won't be any to be loaded. (I might be totally wrong, please correct me if so)

@adoconnection
Copy link
Owner Author

In my understanding as long as 7z DLL does nothing platform specific it should work in both Linux and Windows.

Its all up to one experiment: simple console app PoC

@wf-soft
Copy link

wf-soft commented Jan 4, 2021

@adoconnection Hi! adoconnection! Is there a solution for running on Linux.

@nightblade9
Copy link

I don't think there is. I ended up reworking my project to remove 7zip because it didn't work on Linux.

@SteAmeR
Copy link

SteAmeR commented Mar 12, 2022

Do you have any plans to make this project compatible with Linux in the future?

@adoconnection
Copy link
Owner Author

Hi, at this point ZevenZipExctractor rely on WinApi and Kernel32.dll in particular.
In order to work on linux, this has to be ported somehow, seems easy but I dont have resources to dive into marshaling .net core calls to native libs on linux.

Looking for someone to help me.

@adoconnection
Copy link
Owner Author

In my understanding as long as 7z DLL does nothing platform specific it should work in both Linux and Windows.

Its all up to one experiment: simple console app PoC

this did not worked

@ambs
Copy link

ambs commented May 24, 2022

Hi. I lack knowledge on the details required, but I am happy to perform tests locally if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants