bfabiszewski / kterm

gtk+ terminal emulator with embedded virtual keyboard for Kindle
GNU General Public License v3.0
218 stars 21 forks source link

unable to build on ubuntu #2

Closed max-mapper closed 11 years ago

max-mapper commented 11 years ago

hello,

I installed libvte-dev on ubuntu and then did make, which told me it couldn't find lib/libvte.a, so I edited the Makefile and used LIBVTE=-lvte

doing make the second time threw the error /usr/bin/ld: cannot open output file bin/kterm: No such file or directory, so I did mkdir bin and ran make again:

gcc kterm.c parse_config.c -lvte -O2 -Wall `pkg-config --cflags --libs gtk+-2.0 glib-2.0` -ltermcap -o bin/kterm
kterm.c: In function ‘launch_keyboard’:
kterm.c:98: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
kterm.c:99: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
kterm.c:106: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result

I tried putting the resulting binary kterm onto my kindle but it never launches. The binary I downloaded from your website was ~600kb whereas the one I built was ~35kb. Am I missing a step?

bfabiszewski commented 11 years ago

There is no libvte on kindle, so I build kterm with static libvte.a. This is why my binary is so big – it includes vte library. This is probably why your binary doesn't work. You would have to copy libvte to kindle. Another question is whether you use proper cross-compiler. This also may cause troubles. If you just need this change, I can compile it for you.

twobob commented 11 years ago

I would VERY much like an EABI 4 verison of that static libvte.a. It's not in buildroot sadly :( That would enable development for all devices.

Deja vu? Any tips on compilation and exact libvte revision to compile GREATLY appreciated.

bfabiszewski commented 11 years ago

Here is libvte.a from my build of vte-0.24.3 for cortex-a8. You can also compile kterm with newer versions of vte.

twobob commented 11 years ago

vte-0.24.3 right... thanks for the version num. Every little clue helps to get this backported.

bfabiszewski commented 11 years ago

I believe I fixed warning: ignoring return value of in last commit. I can't test it because my version of gcc (4.7.1) doesn't show them.

max-mapper commented 11 years ago

@bfabiszewski yes I am just trying to recompile with that one small change you pointed out yesterday, if you could make me a build it would be great. I didn't realize I should have been cross compiling here (I've never been too good at compiling things). Thanks

bfabiszewski commented 11 years ago

Here it is. Hope it will work for you. UPDATE: This is no longer needed. Kterm supports landscape mode natively since version 2.0. Please download latest build.

max-mapper commented 11 years ago

just tested it - it works great for my use case (a kindleberry pi)

twobob commented 11 years ago

Im gonna try tht libvte.a on a lower device... might work..

or there might be blood on the floor... cant hurt to try

twobob commented 11 years ago

finally got my TC to accept all the libs from the kindle as "native" libs... perhaps I can FINALLY get this built for the DX, 3, 4... here's hoping.

bfabiszewski commented 11 years ago

Great! I gave up with Kindle 3 build, as I don't have the device and it requires totally different TC

nkwsy commented 8 years ago

Is there a way to make this build work with the Pw3?

bfabiszewski commented 8 years ago

I don't have PW3 but some users reported that it works on this device. You may try to get help at Kindle Developer's Corner.