bfabiszewski / kterm

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

How to build it on Fedora? #17

Closed zaoqi-unsafe closed 5 years ago

zaoqi-unsafe commented 5 years ago

I've installed dbus-devel gtk2-devel arm-linux-gnu-gcc vte-devel

[zaoqi@localhost kterm]$ ./configure --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
......
checking whether compiler supports ARM target... no
configure: WARNING: building for Kindle without ARM toolchain
checking for VTE... yes
checking for library containing tgetent... -lcurses
checking whether libvte may be linked statically... no
configure: WARNING: building for Kindle with non-static libvte
checking for DBUS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
zaoqi-unsafe commented 5 years ago
$ CC=arm-linux-gnu-gcc ./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
......
configure: error: in `/home/zaoqi/Kindle/pkgs-src/kterm':
configure: error: C compiler cannot create executables
See `config.log' for more details

config.log

/usr/bin/arm-linux-gnu-ld: cannot find crt1.o: No such file or directory
/usr/bin/arm-linux-gnu-ld: cannot find crti.o: No such file or directory
zaoqi-unsafe commented 5 years ago
$ ./configure --build=x86_64-redhat-linux --host=arm-none-eabi --target=arm-none-eabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
...
configure: error: in `/home/zaoqi/Kindle/pkgs-src/kterm':
configure: error: C compiler cannot create executables
See `config.log' for more details

config.log

/usr/lib/gcc/arm-none-eabi/7.4.0/../../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or directory
/usr/lib/gcc/arm-none-eabi/7.4.0/../../../../arm-none-eabi/bin/ld: cannot find -lc
zaoqi-unsafe commented 5 years ago
$ CFLAGS='-target armv7l-linux-gnueabi' CC=clang ./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm

config.log

/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
bfabiszewski commented 5 years ago

Cross-compilation for Kindle is a broad topic. I suggest you look for help on Kindle Developer's Corner.