Project

General

Profile

Actions

Emulator Issues #939

closed

(Mac OS X) Unable to find plugins

Added by peter.schwarz over 15 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. compile the app using nowx=true
  2. Run the DolphinNoGui

What is the expected output? What do you see instead?
The app should run the game.

Actual results:
51:50:141 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
handler instance 0x0
51:50:174 E: * Warning: Error loading
/Users/pschwarz/Development/opensource/emulators/dolphin-emu-read-only/Binary/Darwin-i386/Dolphin.app/Contents/PlugInslibPlugin_DSP_HLE.dylib:
can't find file
Error loading
/Users/pschwarz/Development/opensource/emulators/dolphin-emu-read-only/Binary/Darwin-i386/Dolphin.app/Contents/PlugInslibPlugin_DSP_HLE.dylib:
can't find file
51:50:174 E: * Warning: Can't init DSP Plugin
Can't init DSP Plugin
51:50:174 E: * Warning: Couldn't init the core.
Check your configuration.
Couldn't init the core.
Check your configuration.

What version of the product are you using? On what operating system?
SVN rev 3173 on Mac OS X 10.5.6

Please provide any additional information below.
This is due to a problem with FileSearch, and the GetPluginsDirectory() in
FileUtil.

On APPLE builds, it does not append a '/' to the end of the plugin
directory. When the defaults are set, there is no separator placed between
the plugin dir and the plugin names. FileSearch automatically puts a slash
between the search dir (in this case, the plugin dir) and the found files.
When actually using the plugins, this file names don't match up, so the
PluginInfo's aren't found (the filenames don't match).

I've attached a diff with the changes I've made to fix the issue.

Actions #1

Updated by peter.schwarz over 15 years ago

That and you can ignore the CFURL.h change. For some reason, on my mac, the
CoreFoundation.framework/headers directory has CFURL.h instead of CFUrl.h. I'm
surprised that other people don't have that problem, since CFURL.h is what's
discribed in the developer docs at apples website
(http://developer.apple.com/documentation/CoreFoundation/Reference/CFURLRef/Reference/reference.html).

Actions #2

Updated by daas.leer over 15 years ago

What do I do ones I've downloaded the file??

Actions #3

Updated by peter.schwarz over 15 years ago

It's not a proper diff, just a diff between svn head and my repository. You can make
the code changes to your own source tree to correct the problem.

Actions #4

Updated by daas.leer over 15 years ago

Thanks for the quick respont, but I still do't understand what I should do...
I followed the steps from the mac osx build.
What do I do with the tekst then, do I copy it somewhere??

Thanks alot

Actions #5

Updated by peter.schwarz over 15 years ago

The text has the lines of code in the files that need to be corrected. If you make
the changes in the files (FileUtil.cpp and FileSearch.cpp) in the source line numbers
given, and then re-compile, that should do it.

I was really posted that file in hopes that one of the developers would pick it up
and put it into the source tree.

Actions #6

Updated by sl1nk3.s over 15 years ago

I'm surprised nobody had these issues before...
Also, i'm sure Sonicadvance, didn't have this problem as he ran some games on OSX
already, though there were some issues with OpenGL anyway.

Actions #7

Updated by tmator over 15 years ago

  • Status changed from New to Fixed

It works

Actions #8

Updated by peter.schwarz over 15 years ago

I disagree that it works in all instances. I'm not sure why, but I have to apply the
code changes that I've attached (one of which is just a good change - FileSearch is
flawed regardless of OS). Sounds like a few other people are having this issue as well.

Actions #9

Updated by Sonicadvance1 over 15 years ago

Also works for me

Actions #10

Updated by tmator over 15 years ago

really trange, can you try to launch GUI version to configure the plugins in
dolphin.ini ?

Actions #11

Updated by peter.schwarz over 15 years ago

That's the one I started with. It would leave off a '/' between the directory and
the lib names. So I'd correct that in the ini file, and then it couldn't match the
name of the lib to the actually file name on the file system.

Again, just take a look at the fix to FileSearch. It is a generic fix that makes it
correctly label the directory with the right slashes.

Actions #12

Updated by proagg over 15 years ago

Thanks a million. It took me a while to figure out how to read your changes, but it allowed me to actually
compile and run dolphin on my iMac. I've attached my changed files for anyone who's not so code-savvy, or who
just wants to save some time. I hope that's ok.

Both files reside in the /dolphin-emu-read-only/Source/Core/Common/Src/ folder

Actions

Also available in: Atom PDF