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

Run QQ_6.6.7.dmg with darlinghq. #839

Open
hongyi-zhao opened this issue Jun 27, 2020 · 30 comments
Open

Run QQ_6.6.7.dmg with darlinghq. #839

hongyi-zhao opened this issue Jun 27, 2020 · 30 comments
Labels
Application Compatibility Darling needs fixes for compatibility with a specific Application

Comments

@hongyi-zhao
Copy link

Hi,

I'm using Ubuntu 20.04. Is it possible for to run QQ_6.6.7.dmg within darlinghq?

@gusbemacbe
Copy link

Hi @hongyi-zhao

Yes, it is possible. See Darling's docs:

https://docs.darlinghq.org/installing-software.html#dmg-files

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

Fwiw, if you are purely interested in running qq under linux, win32/win64 qq on wine might be a easier approach. Don't let me stop you from trying mac qq under darling though.

(I have no desire of doing either, yet...)

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jun 27, 2020

@qianyigengwu I've tried this solution. It seems that it cannot support the most recent version of qq.

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jun 27, 2020

Now, he has perfect support for the latest version of QQ. Trust me.

The official latest version of qq is 9.3.5, while the most recent deepin qq version is 9.1.8. OTOH, the wine version of qq shows poor performance base on my experience.

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jun 27, 2020

@qianyigengwu Thanks a lot for pointing this out. Anyway, it's not a bad idea to try and have more solutions.

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

Not sure what version of wine https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu corresponds to - it says 2.18 ... But wine is at version 5.11 at the moment (and I am using 5.7, which is about 6 weeks old.).

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

Deepin is about 2 years behind upstream wine, so I doubt that. But, whatever works for you. I am just saying that (given I have contributed to both projects and have found my way around the source code of both) - wine is a better bet than darling, if an application is available for both windows and mac, and you are not particularly attached to the mac version of it.

My interest in darling is in apple's font tools and Apple's CoreText and ATS framework, so it is apple-specific. (I am interested in Microsoft"s directwrite and GDI too, but that's completely separate)

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@hongyi-zhao
Copy link
Author

Hi @hongyi-zhao

Yes, it is possible. See Darling's docs:

https://docs.darlinghq.org/installing-software.html#dmg-files

Tried but still failed. See the following steps for my case:

$ darling shell
$ hdiutil attach QQ_6.6.7.dmg 
$ cd /Volumes/QQ_6.6.7/
$ rsync -avP QQ.app/ /Applications/QQ.app/
$ cd /Applications/QQ.app/Contents/MacOS/
$ ./QQ 
dyld: Library not loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
  Referenced from: /Applications/QQ.app/Contents/MacOS/QQ
  Reason: image not found
Abort trap: 6 (core dumped)

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jun 27, 2020

Same issue as https://github.com/darlinghq/darling/projects/2#card-36354606 then.

Do you mean this is a not yet implemented feature till now?

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

"not yet implemented". Otoh, you can have a go at stubbing it. It does not need to be functional, just present. (as in, have a few "do nothing yet" routines).

@gusbemacbe
Copy link

@qianyigengwu

I hope to get Xcode up and running on Darling soon (yes, it looks like I had a serious problem building Darling from Aur!)

You can build manually Darling without problems. I am on Endeavour OS (Arch Linux-based distro) and run normally Darling.

Please follow the manual and go to the title "Arch Linux & Manjaro": https://docs.darlinghq.org/build-instructions.html. Please note you do not need to install linux-lts (which is Linux Kernel 5.4) if you have already installed linux-headers and linux). Then go to https://docs.darlinghq.org/build-instructions.html#fetch-the-sources.

@gusbemacbe
Copy link

@hongyi-zhao

Tried but still failed. See the following steps for my case:

$ darling shell
$ hdiutil attach QQ_6.6.7.dmg 
$ cd /Volumes/QQ_6.6.7/
$ rsync -avP QQ.app/ /Applications/QQ.app/
$ cd /Applications/QQ.app/Contents/MacOS/
$ ./QQ 
dyld: Library not loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
  Referenced from: /Applications/QQ.app/Contents/MacOS/QQ
  Reason: image not found
Abort trap: 6 (core dumped)

We have this same issue, in reference to #838. You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

@crisqyxw
Copy link

crisqyxw commented Jun 27, 2020 via email

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jun 27, 2020

We have this same issue, in reference to #838. You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

Do you mean something similar to the following is needed for solving this problem:

$ brew install dyld abort_with_payload

@bugaevc
Copy link
Member

bugaevc commented Jun 27, 2020

You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

$ brew install dyld abort_with_payload

That's... hilarious, and that's not how any of this works 😆

@gusbemacbe
Copy link

gusbemacbe commented Jun 27, 2020

We have this same issue, in reference to #838. You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

Do you mean something similar to the following is needed for solving this problem:

$ brew install dyld abort_with_payload

Homebrew still does not work. In reference to #357, @facekapow said it needs this issue to be fixed.

@bjorn3
Copy link

bjorn3 commented Jun 27, 2020

dyld: Library not loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
Referenced from: /Applications/QQ.app/Contents/MacOS/QQ
Reason: image not found

This is not that dyld is not found, but that dyld tried to load AudioUnit.framework, but couldn't find it. AudioUnit.framework is normally a part of macOS itself, but for Darling there needs to be a re-implementation of it.

@gusbemacbe
Copy link

However, it seems that lack of these libraries came from Xcode, in reference to #636.

@gusbemacbe
Copy link

Hello @bjorn3, please can you explain what's wrong at the reference #838?

@HinTak
Copy link
Contributor

HinTak commented Jun 27, 2020

#838 is also exactly as I explained above - the dynamic loader (dyld open source from apple, included in darling) says it cannot find some library, so it aborted (abort_with_playload is a message from the object-c runtime, which is also open source and darling includes) and stopped loading visual studio code.

@facekapow
Copy link
Member

We have this same issue, in reference to #838. You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

Do you mean something similar to the following is needed for solving this problem:
$ brew install dyld abort_with_payload

Homebrew still does not work. In reference to #357, @facekapow said it needs this issue to be fixed.

Actually, my last comment on that issue was that Homebrew does work now (with a few hiccups, of course; it may freeze sometimes, but killing it and relaunching it will usually fix that). But, no, Homebrew won’t help with this issue.

This is actually the same problem that #764 has.

@hongyi-zhao
Copy link
Author

I also tried to launch it with open command, but failed as follows:

$ open /Applications/QQ.app          
audit_session_self STUB
file:///Applications/QQ.app/Contents/MacOS/QQ: Failed to spawn via launchd

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Jul 8, 2020

Deepin-wine can be understood as QQ's custom wine, which means you can manually install the latest version of Qq at ~ / . DEEPINWINE / eepin-QQ / , such as"export wineprefix = ~ / . DEEPINWINE / Deepin-QQ deepin-wine xxxx.exe"(at this point your exe file needs to be placed in ~ / . DEEPINWINE / Deepin-QQ or its subfolder)

I installed the lateset qq into ~/.deepinwine/Deepin-QQ with the following steps:

$ wget -O- https://deepin-wine.i-m.dev/setup.sh | sh
$ sudo apt-get install deepin.com.qq.im

Use the self-compiled wine to install the latest qq into the location: ~/.wine/Deepin-QQ and then run it as following:

$ cd ~/.deepinwine/Deepin-QQ/drive_c/'Program Files'/Tencent/QQ/Bin
$ env WINEPREFIX=~/.deepinwine/Deepin-QQ deepin-wine QQ.exe

It seems the above command failed to start qq but following command will run it successfully:

$ /opt/deepinwine/apps/Deepin-QQ/run.sh

It seems this method is not so stabler than the one installed by sudo apt-get install deepin.com.qq.im, sometimes it will freeze during the starting progress. So, the best method is use the latest version supplied by deepin repo instead of trying to use the latest qq version released by Tencent.

Side note: The self-compiled git master version of wine can start the above qq but will crash after several seconds.

@facekapow facekapow added the Application Compatibility Darling needs fixes for compatibility with a specific Application label May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Application Compatibility Darling needs fixes for compatibility with a specific Application
Projects
None yet
Development

No branches or pull requests

7 participants