darling icon indicating copy to clipboard operation
darling copied to clipboard

Run QQ_6.6.7.dmg with darlinghq.

Open hongyi-zhao opened this issue 4 years ago • 30 comments

Hi,

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

hongyi-zhao avatar Jun 27 '20 00:06 hongyi-zhao

Hi @hongyi-zhao

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

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

gusbemacbe avatar Jun 27 '20 00:06 gusbemacbe

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

HinTak avatar Jun 27 '20 01:06 HinTak

Hey,sir,Look it https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu (https://link.getmailspring.com/link/[email protected]/0?redirect=https%3A%2F%2Fgitee.com%2Fwszqkzqk%2Fdeepin-wine-for-ubuntu&recipient=cmVwbHkrQUw3TVlSQUlLNjZHWVFTQlNYQzIyUzU1QUo3SEZFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D) On 6月 27 2020, at 9:14 上午, HinTak [email protected] wrote:

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...) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/[email protected]/1?redirect=https%3A%2F%2Fgithub.com%2Fdarlinghq%2Fdarling%2Fissues%2F839%23issuecomment-650468273&recipient=cmVwbHkrQUw3TVlSQUlLNjZHWVFTQlNYQzIyUzU1QUo3SEZFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe (https://link.getmailspring.com/link/[email protected]/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAL7MYREXO74KGMH76S5VCX3RYVBXFANCNFSM4OJYDSZQ&recipient=cmVwbHkrQUw3TVlSQUlLNjZHWVFTQlNYQzIyUzU1QUo3SEZFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D).

crisqyxw avatar Jun 27 '20 01:06 crisqyxw

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

hongyi-zhao avatar Jun 27 '20 01:06 hongyi-zhao

Now, he has perfect support for the latest version of QQ. Trust me. On 6月 27 2020, at 9:26 上午, qygw [email protected] wrote:

抱歉,用中文吧。我英语不太好 这是我所认为的最棒的。我相信目前不会有比它更完美的解决方案。

crisqyxw avatar Jun 27 '20 01:06 crisqyxw

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.

hongyi-zhao avatar Jun 27 '20 02:06 hongyi-zhao

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)

On 6月 27 2020, at 10:01 上午, hongyi-zhao [email protected] wrote:

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 recentg deepin qq version is 9.1.8 (https://link.getmailspring.com/link/[email protected]/0?redirect=http%3A%2F%2Fpackages.deepin.com%2Fdeepin%2Fpool%2Fnon-free%2Fd%2Fdeepin.com.qq.im%2F&recipient=cmVwbHkrQUw3TVlSRzVMVVBDRlA3VU1GNUs1UE41QUtFWTNFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D).

OTOH, the wine version of qq is not so efficient base on my experience. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/[email protected]/1?redirect=https%3A%2F%2Fgithub.com%2Fdarlinghq%2Fdarling%2Fissues%2F839%23issuecomment-650473052&recipient=cmVwbHkrQUw3TVlSRzVMVVBDRlA3VU1GNUs1UE41QUtFWTNFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe (https://link.getmailspring.com/link/[email protected]/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAL7MYRG6P375IHEM2MGRGD3RYVHI3ANCNFSM4OJYDSZQ&recipient=cmVwbHkrQUw3TVlSRzVMVVBDRlA3VU1GNUs1UE41QUtFWTNFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D).

crisqyxw avatar Jun 27 '20 02:06 crisqyxw

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

hongyi-zhao avatar Jun 27 '20 02:06 hongyi-zhao

Yeah!I'm glad that I can help you a little.

crisqyxw avatar Jun 27 '20 02:06 crisqyxw

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

HinTak avatar Jun 27 '20 02:06 HinTak

Hello, this is a special version of Deepin community in China, there are a lot of patches and changes, so I say this is a "custom wine" , believe me, it will be more perfect than wine 5.11 or even wine 6.11 when running QQ.

On 6月 27 2020, at 10:26 上午, HinTak [email protected] wrote:

Not sure what version of wine https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu (https://link.getmailspring.com/link/[email protected]/0?redirect=https%3A%2F%2Fgitee.com%2Fwszqkzqk%2Fdeepin-wine-for-ubuntu&recipient=cmVwbHkrQUw3TVlSQVZVQTM1NVFETUIyQk41WTU1QUtIVFhFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D) 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.). — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/[email protected]/1?redirect=https%3A%2F%2Fgithub.com%2Fdarlinghq%2Fdarling%2Fissues%2F839%23issuecomment-650475396&recipient=cmVwbHkrQUw3TVlSQVZVQTM1NVFETUIyQk41WTU1QUtIVFhFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe (https://link.getmailspring.com/link/[email protected]/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAL7MYREXIDFZ5KLHOLBFYTDRYVKDXANCNFSM4OJYDSZQ&recipient=cmVwbHkrQUw3TVlSQVZVQTM1NVFETUIyQk41WTU1QUtIVFhFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D).

crisqyxw avatar Jun 27 '20 02:06 crisqyxw

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)

HinTak avatar Jun 27 '20 02:06 HinTak

I understand you, but the Deepin community has spent years optimizing tray icons, files dialog and so on, and only in Qq, it runs better than wine 5.7, and Deepin wine is currently in stable and active maintenance. At the same time, I'm very optimistic about Darling, and I hope to get Xcode up and running on Darling soon (yes, it looks like I had a serious problem building Darling from Aur!) On 6月 27 2020, at 10:42 上午, HinTak [email protected] wrote:

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) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/[email protected]/0?redirect=https%3A%2F%2Fgithub.com%2Fdarlinghq%2Fdarling%2Fissues%2F839%23issuecomment-650476766&recipient=cmVwbHkrQUw3TVlSSEw0Wk5aS0UzN1JFTE9TSk41QUtKUVBFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe (https://link.getmailspring.com/link/[email protected]/1?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAL7MYRA6DXSDUOQHIEYCO4DRYVMAPANCNFSM4OJYDSZQ&recipient=cmVwbHkrQUw3TVlSSEw0Wk5aS0UzN1JFTE9TSk41QUtKUVBFVkJOSEhDTkNPWEFVQHJlcGx5LmdpdGh1Yi5jb20%3D).

crisqyxw avatar Jun 27 '20 02:06 crisqyxw

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)

hongyi-zhao avatar Jun 27 '20 03:06 hongyi-zhao

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

HinTak avatar Jun 27 '20 05:06 HinTak

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?

hongyi-zhao avatar Jun 27 '20 06:06 hongyi-zhao

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

HinTak avatar Jun 27 '20 07:06 HinTak

@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 avatar Jun 27 '20 13:06 gusbemacbe

@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 https://github.com/darlinghq/darling/issues/838. You need to install few missed libraries dyld and abort_with_payload that Darling developers did not include in their project.

gusbemacbe avatar Jun 27 '20 13:06 gusbemacbe

Oh!thanksa lot and i will try it soon.

crisqyxw avatar Jun 27 '20 13:06 crisqyxw

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

hongyi-zhao avatar Jun 27 '20 13:06 hongyi-zhao

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 😆

bugaevc avatar Jun 27 '20 13:06 bugaevc

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.

gusbemacbe avatar Jun 27 '20 13:06 gusbemacbe

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.

bjorn3 avatar Jun 27 '20 13:06 bjorn3

However, it seems that lack of these libraries came from Xcode, in reference to https://github.com/darlinghq/darling/issues/636.

gusbemacbe avatar Jun 27 '20 13:06 gusbemacbe

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

gusbemacbe avatar Jun 27 '20 14:06 gusbemacbe

#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.

HinTak avatar Jun 27 '20 15:06 HinTak

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.

facekapow avatar Jun 27 '20 16:06 facekapow

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 avatar Jun 27 '20 23:06 hongyi-zhao

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.

hongyi-zhao avatar Jul 08 '20 08:07 hongyi-zhao