Linux - Compile Guide and Support
(02-14-2011, 09:10 PM)gregory Wrote: There is a new option in your cmake version Smile Can you give a quick shot to this new patch.
Code:
Index: cmake/SearchForStuff.cmake
===================================================================
--- cmake/SearchForStuff.cmake    (revision 4297)
+++ cmake/SearchForStuff.cmake    (working copy)
@@ -37,6 +37,8 @@
find_package(Subversion)
# The requierement of wxWidgets is checked in SelectPcsx2Plugins module
# Does not requier the module (allow to compile non-wx plugins)
+# Force the unicode build (the variable is only supported on cmake 2.8.3 and above)
+set(wxWidgets_CONFIG_OPTIONS "--unicode=yes")
find_package(wxWidgets COMPONENTS base core adv)
if(NOT FORCE_INTERNAL_ZLIB)
     find_package(ZLIB)

oke, i will do it.
btw, i have remove my compiled wxwidget with unicode, then i reinstalled wxwidget original from my distribution that have ansi and unicode support.

copy fresh pcsx2-svn
apllied the patch
than make pcsx2
and that patch work, thanks alot.

i attach the log.




btw, there is small bug in pcsx2, i cannot choose another path for bios, savestates, snapshot and logs folder.
it always goes to PCSX2 folder in my home folder.


Attached Files
.txt   working.txt (Size: 28,38 KB / Downloads: 345)
Mandriva Linux Free 2010.2 (32bit)
PCLinuxOS 2010.12 (32bit)
Athlon II X2 260 (@3,2Ghz)
4GB DDR2
Zotac Geforce GT240 1GB DDR3 (Nvidia Beta driver 270.30)
Reply

Sponsored links

Good. Could give more details on your folder issue ? It seems to work here.
Reply
when i'am first run pcsx2, it default go to PCSX2 in my home folder,
then when i try to choose another path, it always comeback to PCSX2 folder in my home folder.

if you need screenshot, i will give you.
my english not too good, so it's hard to explain. >.<
Mandriva Linux Free 2010.2 (32bit)
PCLinuxOS 2010.12 (32bit)
Athlon II X2 260 (@3,2Ghz)
4GB DDR2
Zotac Geforce GT240 1GB DDR3 (Nvidia Beta driver 270.30)
Reply
Yes please, give me some screenshots.
Reply
@gregory
Sory for late reply.
I just installed Mandriva Free 2010.2, because my PClinuxOS sometime X got hang when i'am logout.

i have compile in Mandriva, wxwidget 2.8.10 (now i just installed wx with unicode only) and cmake 2.3.1
the error only happen for the first time when installing.
you can see here, i don't have PCSX2 folder.
<a href="http://s52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/?action=view&amp;current=pcsx-tried-set-error-02.jpg" target="_blank"><img src="http://i52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/pcsx-tried-set-error-02.jpg" border="0" alt="Photobucket"></a>

then i'am running pcsx2 for the first time, when i tried to set up some pulgins, some example, i tried configure gamepad:
i got this error:
<a href="http://s52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/?action=view&amp;current=pcsx-tried-set-gamepad-02.jpg" target="_blank"><img src="http://i52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/pcsx-tried-set-gamepad-02.jpg" border="0" alt="Photobucket"></a>

and tried to setup gamepad:
<a href="http://s52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/?action=view&amp;current=pcsx-tried-set-gamepad-01.jpg" target="_blank"><img src="http://i52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/pcsx-tried-set-gamepad-01.jpg" border="0" alt="Photobucket"></a>
then save it, then configure gamepad again, it's not saved.
<a href="http://s52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/?action=view&amp;current=pcsx-tried-set-gamepad-04.jpg" target="_blank"><img src="http://i52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/pcsx-tried-set-gamepad-04.jpg" border="0" alt="Photobucket"></a>

Then, click Next form plugins setup, got this error, then Pcsx2 crash:
<a href="http://s52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/?action=view&amp;current=pcsx-tried-set-error-01.jpg" target="_blank"><img src="http://i52.photobucket.com/albums/g30/tux_2006/Pcsx2%20SVN/pcsx-tried-set-error-01.jpg" border="0" alt="Photobucket"></a>

So i have the create PCSX2 folder first, and with bios, savestates, snapshot and logs folder inside PCSX2 folder.
then run again, i can setup it.


edit: wrong picture/screenshot, and some info
Mandriva Linux Free 2010.2 (32bit)
PCLinuxOS 2010.12 (32bit)
Athlon II X2 260 (@3,2Ghz)
4GB DDR2
Zotac Geforce GT240 1GB DDR3 (Nvidia Beta driver 270.30)
Reply
Thanks, I will try to fix it. All issue seems related to the creation of PCSX2 folder.

However linux rule number 1: never run a program as root because it could easily destroy your system Wink
Reply
thanks for reply.

thanks for the advice, i run kde as root because i just install mandriva.
so just wanna to try it out as fast i can. ^_^
Mandriva Linux Free 2010.2 (32bit)
PCLinuxOS 2010.12 (32bit)
Athlon II X2 260 (@3,2Ghz)
4GB DDR2
Zotac Geforce GT240 1GB DDR3 (Nvidia Beta driver 270.30)
Reply
Tuxgamer could you try this small patch. It uses a recursive mkdir.
Code:
--- a/common/src/Utilities/PathUtils.cpp
+++ b/common/src/Utilities/PathUtils.cpp
@@ -82,8 +82,13 @@
{
    // wxWidgets recurses directory creation for us.

+    // only exist in wx2.9
+#ifndef wxS_DIR_DEFAULT
+#define wxS_DIR_DEFAULT 0777
+#endif
+
    if( Exists() ) return true;
-    return wxFileName::Mkdir();
+    return wxFileName::Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
}

Edit: FYI, I commit the patch. Please, could you give me some feedback ?
Reply
(02-19-2011, 08:42 PM)gregory Wrote: Tuxgamer could you try this small patch. It uses a recursive mkdir.
Code:
--- a/common/src/Utilities/PathUtils.cpp
+++ b/common/src/Utilities/PathUtils.cpp
@@ -82,8 +82,13 @@
{
    // wxWidgets recurses directory creation for us.

+    // only exist in wx2.9
+#ifndef wxS_DIR_DEFAULT
+#define wxS_DIR_DEFAULT 0777
+#endif
+
    if( Exists() ) return true;
-    return wxFileName::Mkdir();
+    return wxFileName::Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
}

Edit: FYI, I commit the patch. Please, could you give me some feedback ?

Oke, I just update pcsx2 svn to r4327 and delete my PCSX2 folder from my home folder.
Now, now i can choose different folder,
and it can make PCSX2 folder otomaticly in my home folder.

thanks alot. ^_^

oot, i hope i will see GDsx plugins do the same as in windows, not just Null plugins.
Mandriva Linux Free 2010.2 (32bit)
PCLinuxOS 2010.12 (32bit)
Athlon II X2 260 (@3,2Ghz)
4GB DDR2
Zotac Geforce GT240 1GB DDR3 (Nvidia Beta driver 270.30)
Reply
What cause with PAD plugins (r4411)? When I try to configure them, I get segfault:
Code:
#0  0xf6b4439a in XCreateIC () from /usr/lib32/libX11.so.6
#1  0xf3949015 in SetupWindowData (_this=0xa2d2ea8, window=0xa4c4df0, w=83886086, created=1 '\001')
    at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/video/x11/SDL_x11window.c:133
#2  0xf39499ba in X11_CreateWindow (_this=0xa2d2ea8, window=0xa4c4df0)
    at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/video/x11/SDL_x11window.c:479
#3  0xf3940557 in SDL_CreateWindow (title=0xf39ce9bc "OpenGL test", x=-32, y=-32, w=32, h=32,
    flags=10) at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:1159
#4  0xf393e5cc in ShouldUseTextureFramebuffer ()
    at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:173
#5  0xf393f04f in SDL_VideoInit (driver_name=0x0)
    at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/video/SDL_video.c:513
#6  0xf393a7bc in SDL_InitSubSystem (flags=544)
    at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/SDL.c:56
#7  0xf393a8e0 in SDL_Init (flags=544) at /home/o01eg/pcsx2/3rdparty/SDL-1.3.0-5387/src/SDL.c:151
#8  0xf392e8eb in JoystickInfo::EnumerateJoysticks (vjoysticks=...)
    at /home/o01eg/pcsx2/plugins/zeropad/joystick.cpp:88
#9  0xf3934c69 in PADconfigure () at /home/o01eg/pcsx2/plugins/zeropad/Linux/linux.cpp:377
#10 0x0822a8b3 in Panels::PluginSelectorPanel::OnConfigure_Clicked (this=0xa2d5da8, evt=...)
    at /home/o01eg/pcsx2/pcsx2/gui/Panels/PluginSelectorPanel.cpp:664
#11 0x081a7faa in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa2d5da8, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x822a41c <Panels::PluginSelectorPanel::OnConfigure_Clicked(wxCommandEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:554
#12 0x081a7f69 in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa2d5da8, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x822a41c <Panels::PluginSelectorPanel::OnConfigure_Clicked(wxCommandEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:548
#13 0xf7f39839 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#14 0xf7f399da in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/local/lib32/libwx_baseu-2.8.so.0
#15 0xf7f3a9db in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#16 0xf7d45ce1 in wxWindowBase::TryParent(wxEvent&) ()
   from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#17 0xf7f3a9a9 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#18 0xf7d45ce1 in wxWindowBase::TryParent(wxEvent&) ()
   from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#19 0xf7f3a9a9 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#20 0xf7c828e0 in ?? () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#21 0xf7921edc in g_cclosure_marshal_VOID__VOID () from /usr/lib32/libgobject-2.0.so.0
#22 0xf79123aa in g_closure_invoke () from /usr/lib32/libgobject-2.0.so.0
#23 0xf7928ee8 in ?? () from /usr/lib32/libgobject-2.0.so.0
#24 0xf7929f14 in g_signal_emit_valist () from /usr/lib32/libgobject-2.0.so.0
#25 0xf792a3a2 in g_signal_emit () from /usr/lib32/libgobject-2.0.so.0
#26 0xf7520fea in gtk_button_clicked () from /usr/lib32/libgtk-x11-2.0.so.0
#27 0xf75225a8 in ?? () from /usr/lib32/libgtk-x11-2.0.so.0
#28 0xf7921edc in g_cclosure_marshal_VOID__VOID () from /usr/lib32/libgobject-2.0.so.0
#29 0xf7910a17 in ?? () from /usr/lib32/libgobject-2.0.so.0
#30 0xf79123aa in g_closure_invoke () from /usr/lib32/libgobject-2.0.so.0
#31 0xf792839a in ?? () from /usr/lib32/libgobject-2.0.so.0
#32 0xf7929f14 in g_signal_emit_valist () from /usr/lib32/libgobject-2.0.so.0
#33 0xf792a3a2 in g_signal_emit () from /usr/lib32/libgobject-2.0.so.0
#34 0xf752108a in gtk_button_released () from /usr/lib32/libgtk-x11-2.0.so.0
#35 0xf75210d3 in ?? () from /usr/lib32/libgtk-x11-2.0.so.0
#36 0xf75defb4 in ?? () from /usr/lib32/libgtk-x11-2.0.so.0
#37 0xf7910a17 in ?? () from /usr/lib32/libgobject-2.0.so.0
#38 0xf79123aa in g_closure_invoke () from /usr/lib32/libgobject-2.0.so.0
#39 0xf7928746 in ?? () from /usr/lib32/libgobject-2.0.so.0
#40 0xf7929d93 in g_signal_emit_valist () from /usr/lib32/libgobject-2.0.so.0
#41 0xf792a3a2 in g_signal_emit () from /usr/lib32/libgobject-2.0.so.0
#42 0xf770bb46 in ?? () from /usr/lib32/libgtk-x11-2.0.so.0
#43 0xf75d75ad in gtk_propagate_event () from /usr/lib32/libgtk-x11-2.0.so.0
#44 0xf75d8947 in gtk_main_do_event () from /usr/lib32/libgtk-x11-2.0.so.0
#45 0xf78c562a in ?? () from /usr/lib32/libgdk-x11-2.0.so.0
#46 0xf7985235 in g_main_context_dispatch () from /usr/lib32/libglib-2.0.so.0
#47 0xf7989038 in ?? () from /usr/lib32/libglib-2.0.so.0
#48 0xf7989577 in g_main_loop_run () from /usr/lib32/libglib-2.0.so.0
#49 0xf75d8f09 in gtk_main () from /usr/lib32/libgtk-x11-2.0.so.0
#50 0xf7c34ee6 in wxEventLoop::Run() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#51 0xf7c8f420 in wxDialog::ShowModal() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#52 0x083359c0 in wxDialogWithHelpers::ShowModal (this=0xffffb9b4)
    at /home/o01eg/pcsx2/common/src/Utilities/wxHelpers.cpp:246
#53 0x081ab57b in AppOpenModalDialog<Dialogs::ComponentsConfigDialog> (parent=0x0)
    at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:71
#54 0x081a6d40 in HandlePluginError (ex=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:88
#55 0x081a6d9a in PluginErrorEvent::InvokeEvent (this=0xa250420)
    at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:129
#56 0x0832e42f in pxActionEvent::_DoInvokeEvent (this=0xa250420)
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:447
#57 0x0832f3d8 in wxAppWithHelpers::OnInvokeAction (this=0xa0940c0, evt=...)
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:658
#58 0x081a7faa in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa0940c0, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x832f3c0 <wxAppWithHelpers::OnInvokeAction(pxActionEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:554
#59 0x081a7f69 in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa0940c0, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x832f3c0 <wxAppWithHelpers::OnInvokeAction(pxActionEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:548
#60 0xf7f39839 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#61 0xf7f399da in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/local/lib32/libwx_baseu-2.8.so.0
#62 0xf7f3a9db in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#63 0x0832e192 in wxAppWithHelpers::ProcessEvent (this=0xa0940c0, evt=...)
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:384
#64 0x0832ea65 in wxAppWithHelpers::IdleEventDispatcher (this=0xa0940c0, action=0xf7f5c468 L"")
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:533
#65 0x0832ebca in wxAppWithHelpers::OnIdleEvent (this=0xa0940c0, evt=...)
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:546
#66 0x081a7faa in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa0940c0, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x832eba2 <wxAppWithHelpers::OnIdleEvent(wxIdleEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:554
#67 0x081a7f69 in Pcsx2App::HandleEvent (this=0xa0940c0, handler=0xa0940c0, func=
    (void (wxEvtHandler::*)(wxEvtHandler *, wxEvent &)) 0x832eba2 <wxAppWithHelpers::OnIdleEvent(wxIdleEvent&)>, event=...) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:548
#68 0xf7f39839 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#69 0xf7f399da in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/local/lib32/libwx_baseu-2.8.so.0
#70 0xf7f3a9db in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#71 0x0832e192 in wxAppWithHelpers::ProcessEvent (this=0xa0940c0, evt=...)
    at /home/o01eg/pcsx2/common/src/Utilities/wxAppWithHelpers.cpp:384
#72 0xf7cbcd7b in wxAppBase::ProcessIdle() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#73 0xf7c1bbe2 in ?? () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#74 0xf7983221 in ?? () from /usr/lib32/libglib-2.0.so.0
#75 0xf7985235 in g_main_context_dispatch () from /usr/lib32/libglib-2.0.so.0
#76 0xf7989038 in ?? () from /usr/lib32/libglib-2.0.so.0
#77 0xf7989577 in g_main_loop_run () from /usr/lib32/libglib-2.0.so.0
#78 0xf75d8f09 in gtk_main () from /usr/lib32/libgtk-x11-2.0.so.0
#79 0xf7c34ee6 in wxEventLoop::Run() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#80 0xf7cbcb6f in wxAppBase::MainLoop() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#81 0xf7cbc711 in wxAppBase::OnRun() () from /usr/local/lib32/libwx_gtk2u_core-2.8.so.0
#82 0xf7ed50ca in wxEntry(int&, wchar_t**) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#83 0xf7ed52a8 in wxEntry(int&, char**) () from /usr/local/lib32/libwx_baseu-2.8.so.0
#84 0x081a6bd3 in main (argc=1, argv=0xffffc9f4) at /home/o01eg/pcsx2/pcsx2/gui/AppMain.cpp:39
Gentoo Linux x86(chroot)
Intel Core2 Quad CPU Q6600 @ 2.40GHz
nVidia Geforce 8800GT
Reply




Users browsing this thread: 2 Guest(s)