Emuforums.com

Go Back   Emuforums.com > PS2 Emulation > PS2 Plugin Questions & Troubleshooting
Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old February 27th, 2005   #1 (permalink)
Registered User
 
Join Date: Feb 2005
Location: Germany
Posts: 2
USB plugin won't load on Linux

Hi,

I'm running on Linux and having a problem with the USB plugin libUSBnull.so. I edited Pcsx2.cfg to use the above mentioned file as the USB plugin, but PCSX2 (v0.7) fails to load it: When I launch PCSX2, I get an error message saying

Quote:
Could Not Load USB Plugin 'Plugins/libUSBnull.so': Plugins/libUSBnull.so: undefined symbol: LoadConfig
Then I get to the configuration screen where I am to select a USB plugin, but since there apparently is a problem loading that plugin I can't select one.

On the command line I don't get other error messages than
Quote:
Plugins/libUSBnull.so: undefined symbol: LoadConfig
and
Quote:
Gtk-CRITICAL **: file gtkcombo.c: line 849 (gtk_combo_set_popdown_strings): assertion `strings != NULL' failed.
The reason for the latter is probably that the USB plugin dropdown list on the configuration screen is empty.

I tried both the pre-compiled USB plugin that comes with the Linux version of PCSX2 and also compiled it myself. The result has always been the same.

Any ideas of what I could do? Basically I don't need USB so a method to override the whole USB thing would solve my problem. Thanks in advance!
s_werter is offline   Reply With Quote
Old February 28th, 2005   #2 (permalink)
Registered User
 
Join Date: Feb 2005
Location: Germany
Posts: 2
Doesn't anyone even have a clue ? Any hint would be appreciated.
s_werter is offline   Reply With Quote
Old March 9th, 2005   #3 (permalink)
Registered User
 
Join Date: Mar 2005
Location: Germany
Posts: 9
Hello,

same problem here. I also tried the previous version pcsx2-0.6. But this was even worse. I also tried to port the USB-Plugin from 0.6 to 0.7. No success. I also tried to compile it locally. Did not work. I solved a few errors, that were reported by the compiler. But it was just too much and too complicated, because I don't know the project and I am only an amateur on coding in C. Seems that some Windows-specific elements are included in the Linux headers.
Now last and perhaps even least I tried it with the latest version of wine. And look. After successful configuration I started up for the first time. Well, I could not test, wether actually running a game will work, because I don't got any here at the moment, but I am optimistic.

Mr. Anderson

PS: Well. It's a bit... freaky, isn't it? Simulating a Windows in order to emulate a PS2. Myabe there is an emulator running on the PS2?
Mr. Anderson is offline   Reply With Quote
Old March 10th, 2005   #4 (permalink)
RPG player
 
chatt's Avatar
 
Join Date: Jan 2004
Location: france
Posts: 17
I don't know why you didn't success to rebuilt it...
On my linux box I don't have any problem for doing it.

You may have not all the development tools (gtk header,etc...) for doing this!!

You should ask the author to rebuild this plugin or I can post a rebuilt of it of it is not against the rules

PS: I know... I know.... very bad english
__________________
thx pcsx2 team and plug-ins developpers!!
chatt is offline   Reply With Quote
Old March 11th, 2005   #5 (permalink)
Registered User
 
Join Date: Mar 2005
Location: Germany
Posts: 9
Thanks for your reply. Now I know, it must be possible to compile under Linux.

How can I find out which development tools I need? There is no configure script, so I looked up in the Makefile and in the code whether to find a useful hint. Either I just did not see it or there is no hint what might be missing. When compiling just the first file (Counters) I get immediately this error:
Code:
In file included from ../Common.h:155,
                 from ../Counters.c:22:
../Misc.h:40: error: parse error before "hW"
../Misc.h:41: error: parse error before "hW"
So I took a look at this file:
Code:
[...]
40 void ListPatches (HWND hW);
41 int ReadPatch (HWND hW, char fileName[1024]);
[...]
Ok, there is a problem with HWND. HWND is not defined in any of the downloaded files and it is not part of the standard API. I asked a friend which library might be missing. He said, that it seems to be part of a Win32 library. ...maybe it exists also under GNU/Linux? It seems, there is no other possibility. But which library is it?

edit: I just remember the time when I wrote some tiny programs in C. I think HWND is a window handle, isn't it? So it should be part of gtk, right?

edit2: I kind of fixed this prob by adding the line
typedef int HWND
on top of Misc.h. Now some files are compiled. But then I get an error telling me, that ix86-32/GoldRec/grec.a is not found. I looked there myself. It it really not there. Should it be? This problem does not concern the API. Is this caused by my work-around?

Last edited by Mr. Anderson; March 11th, 2005 at 17:18.
Mr. Anderson is offline   Reply With Quote
Old March 11th, 2005   #6 (permalink)
Registered User
 
Join Date: Mar 2005
Location: Germany
Posts: 9
As it seems there is no linux-equivalent for HWND at all. So I looked at the latest CVS-file. And surprise:
Code:
#ifdef __WIN32__
void ListPatches (HWND hW);
int ReadPatch (HWND hW, char fileName[1024]);
@chatt: I suppose you used a CVS-Snapshot that is newer than the downloadable sources at www.pcsx2.net

edit: in ix86-32/GoldRec/ I had to run the Makefile. This produced the grec.a. Now everything compiled. Only the PlugIns were missing. I copied them from the binary package. But well, it does not work. So I will look for another PlugIn.

edit2: Alright, I just compiled the USB linuz-PlugIn. Seems to work fine so far. First start without using wine.

Last edited by Mr. Anderson; March 11th, 2005 at 18:33.
Mr. Anderson is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 22:10.


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5