Emuforums.com

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


Reply
 
LinkBack Thread Tools Display Modes
Old November 20th, 2007   #81 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
yes, but I want to know why does Code::Blocks do not give me the file I'm expecting.
For info I open my MSVC workspace with Code::Blocks( yes it can do it), I click "build", it compiles the first file only, tells me there is a syntax error with /bin/sh, and tells there is no error, and does not give me the file I'm expecting, no file in the release folder.
Code:
-------------- Build: Win32 Release in MegaPad ---------------
Compiling: PAD.cpp
/bin/sh: Syntax error: "(" unexpected
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
I'm progressing. After installing some packets I got KDevelop to work.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.

Last edited by Luigi__; November 21st, 2007 at 20:53..
Luigi__ is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old November 22nd, 2007   #82 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 328
Do you use ubuntu? Which packges?
__________________
iDeaS Emulator
Lino is offline   Reply With Quote
Old November 22nd, 2007   #83 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
yes, I use kubuntu. Run KDevelop, see what commands are buggy in the compilation log (bottom of the window), type these commands in the konsole and type teh commands the konsole tells you to type. You will need your linux cd-rom.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
Luigi__ is offline   Reply With Quote
Old November 22nd, 2007   #84 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 328
Which packges must I download for making to work kdevelop? Please

Another question do you use SDL on linux? Which packges must i download?
__________________
iDeaS Emulator

Last edited by Lino; November 22nd, 2007 at 19:37..
Lino is offline   Reply With Quote
Old November 23rd, 2007   #85 (permalink)
Registered User
 
Join Date: Nov 2007
Location: where i want to
Posts: 4
the same thing that happened to dragonheart.by has also been happening to me on katamri damacy?? is there a fix for it?
fullwall is offline   Reply With Quote
Old November 23rd, 2007   #86 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
you don't need to download anything except kdevelop package of course

ps : my plugin does not show up in the list. what must i do to make my plugin to show up in the list on linux ? dllmain ? exports ?
I've another problem : pcsx2 does not want to emulate ps2, when I click "run cdvd", it simply stops running.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.

Last edited by Luigi__; November 24th, 2007 at 10:42.. Reason: Automerged Doublepost
Luigi__ is offline   Reply With Quote
Old November 24th, 2007   #87 (permalink)
Registered User
 
Join Date: Oct 2007
Location: United States
Posts: 18
Quote:
Originally Posted by NHervé View Post
you don't need to download anything except kdevelop package of course

ps : my plugin does not show up in the list. what must i do to make my plugin to show up in the list on linux ? dllmain ? exports ?
I've another problem : pcsx2 does not want to emulate ps2, when I click "run cdvd", it simply stops running.
Oh! You got it to compile? What did you do differently to make it work?

Anyway, you should hopefully only need your SDL libraries installed... install your libSDL package and it should put a shared object (libSDL-<version number>.so) in the /usr/lib directory. If you have that installed and PCSX2 just can't see it there, I guess you could try copying it right into the PCSX2 directory. ...or, do you call for that file specifically in your plugin? There must be a cleaner way than copying it over.

EDIT: Oh, PCSX2 problems? What plugins/settings are you using? Is your sound system free for the SPU2 plugin to use? That'd make the emulator stop running. If using the null sound plugin works, I'll tell you how to fix this. If not.. ..yeah, what plugins and settings are you using? And what version of PCSX2, for that matter? Compiled from SVN?

Last edited by Booma; November 24th, 2007 at 14:57..
Booma is offline   Reply With Quote
Old November 24th, 2007   #88 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
when i install libsdl, linux tells me a more recent version is already installed.
gs : zerogs opengl
spu2 : spu2null & peops spu2
pad : zeropad & padwinkeyb
cdvd : cdvdnull & efp polling
dev9 : dev9null
usb : usbnull
firewire : fwnull
what is the dllmain on linux?
Must I create a .def file or similar to export funcs ?
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
Luigi__ is offline   Reply With Quote
Old November 24th, 2007   #89 (permalink)
Registered User
 
Join Date: Oct 2007
Location: United States
Posts: 18
Hm, if you already have a version of libSDL installed, you shouldn't need to do anything else... but I guess I'm not sure.

I think you're looking for _init() and _fini()... but I'm not much of a programmer, I don't know much about this... same goes for the def file thing... sorry...

And, what version of PCSX2 were you using again?

Last edited by Booma; November 24th, 2007 at 19:50..
Booma is offline   Reply With Quote
Old November 24th, 2007   #90 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
i'm using pcsx2 0.9.3, as it is already compiled, I don't want to use pcsx2 0.9.4 source because, due to my luck, I will never get it compiled and working.

PLEASE HELP ME !!!!!!!!!!!!!!!!!!!!
or megapad will be windows only forever.

PS : if you get game crashing with MegaPad, enable pad logging and post the padLog.txt file.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.

Last edited by Luigi__; November 25th, 2007 at 12:41.. Reason: Automerged Doublepost
Luigi__ is offline   Reply With Quote
Old November 25th, 2007   #91 (permalink)
Registered User
 
Join Date: Oct 2007
Location: United States
Posts: 18
Sorry, I've been really busy this weekend... I haven't been able to check here often.


I asked that because sometimes programs can be kind of picky about running on computers they weren't compiled on... I'm not sure if that's your problem or what. I need to leave again, but if you want, when I get back, I can try walking you through compiling 0.9.4 as painlessly as possible (it's much easier than what you're trying to do now) or giving you a copy of mine.

One last thing while I'm gone again, can you not get it to start the bios either, or is it just "run cdvd" that won't work?
Booma is offline   Reply With Quote
Old November 25th, 2007   #92 (permalink)
Mad
AKA snkmad
 
Mad's Avatar
 
Join Date: Apr 2001
Location: Brazil, Fortaleza-Ceará
Posts: 3,300
NHervé if you want, i can teach you how to compile pcsx2 under linux, or even send you latest compiled svn.
__________________
[Windows 7 RTM PRO X64] [Gigabyte GA-G31M-S2L] [Intel E5200@2.5Ghz] [Corsair XMS2 DHX 4GB DDR2 800MHz] [HIS HD4670 1GB GDDR3] [19" LCD SyncMaster T190] [Samsung SATA II HD322HJ 320GB] [LG HL-DT-ST DVD-RAM GH22NS30]
(@gigaherz) S.N.K.M.A.D.: Synthetic Networked Killing and Masterful Assassination Device
Mad is offline   Reply With Quote
Old November 25th, 2007   #93 (permalink)
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
yes, I would like to know how to compile pcsx2 0.9.4, but :
I also want to know how to create a Linux plugin for pcsx2.
Answer me please, or MegaPad will be windows-only.

Linux is not very user-friendly, many linux programs are sources you need to compile, and there are errors in most of the cases.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
Luigi__ is offline   Reply With Quote
Old November 25th, 2007   #94 (permalink)
Registered User
 
Join Date: Oct 2007
Location: United States
Posts: 18
Sorry, I was just trying to help get PCSX2 up so you could test the plugin.. I thought you might've had it in some possibly-working shape.

Linux is definitely different than windows, and hard to get used to if you started in windows, but I wouldn't say it's less user friendly, or harder. Just different... Very rarely do you need to compile things yourself--Package managers usually do everything for you. In the cases you do need to compile (like PCSX2), you're almost always given makefiles, so it's extremely simple and can be done with a single command. If you get errors, for this sort of thing, you're just missing outside packages that the program uses--when you get errors, you can just search with your package manager to find the needed files.

Let's do PCSX2 now, whether you need it or not, just to show. First, fire up the package manager and get these packages (I don't know exactly what they'll be called for you, so just look for something like this)--

Subversion
gtk2 (or something like GTK+2 devel)
MESAgl devel (or another package with gl.h)
libbz2 (or something like libbzip2 or bzip2)
libjpeg
glew-dev (or something like libglew devel)
libxxf86vm-dev (or something like libxxf86vmdevel)
x11proto-xf86vidmode (?)
automake and autoconf (I wonder if those two could help you with the plugin?)
libasound-dev

And this, the Nvidia CG Toolkit...
get the "Linux X86 (TAR.GZ)" one and toss the contents of its usr directory into your own.

Now, open a terminal and cd to a folder you'd like to download to. Now just paste these lines into the console one at a time.

svn co https://pcsx2.svn.sourceforge.net/svnroot/pcsx2 pcsx2
cd pcsx2
sh build.sh all

...and you're done.


That aside, as for the plugin, I'm not much of a programmer in windows, let alone linux. I'm trying to help in whatever small ways I can, but you probably know more about this than I do. It sounded so much like you were getting along fine. If you're just down to the compiling stage, maybe someone like ZeroFrog could help you finish things up and put together the makefile. If anyone here thinks they can help, please step in...

Last edited by Booma; November 25th, 2007 at 23:49..
Booma is offline   Reply With Quote
Old November 25th, 2007   #95 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Europe
Posts: 47
@NHervé - since you are using Kubuntu you can use the Adept package manager to download and install the precompiled binary files (.deb files) that Booma listed. If you need more information about Linux itself you can always ask. ^_^

I would also suggest to download the "nvidia-cg-toolkit" from the repositories with Adept instead of manually installing it.
Surkow is offline   Reply With Quote
Old November 25th, 2007   #96 (permalink)
Registered User
 
Join Date: Oct 2007
Location: United States
Posts: 18
He knows how to use the package manager... I just couldn't give him the exact package names because I use Mandriva (with urpmi) as opposed to any form of Ubuntu, so things are going to be different for me. And I gave the link to the Nvidia CG Toolkit because I can't get it through urpmi, it seems. Just assumed it was the same for him.

What he's stuck on seems to be actually compiling his code... whereas Windows has nice, familiar IDEs that do everything for you, with Linux you typically have to mess with makefiles and such, as far as I've seen... which neither of us seem to know anything about.
Booma is offline   Reply With Quote
Old November 26th, 2007   #97 (permalink)
Registered User
 
Join Date: Nov 2007
Location: ca
Posts: 3
pcsx2 linux user

Hey, If youre still having problems getting megapad to compile with the linux version of pcsx2 I might be able to help. Yesterday I modified the zeroPad code (SVN latest) to handle basic joystick functions. I've tried it with a few games without major problems.

It might be a safer starting point. Its a REALLY basic plugin with:
Hardcoded keys - the file Load and save functions are still there just not used.
no GUI - you will need to make a new window layout / handlers
no SDL - One less dep and in my experience SDL_Event doesn't always behave when threaded.

So.. are you interested? I could even add in the megapad functions if needed.
dolch is offline   Reply With Quote
Old November 26th, 2007   #98 (permalink)
Plugin author
 
Join Date: Apr 2006
Location: Perdition
Posts: 588
You could call it MegaZero...Though I'm not sure quite what that means, mathematically.

Alternatively, you take a look a look at the makefiles for one of the null plugins. They should have the minimum you need to compile a happy plugin. Then just add what you need to import SDL and use your own source files.

ZeroPad, if you've been looking at its makefiles, uses automake, which is a bit more complicated (At least its documentation is 450k - never used it, myself).

Last edited by ChickenLiver; November 26th, 2007 at 03:33..
ChickenLiver is offline   Reply With Quote
Old November 26th, 2007   #99 (permalink)
Mad
AKA snkmad
 
Mad's Avatar
 
Join Date: Apr 2001
Location: Brazil, Fortaleza-Ceará
Posts: 3,300
dolch can you make the plugin map the analog sticks to keyboard?
__________________
[Windows 7 RTM PRO X64] [Gigabyte GA-G31M-S2L] [Intel E5200@2.5Ghz] [Corsair XMS2 DHX 4GB DDR2 800MHz] [HIS HD4670 1GB GDDR3] [19" LCD SyncMaster T190] [Samsung SATA II HD322HJ 320GB] [LG HL-DT-ST DVD-RAM GH22NS30]
(@gigaherz) S.N.K.M.A.D.: Synthetic Networked Killing and Masterful Assassination Device
Mad is offline   Reply With Quote
Old November 26th, 2007   #100 (permalink)
Registered User
 
Join Date: Nov 2007
Location: ca
Posts: 3
I should be able to add in support for the right/left analog axis. I'll type that up with a better config before I post the code.
dolch 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 01:38.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5