PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.85k stars 1.63k forks source link

gsdx error when running on macos #2803

Closed coreyzzp closed 5 years ago

coreyzzp commented 5 years ago

I have successfully build the debug version to run on latest macos (10.12.6),but I come accross following error:

(thread:MTGS) Calling pthread_create... Wrong X11 display/window GSopen Failed: return code: 0xffffffff

From the code I notice it is from the line of code:

image

the m_NativeWindow is nullptr

any idea? it is really possible to build a version for x86-64 macos?

more info:

image

Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Loading language translation databases for 'Chinese (Simplified)' [zh_CN]
    pcsx2_Main not found -- translation dictionary may be incomplete.
    pcsx2_Iconized not found -- translation dictionary may be incomplete.
SetLanguage: Requested translation is not implemented yet.
Command line parsing...
Command line parsed!
(pxEvtQueue:PauseCoreThread) Posting event! (pending=0, idle=0)
(pxEvtQueue:PauseCoreThread) Executing... [Cancelable]
(pxEvtQueue:PauseCoreThread) Event completed in 3ms
(pxEvtQueue:ShutdownPlugins) Posting event! (pending=0, idle=0)
(pxEvtQueue:UnloadPlugins) Posting event! (pending=1, idle=0)
(pxEvtQueue:ShutdownPlugins) Executing... [Noncancelable]
(pxEvtQueue:ShutdownPlugins) Event completed in 0ms
(pxEvtQueue:UnloadPlugins) Executing... [Noncancelable]
(pxEvtQueue:UnloadPlugins) Event completed in 0ms
PCSX2 1.5.0-20181226220003 - compiled on Jan  6 2019
Savestate version: 0x9a0d0000

Host Machine Init:
    Operating System =  Darwin 16.7.0 x86_64
    Physical RAM     =  16384 MB
    CPU name         =  Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz
    Vendor/Model     =  GenuineIntel (stepping 03)
    CPU speed        =  3.491 ghz (4 logical threads)
    x86PType         =  Standard OEM
    x86Flags         =  bfebfbff 7ffafbff
    x86EFlags        =  2c100800

x86 Features Detected:
    SSE2.. SSE3.. SSSE3.. SSE4.1.. SSE4.2.. AVX.. AVX2.. FMA

(pxEvtQueue:PauseCoreThread) Posting event! (pending=0, idle=0)
(pxEvtQueue:PauseCoreThread) Executing... [Cancelable]
(pxEvtQueue:PauseCoreThread) Event completed in 0ms
Installing POSIX SIGSEGV handler...
Mapping host memory for virtual systems...
    EE Main Memory                   @ 0x1232C000 -> 0x14BB0000 [40mb]
    IOP Main Memory (2mb)            @ 0x14BB0000 -> 0x14DC1000 [2mb]
    VU0/1 on-chip memory             @ 0x0FF2F000 -> 0x0FF39000 [40kb]
Reserving memory for recompilers...
    Micro VU0 Recompiler Cache       @ 0x1713B000 -> 0x1B13B000 [64mb]
    Micro VU1 Recompiler Cache       @ 0x1B13B000 -> 0x1F13B000 [64mb]
(thread:MTVU) Calling pthread_create...
    R5900-32 Recompiler Cache        @ 0x1F13B000 -> 0x2313B000 [64mb]
    R3000A Recompiler Cache          @ 0x14DC1000 -> 0x16DC1000 [32mb]
    VIF0 Unpack Recompiler Cache     @ 0x2313B000 -> 0x2393B000 [8mb]
    VIF1 Unpack Recompiler Cache     @ 0x2393B000 -> 0x2413B000 [8mb]
(pxEvtQueue:LoadCorePlugins) Posting event! (pending=0, idle=0)
(pxEvtQueue:LoadCorePlugins) Executing... [Cancelable]
(thread:GameDatabaseLoader) Calling pthread_create...
(GameDB) Database Not Found! [/f]
(thread:GameDatabaseLoader) Scheduling for deletion...

Loading plugins from /Users/coreyzhu/iPriv/emulator/pcsx2/build-dev/plugins...
    Bound   GS: libGSdx-AVX2.so [GSdx 64-bit (clang 8.0.0 AVX/AVX) 1.1.0]
(thread:GameDatabaseLoader) Thread object deleted successfully
(thread:GameDatabaseLoader) Executing default destructor!
    Bound  PAD: libonepad-legacy.so [OnePAD 20181226220003-Debug 1.3.0]
    Bound SPU2: libspu2x-2.0.0.so [SPU2-X-Debug/Strict 2.0.0]
    Bound CDVD: libCDVDnull.so [CDVDnull Driver 20181226220003 0.6.0]
    Bound  USB: libUSBnull-0.7.0.so [USBnull Driver 20181226220003 0.7.0]
    Bound   FW: libFWnull-0.7.0.so [FWnull Driver 20181226220003 0.7.0]
    Bound DEV9: libdev9null-0.5.0.so [DEV9null Driver 20181226220003 0.5.0]
Plugins loaded successfully.
tadanokojin commented 5 years ago

18

lightningterror commented 5 years ago

Closing since there is no official support for macos.

willkuer commented 5 years ago

Also keep in mind that currently only core interpreter (and only gsdx hw I think) are ported to x64. With other words even if you manage to make all the gui stuff work it will be slow as hell.

First pcsx2 would need to be ported to win/linux x86-64. Afterwards one yould port it to macos.