View Single Post
Old 03-24-2012, 12:21 PM   #45
kodomo
M92 info archivist
kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.
 
Posts: 235
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92
Quote:
Originally Posted by kodomo View Post
fbreader compiles for x86 in 32bit environments, if a not needed cryptopenssl lib inclusion is removed from its CMakeLists.txt (patch attached) - but arm toolchain & sdk are lacking the needed libcrypto .

cr3 yields linker errors (several 'multiple definition' errors, such as this one)

Code:
./../../../libs/libonyx_ui.a(number_dialog.cpp.o): In function `ui::NumberDialog::keyPressEvent(QKeyEvent*)':
number_dialog.cpp:(.text+0x0): multiple definition of `ui::NumberDialog::keyPressEvent(QKeyEvent*)'
Hence what we need from Onyx seems
  • The feed_action.h header file
  • The crypto lib in the SDK (prebuilt and/or source)
  • The kernel sources and patches
  • A solution to the cr3 linker issue (anyone?)
Compiling openssl and placing the resulting 'lib' and 'include' directory content into respective /opt/onyx/arm/ subdirectories allowed compilation of fbreader.

Attached, you'll find a patchfile modifying the Makefile to make it easy to use the toolchain.

To use it, download and unpack the openssl archive, patch the Makefile, set your environment variables (as described in the Development wiki), and call
Code:
export INSTALLTOP=`pwd`/build/arm ; export TC_PREFIX=arm-linux- ; make install
The binaries will then be put into ./build/arm .
Copy the contents of the include and lib directories into your onyx sdk environment (presumably under /opt/onyx/arm - mind that there's already an include/openssl directory).

fbreader should compile thereafter (mind to remove the other library dependency).

I'll update the Devel wiki to that respect.

Cheers!

Update: initial post was missing a '-' after arm-linux
Attached Files
File Type: txt openssl-0.9.8-Makefile.patch.txt (1.7 KB, 204 views)

Last edited by kodomo; 03-24-2012 at 12:48 PM.
kodomo is offline   Reply With Quote