Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2012, 12:43 PM   #1
rfog
Evangelist
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 238214
Join Date: Aug 2007
Location: Elda - Alicante (Spain)
Device: PB903, K2, K3, K2i, KDX, iPad, Q1U, X51v, TM2
Problem compiling booxsdk (solved)

Hi all!

I'm trying to compile Boox SDK (as explained here: http://wiki.mobileread.com/wiki/Boox...re_development), but after some minor problems I've found one I cannot solve.

It seems there is no link option to include zlib.a for dictionary_test. As I'm not a linux and gcc guy, I do not know how to continue because I'm not able to find the right makefile to add the option.

Error is:

Built target wifi_gui_test
[ 91%] Built target tts
[ 91%] Built target tts_unittest
[ 96%] Built target dictionary
Linking CXX executable ../../../unittests/dictionary_test
CMakeFiles/dictionary_test.dir/qstardict_plugin/stardict_base.cpp.o: In function `stardict::WordlistIndex::load(QString const&, unsigned long, unsigned long)':
stardict_base.cpp.text+0x2350): undefined reference to `gzopen'
stardict_base.cpp.text+0x23e4): undefined reference to `gzread'
stardict_base.cpp.text+0x23f4): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make[2]: *** [unittests/dictionary_test] Error 1
make[1]: *** [code/src/dictionary/CMakeFiles/dictionary_test.dir/all] Error 2
make: *** [all] Error 2
rake aborted!
Command failed with status (2): [cd build/arm && make -j5...]
/home/rfog/booxsdk/Rakefile.imx508:119
(See full trace by running task with --trace)
rfog@debian:~/booxsdk$

Last edited by rfog; 07-07-2012 at 09:43 AM.
rfog is offline   Reply With Quote
Old 07-07-2012, 05:36 AM   #2
rfog
Evangelist
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 238214
Join Date: Aug 2007
Location: Elda - Alicante (Spain)
Device: PB903, K2, K3, K2i, KDX, iPad, Q1U, X51v, TM2
A lot of thanks to boox community.

After a lot of effort I found the problem.

Go to booxsdk/code/src/dictionary and edit CMakeLists.txt. Add z into line

TARGET_LINK_LIBRARIES(dictionary onyx_ui ${ADD_LIB})

That means line will be

TARGET_LINK_LIBRARIES(dictionary onyx_ui z ${ADD_LIB})

Then system compiles ok.

BTW this is not the problem when compiling under x64. I have a x86 Debian 6 virtual machine.
rfog is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Calibre on NAS Yancoucou Devices 3 01-14-2012 05:11 PM
X-Compiling with Kindle mpetersen3 Kindle Developer's Corner 14 01-06-2012 02:53 PM
Problems compiling unkilbeeg Sigil 1 09-13-2009 01:49 PM
iLiad compiling Minimo jtq iRex Developer's Corner 11 09-03-2007 05:33 AM
PRS-500 Compiling for the Reader alex_d Sony Reader Dev Corner 29 07-15-2007 12:29 PM


All times are GMT -4. The time now is 12:56 PM.


MobileRead.com is a privately owned, operated and funded community.