darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.43k stars 442 forks source link

Symbol not found: __dispatch_source_type_nw_channel #733

Open FelicitusNeko opened 4 years ago

FelicitusNeko commented 4 years ago

I realise that running GUI apps right now is by no means guaranteed right now, but I figured I would at least report the results of my experiments in running a utility called Forecast.

The stopping point I ran into was an attempt to reference __dispatch_source_type_nw_channel in /usr/lib/libSystem.B.dylib.

There were several missing libraries, which I ended up pulling from an OS X system in an attempt to get it working:

/System/Library/Frameworks: AVFoundation MediaToolbox CoreDisplay

/System/Library/PrivateFrameworks: InternationalSupport MediaExperience perfdata ProtocolBuffer AppleJPEG GPUWrangler IOAccelerator IOPresentment

/usr/lib: libAudioStatistics.dylib libperfcheck.dylib libIOReport.dylib libSMC.dylib libnetwork.dylib libapple_nghttp2.dylib

Lesson learned: even if an app looks simple, doesn't mean it actually is. Anyhow, I hope this information is at all useful to you.

Edit: Forgot to mention; running the latest (as of yesterday) git build of Darling under Kubuntu 18.04 within VirtualBox 6.1.4.

LubosD commented 4 years ago

Hi,

the app looks nice and simple, so I took a closer took at it. Good news is that it actually is a simple application!

The reason why you ran into so many missing libs etc. is that it's par for the course when you start copying Apple's libraries/frameworks.

In reality, it just depends on:

The largest area of these is AudioToolbox, and I've been recently working on (Ext)AudioFile support. But I was "called off" to other, more urgent areas (getting LLDB working again).

So I'll add this app to my high priority list.