Next Generation Emulation banner

Zero GS not found (Linux)

3 reading
4.4K views 22 replies 11 participants last post by  chesso  
#1 ·
Hi all,
First of all I'm french so please excuse my language

My problem is that when I launch pcsx2 on my computer (Ubuntu 7.04) he says me that he can't found plugins Directory. I select the plugins directory and I have that :
Image


The graphics field stay blank. I've downloaded ZeroGS KOSMOS 0.96 and extract the files in the plugins directory but it's *.dll files so I think it won't work because my system is Linux.
I've seen in some news a version called ZeroGS OGL. Where can I download it? How can I install it?

Thanks for reading
 
#13 ·
Im getting the same proublem than chesso, maybe its becouse i have compiled the gs plugin with no sse2?. sorry i had made another Thread:
http://forums.ngemu.com/pcsx2-official-forum/87831-pcsx2-compilating-slackware11.html

console output:
fede@fede:~/emuplay/pcsx2/bin$ pcsx2
plugins/libZeroGSoglr.so.0.96.2: undefined symbol: XF86VidModeSwitchToMode
plugins/libZeroGSoglr.so.0.96.2: undefined symbol: XF86VidModeSwitchToMode

thanks!!!!!!!!!
 
#14 ·
Hi,

it seems like the generation of the Makefile was incorrect. Can you check if the compilation of the plugin ends with :

gcc -I/opt/cg/include -L/opt/cg/lib -O2 -fomit-frame-pointer -o libZeroGSoglr.so.0.96.2 -shared -Wl,-soname,libZeroGSogl.so.0.96.2 libZeroGSogl_a-GSmain.o libZeroGSogl_a-memcpy_amd.o libZeroGSogl_a-Regs.o libZeroGSogl_a-x86.o libZeroGSogl_a-zpipe.o libZeroGSogl_a-Mem.o libZeroGSogl_a-rasterfont.o libZeroGSogl_a-targets.o libZeroGSogl_a-zerogs.o libZeroGSogl_a-glprocs.o x86-64.o Linux/libZeroGSLinux.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lGL -lGLU -ljpeg -lpthread -lstdc++ -lz -ldl -lXxf86vm -lCg -lCgGL

You should have '-lXxf86vm' flag in the line. If not, try to add "/usr/lib/libXxf86vm.so" at the end of gcc command. Or /usr/lib/64/libXxf86vm.so" if you are running a 64bit linux.

Regards,
David
 
#15 ·
ok, commenting lines 1120 and 1763 of zerogs.cpp did the trick.

too bad it crashes while booting the bios!??!


edit:
gdb's response:

(gdb) r
Starting program: /home/bigpaul/pcsx2/bin/pcsx2
[Thread debugging using libthread_db enabled]
[New Thread 47849838223920 (LWP 15678)]

ZeroGS: creating
ZeroGS: Got Doublebuffered Visual!
ZeroGS: glX-Version 1.3
ZeroGS: Depth 24
ZeroGS: you have Direct Rendering!
ZeroGS: Creating effects
ZeroGS: Creating extra effects
ZeroGS: using accurate shaders
ZeroGS: initialization successful
[New Thread 1082677584 (LWP 15683)]
[Thread 1082677584 (LWP 15683) exited]
ZeroGS: Disabling MRT depth writing

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 47849838223920 (LWP 15678)]
0x000000000c000161 in ?? ()
(gdb) bt
#0 0x000000000c000161 in ?? ()
#1 0x0000000001bc0e80 in ?? ()
#2 0x00007fffc4f571f8 in ?? ()
#3 0x000000000d0aa595 in ?? ()
#4 0x000000000d0af210 in ?? ()
#5 0x0000000000000000 in ?? ()

what kind of call stack is this ?_?
 
#17 ·
make sure you compile with --enable-debug before using gdb

in the pcsx2 code folder, type

> main clean
> ./configure --enable-devbuild --enable-debug --prefix='your root pcsx2 dir'
> make install
strange.
i did what you suggested, but got the same result.
so i deleted everything, redownloaded through svn, built with --enable-debug.
still the same, it looks like debug build isn't really a debug build (i.e. no symbols, etc..) !?!?
gdb gives me the same meaningless info.
 
#21 ·
you should see -DDEBUG and -g in all the compilation strings

if still doesn't work, once it crashed in gdb type

x/5i $pc

and tell me what you get
that's the compilation string i get:
if gcc -DPACKAGE_NAME=\"pcsx2\" -DPACKAGE_TARNAME=\"pcsx2\" -DPACKAGE_VERSION=\"0.9.3\" -DPACKAGE_STRING=\"pcsx2\ 0.9.3\" -DPACKAGE_BUGREPORT=\"zerofrog@gmail.com\" -DPACKAGE=\"pcsx2\" -DVERSION=\"0.9.3\" -D_DEBUG=1 -DPCSX2_DEVBUILD=1 -D__x86_64__=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_NLS=1 -I. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I./../ -g -g -MT support.o -MD -MP -MF ".deps/support.Tpo" -c -o support.o support.c; \
then mv -f ".deps/support.Tpo" ".deps/support.Po"; else rm -f ".deps/support.Tpo"; exit 1; fi

i have a -g and a -D_DEBUG (i'm assuming you just mispelled it as -DDEBUG?).

that's gdb output, as you requested:
(gdb) r
Starting program: /home/bigpaul/pcsx2/bin/pcsx2
[Thread debugging using libthread_db enabled]
[New Thread 47558278099504 (LWP 13289)]

ZeroGS: creating
ZeroGS: Got Doublebuffered Visual!
ZeroGS: glX-Version 1.3
ZeroGS: Depth 24
ZeroGS: you have Direct Rendering!
ZeroGS: Creating effects
ZeroGS: Creating extra effects
ZeroGS: using accurate shaders
ZeroGS: initialization successful
[New Thread 1082677584 (LWP 13293)]
[Thread 1082677584 (LWP 13293) exited]
ZeroGS: Disabling MRT depth writing

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 47558278099504 (LWP 13289)]
0x000000000c000161 in ?? ()
(gdb) x/5i $pc
0xc000161: movsldup %xmm6,%xmm4
0xc000165: movlhps %xmm4,%xmm4
0xc000168: mulps %xmm9,%xmm4
0xc00016c: mov %edx,%eax
0xc00016e: shl $0x4,%eax