openMSX debugger Cannot load or find platform plugin "cocoa"

By wbovela

Supporter (6)

wbovela's picture

13-01-2015, 08:16

Hi,

I am installing openMSX debugger on MacOS X (Mavericks) and am running into a problem. The debugger requires Qt to run which must be manually installed at the moment. After making the necessary symbolic links to the Qt framework libraries, debugger now gives the following message when I try to start it:

This application failed to start because it could not find or load the Qt platform plugin "cocoa".

I have found the libqcocoa.dylib library in the Qt package, but openMSX debugger gives no clue as to where it expects this library to be. I have tried every conceivable place that I thought was logical:
-the application's home directory
-the user's home directory
-a Plugins/platforms directory in the app home directory (with and without capitals, just a platforms, just a plugins directory)

Nothing helped so far. Any clues?

Thanks! Smile

Login or register to post comments

By Grauw

Ascended (10074)

Grauw's picture

13-01-2015, 09:25

I have a manually compiled copy of the openMSX debugger, and after I upgraded to OS X Yosemite I had to recompile it with the latest OS X SDK. I vaguely recall a similar error. (Note I’m using the last QT4 version as I had trouble getting QT5 set up.)

By Manuel

Ascended (18162)

Manuel's picture

13-01-2015, 11:45

Did you try the path platforms/libqcocoa.dylib inside the .app folder?
Or in the place where the other libs are like QtCore.dylib?

Note that this library is loaded by Qt as a plugin, not by the application itself.

By wbovela

Supporter (6)

wbovela's picture

14-01-2015, 15:26

platforms/libqcocoa.dylib in .app folder: check.
in the same place as the QtCore framework files: check.

Keep the suggestions coming Smile So far none of the positions have worked. It may be the actual file name of course. The message says that it cannot "load or find" the "cocoa" platform plugin. Says nothing about what the file name should be.

By wbovela

Supporter (6)

wbovela's picture

14-01-2015, 15:28

I am working with the binaries and Qt5 (as suggested). I may have a go at compiling the debugger myself now, since I have Qt and XCode installed now.

By Manuel

Ascended (18162)

Manuel's picture

14-01-2015, 21:19

That should be pretty easy. Just run 'make'.

I've asked Enric Geijo how he did it... (in the FUZIX thread he said he managed to get it working with MacPorts...)

By wbovela

Supporter (6)

wbovela's picture

14-01-2015, 22:47

I tried it already but it was missing libraries. I think I have them now so I'll just run make and see what happens.

By wbovela

Supporter (6)

wbovela's picture

15-01-2015, 14:30

SOLVED!!

I installed the Qt5 package in an arbitrary directory. Because openmsx-debugger expects Qt to live in /usr/local/opt/qt5/ I symbolic linked the individual files required into that location.
Just now I simply linked the entire installation into /usr/local/opt/qt5/ and openmsx-debugger started without a hitch!

Is there anything I need to do to link it to openMSX during run time?

By Manuel

Ascended (18162)

Manuel's picture

15-01-2015, 20:28

Did you already try the connect button?

By wbovela

Supporter (6)

wbovela's picture

15-01-2015, 23:05

Yes...I spoke too soon. It works perfectly Smile Thanks for the help!