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

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2011, 06:39 AM   #1
read365
Enthusiast
read365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to beholdread365 is a marvel to behold
 
Posts: 30
Karma: 11938
Join Date: May 2011
Location: Daegu, Korea(South)
Device: pocketbook pro 902, Jetbook Color 1
PBSDK-linux-libwine compile -lpthread error

according to
http://sourceforge.net/apps/mediawik...ed_%28Linux%29

but when i compile inkdemo...
Code:
$ make pc
/usr/local/pocketbook/bin/pbres -c src/images.temp.c /usr/local/pocketbook/images/background.bmp /usr/local/pocketbook/images/books.bmp /usr/local/pocketbook/images/m3x3.bmp
winegcc -o inkdemo src/inkdemo.c src/images.temp.c -I/usr/local/pocketbook/include `freetype-config --cflags` -L/usr/local/pocketbook/lib -linkview -ljpeg -lcurl -lpthread `freetype-config --libs` -Wall -fomit-frame-pointer -O2 -mwindows -m32
src/inkdemo.c:75: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:75: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:76: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:76: warning: initialization from incompatible pointer type
src/inkdemo.c:76: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:77: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:77: warning: initialization from incompatible pointer type
src/inkdemo.c:77: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:77: warning: initialization from incompatible pointer type
src/inkdemo.c:78: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:78: warning: initialization from incompatible pointer type
src/inkdemo.c:78: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:78: warning: initialization from incompatible pointer type
src/inkdemo.c:79: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:79: warning: initialization from incompatible pointer type
src/inkdemo.c:79: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:79: warning: initialization from incompatible pointer type
src/inkdemo.c:80: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:80: warning: initialization from incompatible pointer type
src/inkdemo.c:80: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:81: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:81: warning: initialization from incompatible pointer type
src/inkdemo.c:81: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:82: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:82: warning: initialization from incompatible pointer type
src/inkdemo.c:82: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:82: warning: initialization from incompatible pointer type
src/inkdemo.c:83: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:83: warning: initialization from incompatible pointer type
src/inkdemo.c:83: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:84: warning: initialization makes integer from pointer without a cast
src/inkdemo.c: In function ‘mainscreen_repaint’:
src/inkdemo.c:179: warning: unused variable ‘buf’
src/inkdemo.c: In function ‘menu1_handler’:
src/inkdemo.c:498: warning: passing argument 4 of ‘OpenContents’ from incompatible pointer type
/usr/local/pocketbook/include/inkview.h:795: note: expected ‘iv_tochandler’ but argument is of type ‘void (*)(int)’
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
make: *** [inkdemo] error 2
-lpthread error

but
Code:
$ make arm
/usr/local/pocketbook/bin/arm-linux-gcc -Wall -fomit-frame-pointer -O2 -I/usr/local/pocketbook/arm-linux/include -I/usr/local/pocketbook/include `freetype-config --cflags` -L/usr/local/pocketbook/arm-linux/lib -L/usr/local/pocketbook/lib -linkview -ljpeg -lcurl -lpthread `freetype-config --libs` -o inkdemo.app src/images.temp.c src/inkdemo.c
src/inkdemo.c:75: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:75: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:76: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:76: warning: initialization from incompatible pointer type
src/inkdemo.c:76: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:77: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:77: warning: initialization from incompatible pointer type
src/inkdemo.c:77: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:77: warning: initialization from incompatible pointer type
src/inkdemo.c:78: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:78: warning: initialization from incompatible pointer type
src/inkdemo.c:78: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:78: warning: initialization from incompatible pointer type
src/inkdemo.c:79: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:79: warning: initialization from incompatible pointer type
src/inkdemo.c:79: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:79: warning: initialization from incompatible pointer type
src/inkdemo.c:80: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:80: warning: initialization from incompatible pointer type
src/inkdemo.c:80: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:81: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:81: warning: initialization from incompatible pointer type
src/inkdemo.c:81: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:82: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:82: warning: initialization from incompatible pointer type
src/inkdemo.c:82: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:82: warning: initialization from incompatible pointer type
src/inkdemo.c:83: warning: initialization makes integer from pointer without a cast
src/inkdemo.c:83: warning: initialization from incompatible pointer type
src/inkdemo.c:83: warning: initialization makes pointer from integer without a cast
src/inkdemo.c:84: warning: initialization makes integer from pointer without a cast
src/inkdemo.c: In function `mainscreen_repaint':
src/inkdemo.c:179: warning: unused variable `buf'
src/inkdemo.c: In function `menu1_handler':
src/inkdemo.c:498: warning: passing arg 4 of `OpenContents' from incompatible pointer type
compile ok...

Anyone help me~~
read365 is offline   Reply With Quote
Old 10-05-2011, 09:27 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
I'm not a linux expert, but it seems you need pthteads installed in your distro. Perhaps you have normal packages but not dev ones.

NOTE: What a dirty programmer that allowed those warnings for a released source code!!!!!!
rfog is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 0.7.43/44 - Linux Compile Segmentation Fault jasn Calibre 2 02-08-2011 12:52 PM
Run Error Suse Linux dsc3507 Calibre 10 01-11-2011 01:25 PM
linux install error alexxx Calibre 3 07-20-2010 11:31 AM
iLiad ipdf compile error (malloc) harpum iRex Developer's Corner 1 06-23-2009 12:10 AM
Calibre compile error JeffElkins Calibre 6 10-24-2008 07:59 PM


All times are GMT -4. The time now is 11:46 PM.


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