Player (71)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Worked fine after getting all those libs needed. Damn dependencies. :D Thanks
Joined: 4/4/2007
Posts: 3
Hi-ho, I'm also having trouble compiling Grrl. I already have SDL and libreadline installed... here's what I get when I run make (gcc 4.0.3) (...) [EDIT] My bad, next post contains the right log. These are just the last few lines before make exits, I could include more if needed. Any tips?
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
You're trying to compile Fake64, not Gens.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Joined: 4/4/2007
Posts: 3
Ha, hm. Wrong error log ... (the kind of stupid mistake I'm good at)
gcc ccnet.o cd_file.o cd_sys.o cdda_mp3.o cpu_68k.o cpu_sh2.o cpu_z80.o lc89510.o m68kd.o pcm.o port.o psg.o sh2.o sh2d.o timer.o unzip.o wave.o ym2612.o z80dis.o cd_aspi.o debug.o g_ddraw.o g_dinput_dummy.o g_dsound_dummy.o g_main_dummy.o gens.o movie.o ggenie.o rom.o save.o scrshot.o blit.o gfx_cd.o io.o mem_m68k.o mem_s68k.o mem_sh2.o mem_z80.o misc.o pwm.o sh2a.o vdp_32x.o vdp_io.o vdp_rend.o z80.o ram_search.o mp3_dec/dct64_i386.o mp3_dec/layer3.o mp3_dec/common.o mp3_dec/decode_i386.o mp3_dec/interface.o mp3_dec/tabinit.o ../Starscream/Main68k/main68k.o ../Starscream/Sub68k/sub68k.o nesvideos-piece.o -lm `sdl-config --libs` -lz -lstdc++ -lreadline -s -o gens
g_main_dummy.o: In function `Set_Render':
/sources/gens_linux/gens/g_main_dummy.cpp:530: undefined reference to `XConfigureWindow'
g_main_dummy.o: In function `update_ui_events()':
/sources/gens_linux/gens/g_main_dummy.cpp:782: undefined reference to `XLowerWindow'
/sources/gens_linux/gens/g_main_dummy.cpp:782: undefined reference to `XSetInputFocus'
/sources/gens_linux/gens/g_main_dummy.cpp:786: undefined reference to `XRaiseWindow'
[trimmed, there are about a dozen more similar lines]
/sources/gens_linux/gens/g_main_dummy.cpp:1233: undefined reference to `XSetInputFocus'
g_main_dummy.o: In function `main':
/sources/gens_linux/gens/g_main_dummy.cpp:1512: undefined reference to `XConfigureWindow'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
I've fixed the tarball linked on the wiki. The change is to add -lX11 (dash ell ecks eleven) to the LDFLAGS of the Makefile if you don't want to redownload it. The line should look like this when you're done:
LDFLAGS=-lm `sdl-config --libs` -lz -lstdc++ -lreadline -lX11 -s
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Joined: 4/4/2007
Posts: 3
Hmm, I re-downloaded the tarball but it was exactly the same... So, I got the latest SVN (should have done that first, I guess), and it worked perfectly after a couple of chmod +x 's. Thanks a lot !
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
I just tested the tarball from the wiki and it worked fine. The md5sum should be e0b04e768628974caf226c44d5a7cc83. Maybe you had an overzealous proxy? Either way, I'm glad SVN worked.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (71)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
I have some problems with playing games in grrl. It loads the game fine, and I can playback movies without any problems at all. However I can't just simply play a game. I put the gens.cfg together with the binary, because it didn't find the cfg before that. Now that I launch gens I get some, which I don't think have anything to do with my problem. The game still loads fine.
gens Risk\ \(U\)\ \[\!\].gen
unknown key: 200
unknown key: 208
unknown key: 203
unknown key: 205
unknown key: 28
unknown key: 30
unknown key: 31
unknown key: 32
unknown key: 54
unknown key: 44
unknown key: 45
unknown key: 46
unknown key: 21
unknown key: 35
unknown key: 34
unknown key: 36
unknown key: 22
unknown key: 37
unknown key: 38
unknown key: 50
unknown key: 20
unknown key: 23
unknown key: 24
unknown key: 25
unknown key: unknown
unknown key: unknown
Some help please. :)
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
Hi IdeaMagnate, I had grrl once a little while ago but I deleted it. Trying to get it again, I get an error with SVN.
% svn co svn://anonymous@mksig.org/repos/gens_grrl/trunk/gens_linux
svn: Can't connect to host 'mksig.org': Connection refused
Also, I sent you a PM (under the username gxx, which I don't want to use here anymore) about a compiling issue, in case you missed it.
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
Highness, it looks like you're using an old-syle gens.cfg. The new version uses actual key names and should be much easier to change. If you're not sure what a key will be called, run make showkey && ./showkey and mouse over the blank window. Pressing any key will display its name on stdout. Add [csa]- in from of a key to have ctrl, shift and/or alt plus that key trigger the action. edit: This is also documented in grrl_info.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
plusminus, your fix is in the v1 tarball now. The svn repository is also up. fungrec, if you haven't resolved your problem please give me some more information. I suspect that you were running into some sort of caching issue. If the v1 tarball doesn't work, copy/paste the last few lines here like you did earlier.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
Awesome, thanks. I did manage to get the tarball working after all, but I didn't want to flood you with messages... does the svn constantly get released as "v1" then?
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
No; current svn is a ways ahead of v1, but the changes (IIRC, it's been a while) are just mostly robot-related. I just extracted/modified/recompressed the v1 tarball directly.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
I see. Worth getting the SVN version anyhow, then. Thanks. Sometime ago, the CVS tree of Linux Gens had OpenGL support added to it. Would this be a worthwhile addition to grrl? If you're not up to doing it I might take a look, I have no idea if it's within my abilities to merge the proper changes but the SDL renderer is definately slower for me. And probably most other people that have a recent ATI/Nvidia card.
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
Thank you for pointing that out. I'll look into it. It could definitely be a good base for a more user-friendly Linux Grrl. If nothing else, the source code much better organized.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
There are several people still hacking away at Linux Gens, all more or less separately :/ I tried emailing some of them through Sourceforge, but never got any replies. A fellow named wah_wah_1969 (who was actually the one to implement OpenGL) says he's working on a custom GUI that's done without any of that GTK mess. It might be some time before he has any results... http://forums.gentoo.org/viewtopic-t-204287-postdays-0-postorder-asc-start-75.html EDIT: I should add that personally, after using grrl for about 15 minutes I much prefer it over any other Linux Gens release. Being able to customize system keys and avoid the GUI entirely is a big plus, even just for regular playing. I think GTK is pretty ugly anyhow, both in terms of appearance and internals. So, thanks! :D 2nd EDIT: A feature I'd really like to see is the ability to bind a control to several keys in the config, i.e.
P1.Up=[8]
P1.Up=[5]
This would make it easier to add up+down and left+right input, among other things. I don't know how feasible that is, it's certainly not high-priority, but it would come in handy.
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
That might well be worthwhile. I assume that you'd also want to do crazy things like
P1.Up=[5]
P1.Up=[8]
P1.Down=[8]
? I can see this having some uses, especially for keyboards that don't allow too many keys pressed simultaneously within a given region. I've been wanting to redo the config file code with something less homebrewed anyway. I'm not sure what to do about the number of divergent Gens hacks. It might be beneficial to get together or submit a compatible patch. Either way my primary concern is keeping Grrl going.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
IdeaMagnate wrote:
I assume that you'd also want to do crazy things like
Yeah, I guess I thought that part was already possible, sorry. About divergent gens hacks, hopefully they'll all congregate on the gens Sourceforge page, eventually. But who knows. Just thought I'd mention it since it seems most people think that Gens Linux hasn't been worked on since the 2.12 releases (myself included until recently).
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
Something that's always bothered me about Gens is that it's way too loud, so I poked around in the grrl svn source a bit tonight and made a small patch that adds software volume adjusting. http://www.loxen.org/rand0m/gensgrrl_volumemixing-plusminus.patch.gz Default keys are numpad / and * for lowering/raising volume, supports increments of 5% from 0 to 150%. It's a simple enough patch that it shouldn't cause problems with anything and it seems to work for me, but I don't really know what I'm doing, so maybe you should look it over.. EDIT: I hope all my pestering isn't too unwelcome :)
Player (81)
Joined: 3/11/2005
Posts: 352
Location: Oregon
Your contributions are most welcome. The volume patch is in svn now. I've been meaning to fix all the spellings of 'length', but adding a couple won't make the few hundred misspellings harder to fix.
ideamagnate| .seen aqfaq <nothing happens> DK64_MASTER| .seen nesvideoagent * DK64_MASTER slaps forehead
Player (64)
Joined: 11/2/2007
Posts: 100
Location: Toronto, Canada
Yeah, I went for consistency over correctness. :) It's fun looking through the source just to see all the franglais in there. I wonder why Stef Dallongeville didn't just code in French? Anyhow if you're considering merging in any patches from the regular Linux Gens it might be better just to leave the misspellings in for now? I don't think it's corrected in any other branches.