Good day.
I wanted to cross-compile your app for kindle but had no luck.
Could you help me?
here's what I tried so far:
Quote:
varnie@heimdal:~/thrash/hackedUpReader/bhaak-HackedUpReader-111c958$ cmake -DCMAKE_PREFIX_PATH=/home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/ -DCMAKE_INSTALL_PREFIX=/mnt/us/cr3xcb -DCMAKE_BUILD_TYPE=Release -DGUI=CRGUI_XCB -DCMAKE_TOOLCHAIN_FILE=/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/tools/toolchain-arm-linux-gnueabi.cmake
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Using GUI frontend CRGUI_XCB
using USE_EXTERNAL_EDICT_DICTIONARY=0
-D DOC_DATA_COMPRESSION_LEVEL=0|1|2|3|4|5 parameter is not defined: will use default value
using TEXT_COMPRESSION_LEVEL=1
-D DOC_BUFFER_SIZE=N parameter is not defined: will use default value
using DOC_BUFFER_SIZE=0x400000
using MAX_IMAGE_SCALE_MUL=0
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeLists.txt:113 (if)
closes on the line
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeLists.txt:127 (endif)
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
NO_UNRAR parameter specified: Will not support UNRAR
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
System LIBPNG not found, will build local one
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
System LIBJPEG not found, will build local one
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
System FREETYPE not found, will build local one
Will build patched LIBCHM library
Will build patched ANTIWORD library
Will make tinydict library - .dict format support
Will make CR3GUI for XCB
Freetype include dir: /home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/thirdparty/freetype/include
Device type is not specified! It's necessary to know device type in order to choose proper keyboard layout, etc...
Using all as default
Add cmake parameter -D DEVICE_NAME={v3|v5|n516|v3a|kindle_touch} to use another device settings
CMake Warning (dev) at cr3gui/CMakeLists.txt:20 (INCLUDE):
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
The included script
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/tools/KWWidgetsInternationalizationMacros.cmake
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for
compatibility, so the effects are applied to the including context.
This warning is for project developers. Use -Wno-dev to suppress it.
Languages: ru;uk;de;fr;bg;es;ca;pl;lt;zh_CN;zh_TW
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES
FONTCONFIG_INCLUDE_DIR)
Call Stack (most recent call first):
cmake/FindFontconfig.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cr3gui/CMakeLists.txt:74 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
|
According to the compile instructions I made the following changes in tools/toolchain-arm-linux-gnueabi.cmake:
Quote:
# CMake toolchain file for building ARM software on OI environment
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-g++)
SET(CMAKE_STRIP /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-strip)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
why Cmake couldn't find the CXX compiler?
One more question:
what is that PKG_CONFIG_LIBDIR directory?
There should be 'lib/pkgconfig' within it but I don't see any.
updated
ps: I installed missed build-essential package under Ubuntu and now I have another Ips: I figured out that one more package was missed. It was "libfontconfig1-dev". so I installed it as well.
here's the latest errors:
Quote:
Linking CXX executable cr3
[ 86%] Built target cr3
[ 86%] Generating po/cr3.pot.upd
[ 86%] Generating po/cr3_ru.po.upd
[ 86%] Generating ../i18n/ru/LC_MESSAGES/cr3.mo
[ 86%] Generating po/cr3_uk.po.upd
[ 86%] Generating ../i18n/uk/LC_MESSAGES/cr3.mo
[ 86%] Generating po/cr3_de.po.upd
[ 86%] Generating ../i18n/de/LC_MESSAGES/cr3.mo
[ 86%] Generating po/cr3_fr.po.upd
Updating /home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po
[ 86%] Generating ../i18n/fr/LC_MESSAGES/cr3.mo
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:1:2: syntax error
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:1: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:2: keyword "Message" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po: warning: Charset "CHARSET" is not a portable encoding name.
Message conversion to user's charset might not work.
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:22: missing `msgstr' section
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:23:2: syntax error
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:23: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:24: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:25: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:26: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:30: missing `msgstr' section
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:31:2: syntax error
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:31: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:32: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:33: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:34: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:38: missing `msgstr' section
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:39:2: syntax error
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:39: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:40: keyword "home" unknown
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/cr3gui/po/cr3_fr.po:41: keyword "home" unknown
/usr/bin/msgfmt: too many errors, aborting
make[2]: *** [i18n/fr/LC_MESSAGES/cr3.mo] Error 1
make[1]: *** [cr3gui/CMakeFiles/cr3_mo.dir/all] Error 2
make: *** [all] Error 2
|
After I stripped down completely that cr3_fr.po stuff I successfully compiled cr3.
BUT the problem is that I cannot compile it with arm-kindle-linux-gnueabi compilers (I downloaded the toolchain from
https://github.com/samsheff/Amazon-K...ross-Toolchain by the way
).
Here is the output:
Quote:
varnie@heimdal:~/thrash/hackedUpReader/bhaak-HackedUpReader-111c958$ cmake -DCMAKE_PREFIX_PATH=/home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/ -DCMAKE_INSTALL_PREFIX=build -DCMAKE_BUILD_TYPE=Release -DGUI=CRGUI_XCB -DCMAKE_TOOLCHAIN_FILE=/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/tools/toolchain-arm-linux-gnueabi.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc
-- Check for working C compiler: /home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler
"/home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
/home/varnie/thrash/samsheff-Amazon-Kindle-Cross-Toolchain-e13b730/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc
-o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeFiles/CMakeTmp/testCCompiler.c
arm-kindle-linux-gnueabi-gcc: fatal error: -fuse-linker-plugin, but
liblto_plugin.so not found
compilation terminated.
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory
`/home/varnie/thrash/hackedUpReader/bhaak-HackedUpReader-111c958/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (PROJECT)
-- Configuring incomplete, errors occurred!
|
where from did you get your working Amazon-Kindle-Cross-Toolchain? Thanks a lot.