Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2015-09-16

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
03:02 kaare joined #sdl
06:20 FROGGS joined #sdl
06:39 dod joined #sdl
06:43 dod joined #sdl
09:00 basiliscos joined #sdl
09:26 dod joined #sdl
10:18 mib_e6np06 joined #sdl
10:18 mib_e6np06 hello
10:19 mib_e6np06 people here?
10:29 FROGGS people are here
10:34 mib_e6np06 hey
10:34 mib_e6np06 i need help bro
10:51 mib_e6np06 hello
10:52 mib_e6np06 i installed Alien::SDL & SDL perl for linux but everytime i test in shows an error: SDLx_gfx_primitives not compiled but how to compile?
11:08 basiliscos do you have system SDL installed?
11:08 basiliscos may be you should uninstall ?
11:16 mib_e6np06 yes i have
11:17 mib_e6np06 why i should uninstall?
11:20 FROGGS mib_e6np06: when you install Alien::SDL via cpan, you get a prompt where you can choose between different things
11:20 FROGGS mib_e6np06: choose the one that also offers SDL_gfx
11:20 FROGGS mib_e6np06: also compare the versions it offers... if you are uncertain, no-paste the options you see
11:21 FROGGS mib_e6np06: after you've reinstalled Alien::SDL you need to reinstall SDL btw
11:21 mib_e6np06 ok
11:23 mib_e6np06 do i need to uninstall Alien::SDL & SDL?
11:23 FROGGS no
11:23 mib_e6np06 because i when i type cpan -f install Alien::SDL it show Alien::SDL is up to date
11:24 FROGGS mib_e6np06: you can also do: cpan<ENTER> look Alien::SDL<ENTER> perl Build.PL
11:25 FROGGS after all the build and option choosing happened, you do make, make test and make install
11:26 mib_e6np06 ok2x
11:28 mib_e6np06 hey i have a choices
11:29 mib_e6np06 [1] Already installed SDL ver=1.2.15 path=/usr/local     SDL(v1.2.15) SDL_image(v1.2.10) SDL_mixer(v1.2.11) SDL_ttf(v2.0.9) SDL_gfx(v2.0.23) SDL_Pango(v1.3)  [2] Source code build     SDL(v1.2.15) SDL_image(v1.2.11) SDL_mixer(v1.2.12) SDL_ttf(v2.0.11) SDL_gfx(v2.0.25) SDL_Pango(v1.2)  [3] Quit installation
11:29 mib_e6np06 2 right?
11:30 FROGGS aye
11:30 FROGGS that won't mess with your system libs btw
11:30 FROGGS it will install to a location where on perl makes use of it
11:30 mib_e6np06 when i type make
11:30 mib_e6np06 make: *** No targets specified and no makefile found.  Stop.
11:31 FROGGS huh
11:31 FROGGS ohh
11:31 FROGGS try: ./Build
11:31 mib_e6np06 ./Build works
11:31 FROGGS I forgot... it has been a long time that I did that :o)
11:32 FROGGS then after a while: ./Build test && sudo ./Build install
11:32 FROGGS I think...
11:32 mib_e6np06 ok2x :D
11:32 FROGGS :o)
11:32 mib_e6np06 wait i got 1 more question
11:33 mib_e6np06 is it possible to join threads & SDL?
11:33 FROGGS sort of
11:34 FROGGS you should do most (all) stuff from the main thread
11:34 FROGGS like gfx etc
11:34 mib_e6np06 so no SDL codes in thread
11:34 FROGGS no, I think that won't behave well
11:35 FROGGS would be interesting to see how well SDL/SDL2 and Perl 6 would do that...
11:36 mib_e6np06 SDL in perl 6?
11:37 FROGGS yes
11:38 FROGGS the SDL module itself, I mean the bindings to the C lib, are not that much advanced in the Perl 6 version though
11:38 FROGGS but it is enough for my BubbleBreaker mini game
11:39 FROGGS and the SDL_mixer effects (which are multithreaded + callback from C in Perl), work reliable in Perl 6
11:39 mib_e6np06 awesome
11:39 FROGGS whereas it was a pain in the a** to do that for Perl 5
11:39 FROGGS and it is still wonky on some platforms
11:41 mib_e6np06 except BubbleBreaker can perl sdl do alot of more complex games? just wondering
11:43 mib_e6np06 i just installed SDL
11:43 mib_e6np06 and then when i try to run scripts
11:43 mib_e6np06 SDL_gfx_primitives support has not been compiled at /usr/local/lib/perl/5.14.2/SDLx/Surface.pm line 245. SDLx::Surface::draw_line(SDLx::App=SCALAR(0x974b6b0), ARRAY(0x974b728), ARRAY(0x974b674), ARRAY(0x974b78c)) called at dev.pl line 10
11:46 FROGGS huh
11:46 FROGGS mib_e6np06: you can create more complex games for sure
11:46 mib_e6np06 ok
11:46 FROGGS mib_e6np06: even with proper physics through Box2D
11:47 FROGGS and that Surface.pm is the one you've installed?
11:47 mib_e6np06 yes
11:47 FROGGS very weird
11:48 FROGGS mib_e6np06: you reinstalled SDL, right?
11:48 mib_e6np06 yes
11:48 mib_e6np06 i just follow all the steps you gave me
11:48 mib_e6np06 look Alien::SDL
11:49 FROGGS that's just Alien::SDL, not SDL
11:50 mib_e6np06 sorry2x my mistake i forgot ./Build test && /Build install
11:50 mib_e6np06 but the error still there
11:51 mib_e6np06 do i need reboot?
11:52 FROGGS no
11:52 FROGGS did you also do the same steps with SDL?
11:53 mib_e6np06 not yet i only did that in Alien::SDL
11:53 FROGGS please do it for SDL too :o)
11:54 FROGGS Alien::SDL just provides the C libraries... either by compiling them or by locating system libs
11:54 mib_e6np06 ok
11:54 FROGGS SDL is the Perl module that exposes their functionality to your Perl script
11:55 mib_e6np06 cpan look SDL right?
11:57 FROGGS yes
11:57 FROGGS err, cpan<ENTER look SDL
11:57 FROGGS grrr
11:57 FROGGS cpan<ENTER> look SDL
11:59 mib_e6np06 i've been coding in perl for 2 years now time to expand my knowledge in perl games
12:00 FROGGS yeah, games are a different kind of beast
12:01 mib_e6np06 Yeah, i did install SDL but SDL_gfx_primitives support has not been compiled at /usr/local/lib/perl/5.14.2/SDLx/Surface.pm line 245. SDLx::Surface::draw_line(SDLx::App=SCALAR(0x8af46b0), ARRAY(0x8af4728), ARRAY(0x8af4674), ARRAY(0x8af478c)) called at dev.pl line 10
12:02 mib_e6np06 what's wrong?
12:02 FROGGS what's the output of: ls -l /usr/local/lib/perl/5.14.2/SDLx/Surface.pm
12:03 mib_e6np06 -r--r--r-- 1 root root 10902 Mar 13  2015 /usr/local/lib/perl/5.14.2/SDLx/Surface.pm
12:03 FROGGS it's not march anymore, is it?
12:03 mib_e6np06 yes i guess so
12:03 FROGGS you did "sudo ./Build install" ?
12:04 mib_e6np06 i logged in as root
12:04 FROGGS ahh
12:04 FROGGS what paths does "./Build install" show?
12:05 FROGGS perhaps it is installing into another location?
12:06 mib_e6np06 "/usr/local/lib/perl/5.14.2/"
12:07 mib_e6np06 i made a little perl scripts that can detect sdl_gfx in installation
12:07 mib_e6np06 i spotted this
12:07 mib_e6np06 t/gfx.t ......................... skipped: SDL_gfx support not compiled t/gfx_fpsmanager.t .............. skipped: SDL_gfx_framerate support not compiled t/gfx_framerate.t ............... skipped: SDL_gfx_framerate support not compiled t/gfx_imagefilter.t ............. skipped: SDL_gfx_imagefilter support not compiled t/gfx_primitives.t .............. skipped
12:07 FROGGS hmmm
12:08 FROGGS please do again 'look Alien::SDL' in the cpan prompt, run 'perl Build.PL', and no-paste me the entire output
12:08 FROGGS like in here: http://nopaste.linux-dev.org/
12:09 mib_e6np06 ok
12:15 mib_e6np06 here it is http://nopaste.linux-dev.org/?761474
12:16 FROGGS okay, that looks good
12:16 FROGGS not please run ./Build, and capture that output as well and no-paste it
12:17 mib_e6np06 huh?
12:17 FROGGS hmm?
12:17 FROGGS err
12:17 FROGGS type 2
12:17 FROGGS :o)
12:17 mib_e6np06 i cant understand
12:17 mib_e6np06 ahh ok2x
12:18 mib_e6np06 ahahaha
12:22 mib_e6np06 wait...
12:28 FROGGS I'm back online in about an an hour... feel free to continue writing here, as it is logged under: http://irclog.perlgeek.de/sdl/today
12:30 mib_e6np06 http://nopaste.linux-dev.org/?761475
12:31 mib_e6np06 ok
13:31 FROGGS joined #sdl
13:32 FROGGS mib_e6np06: hi
13:32 FROGGS the paste shows all you got?
13:35 mib_e6np06 no
13:36 mib_e6np06 but ./Build is fine?
13:37 FROGGS so far, yes
13:37 FROGGS but I wonder what follows "Running make install SDL..."
14:10 FROGGS_ joined #sdl
16:13 dod joined #sdl
16:15 dod joined #sdl

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary