--- Log opened Fri Dec 05 00:00:57 2014 | ||
poke53281 | Perl gets a special place in the hall of shame for worst cross compiling capabilities. But finally it works. | 20:40 |
---|---|---|
poke53281 | But hey, finally you can run c_rehash to rehash the ssl certificates. Definitely another killer feature ;) | 20:42 |
stekern | so how small how you got it now? | 20:42 |
poke53281 | compressed .tar.bz2 812042 bytes | 20:43 |
poke53281 | 4.1MB uncompressed | 20:43 |
poke53281 | Of course after deleting around 80MB libraries and man files | 20:43 |
poke53281 | For vim I deleted the whole 40MB data. I don't have a clue about the most used data files for vim. Probably some syntax highlighting. | 20:46 |
poke53281 | the whole filesystem needs 73MB compressed (171MB uncompressed) and contains the following packages: http://pastie.org/9763288 | 20:51 |
poke53281 | But for example libX11.tar.bz2 contains around 20 libraries. So the counting is a little bit difficult. | 20:52 |
stekern | poke53281: I actually used jor1k for something "useful" today ;) | 21:05 |
poke53281 | nmap portscan of you worst enemy server? | 21:06 |
stekern | I needed to test wether passing "UCS-2" as the tocode to iconv always produced "correct" result regardless of endian | 21:07 |
poke53281 | Hmm, iconv is not installed, or? | 21:08 |
stekern | well, I crosscompiled and uploaded | 21:09 |
poke53281 | Ok, nice | 21:09 |
stekern | http://pastie.org/9763314 | 21:09 |
poke53281 | Finally someone uses those icons under the terminal. | 21:10 |
stekern | it's a killer feature! ;) | 21:10 |
poke53281 | Ok, this works. | 21:10 |
poke53281 | Since yesterday the clipboard works too. So just paste into the small field when you are in a text editor. | 21:11 |
stekern | the answer to my question, it "UCS-2" is endian agnostic... but UCS-2 is really supposed to be always big endian | 21:13 |
stekern | another answer I got from that question is that iconv doesn't accept "UCS-2-INTERNAL" | 21:14 |
poke53281 | The same is not true for UTF-16 I guess. | 21:14 |
stekern | now to the fun part, SDL defines wrappers for iconv when iconv is present and own implementations when it doesn't | 21:15 |
stekern | ...and their implementation behaves differently | 21:15 |
poke53281 | Maybe that explains the weird behavior in the dosbox I found. The input simply doesn't. | 21:16 |
stekern | does that use SDL? | 21:16 |
poke53281 | Let me check configure to see, what SDL does. | 21:17 |
poke53281 | Yes, dosbox uses libSDL. | 21:17 |
poke53281 | checking for libiconv_open in -liconv... no | 21:18 |
poke53281 | checking for iconv... yes | 21:18 |
stekern | the grand jewel is this: http://hg.libsdl.org/SDL/file/f6355bfca853/include/SDL_stdinc.h#l480 | 21:18 |
poke53281 | So I guess, that my SDL uses not the internal iconv implementation. | 21:18 |
stekern | and iconv doesn't support "UCS-2-INTERNAL" | 21:19 |
poke53281 | I see | 21:19 |
stekern | but I think that is a post SDL1.2 change, and I assume dosbox uses 1.2? | 21:20 |
poke53281 | Yes 1.2.15 at least | 21:21 |
poke53281 | But I didn't look closer at the dosbox-keyboard issue because it was so damn slow. | 21:21 |
stekern | this is that define in SDL1.2: http://hg.libsdl.org/SDL/file/b37013ec80de/include/SDL_stdinc.h#l611 | 21:22 |
poke53281 | Hmmm, no INTERNAL | 21:23 |
stekern | yeah, so that should work with iconv (and big-endian machines for their own implementation) | 21:24 |
poke53281 | For which software do you need this? Or why is this a problem? | 21:27 |
stekern | I'm working on SDL2 support for scummvm | 21:28 |
poke53281 | Ohhh, I thought, this is already done. | 21:28 |
stekern | no, the biggest blocker has been in keyboard handling. SDL2 removed a .unicode (ucs2) field from the keydown events and introduced a seperate TEXT_INPUT event for unicode input | 21:30 |
poke53281 | If you want I can compile and test it. libSDL2 compiles fine | 21:30 |
stekern | I've got a solution that catches those and merges them into scummvm's events, but I'm working out some quirks still | 21:31 |
poke53281 | I see | 21:31 |
stekern | and one is that the TEXT_INPUT gives the result as an utf-8 string, hence my adventures with iconv. | 21:32 |
stekern | if you want to test it, it's in this branch: https://github.com/skristiansson/scummvm/tree/pr/sdl2 | 21:33 |
poke53281 | Just an offer. The current scummvm runs good. | 21:35 |
stekern | it'd be interesting to see if it works. I've planned to try myself sooner or later. | 21:37 |
stekern | well, it works on my workstation and my phone, but if it works on or1k I mean ;) | 21:37 |
stekern | especially since SDL2 have moved to a more GPU orientated approach | 21:38 |
poke53281 | let's see | 21:39 |
poke53281 | compiling | 21:46 |
poke53281 | In function '__cstart' undefined reference to main | 21:48 |
poke53281 | the final linking gives me around 30 errors | 21:48 |
stekern | sounds good ;) | 21:49 |
stekern | how did you configure it btw? | 21:49 |
stekern | you have to --enable-sdl2 to enforce sdl2 | 21:49 |
poke53281 | cd src/$@; CFLAGS="-O2" LDFLAGS="" ./configure $(CONFIG_HOST) \ | 21:50 |
poke53281 | --disable-debug \ | 21:50 |
poke53281 | --disable-all-engines \ | 21:50 |
poke53281 | --enable-engine-static=scumm \ | 21:50 |
poke53281 | --disable-opengl \ | 21:50 |
poke53281 | --with-sdl-prefix=$(SYSROOT)/usr \ | 21:50 |
poke53281 | --disable-hq-scalers \ | 21:50 |
poke53281 | --disable-translation \ | 21:50 |
poke53281 | --disable-bink \ | 21:50 |
poke53281 | --enable-sdl2 | 21:50 |
poke53281 | Yes, I did | 21:50 |
stekern | ok | 21:50 |
stekern | does it compile if you omit that flag? | 21:50 |
poke53281 | in 10 seconds I know | 21:51 |
poke53281 | another 10 | 21:51 |
poke53281 | Nope, still the same problem. | 21:51 |
stekern | then it's at least not my fault ;) | 21:53 |
poke53281 | How do I activate a verbose compilation? make V=1 does not work | 21:54 |
stekern | not sure | 21:56 |
poke53281 | ./configure --enable-verbose-build | 22:02 |
poke53281 | No chance. But it seems, that others have the same problem with 1.7.0 when cross compiling. | 22:13 |
stekern | ok, what seems to be the problem? | 22:21 |
poke53281 | In one thread no answer | 22:24 |
poke53281 | http://forums.scummvm.org/viewtopic.php?p=80783&sid=1f7b4fff3601f393e8e9d51bb5940316 | 22:25 |
poke53281 | and here is the other one | 22:25 |
poke53281 | export CXXFLAGS="-Wl,--no-keep-memory" | 22:25 |
poke53281 | doesn't seem to work for me | 22:25 |
poke53281 | Bu I figured out, that my current version for jor1k was never optimized. :( | 22:26 |
stekern | do you have a recipe for building SDL2? | 22:55 |
stekern | or is it basically the same as sdl1? | 22:55 |
stekern | ah, you even have packages ;) | 22:56 |
--- Log closed Sat Dec 06 00:00:59 2014 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!