Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build on ubuntu #2

Closed
max-mapper opened this issue Feb 27, 2013 · 13 comments
Closed

unable to build on ubuntu #2

max-mapper opened this issue Feb 27, 2013 · 13 comments

Comments

@max-mapper
Copy link

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
Copy link
Owner

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
Copy link

twobob commented Feb 27, 2013

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
Copy link
Owner

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
Copy link

twobob commented Feb 27, 2013

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

@bfabiszewski
Copy link
Owner

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
Copy link
Author

@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
Copy link
Owner

bfabiszewski commented Feb 27, 2013

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
Copy link
Author

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

@twobob
Copy link

twobob commented Feb 28, 2013

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
Copy link

twobob commented Mar 24, 2013

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
Copy link
Owner

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

@nkwsy
Copy link

nkwsy commented Sep 6, 2016

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

@bfabiszewski
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants