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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2012, 06:41 PM   #46
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by markatlnk View Post
Actually I am an old command line type guy and would like to have the command line operated from the eink display and touch keyboard. I have the ssh working from wireless and it works great (thanks to all that made everything work).
I had an onscreen touchscreen keyboard written in /bin/sh working, but it used screenshots of the built-in framework keyboards, which are missing a lot of characters needed by linux, and it was just too awkward to use with the framework keyboard layouts, so I scrapped that.

I have a partially completed C touchscreen keyboard that uses a "standard" keyboard layout, so you do not need a bunch of different keyboard images. I have both an 800-wide and a 600-wide version. I have so many projects in progress -- I should get back to the touchscreen keyboard project soon, but I just figured out how to get "real-time" (smooth) video on the DX and DXG (not the current 1.5 FPS limits). I want to do that first.

I need a capable and experienced apprentice so I can extend myself to more than 20 man-hours per day.
geekmaster is offline   Reply With Quote
Old 05-13-2012, 09:15 PM   #47
markatlnk
Member
markatlnk began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2010
Device: kindle 3
I wish I had more time to help. But the summer is a bit packed already. I have been programming in C for 20+ years and mostly work with embedded systems. Currently teach at University of Nebraska (Electrical Engineering). I do appreciate the work you do.
markatlnk is offline   Reply With Quote
Old 05-16-2012, 09:16 AM   #48
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
To link the math library, use:

tccmake myprog -lm

PHP Code:
]# cat hello.c
#include <stdio.h>
#include <math.h>
int main(void) {
    
float x=144;
    
printf("x=%f, sqrt(x)=%f\n",x,sqrt(x));
    return 
0;
}
]
# tccmake hello -lm
]# ./hello
x=144.000000sqrt(x)=12.000000
]
It worked for me. You just did not link in the math library with the "-lm" parameter like I showed above...



I just test hello on my kindle

/mnt/us/tcc #tccmake hello -lm
tcc:cannot find -lm
/mnt/us/tcc #tccmake hello
tcc:undefined synbol 'sqrt'

The problem is still there.
I just install tcc v1.5
the result is same.
xueyou2 is offline   Reply With Quote
Old 05-16-2012, 09:21 AM   #49
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,660
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by xueyou2 View Post
I just test hello on my kindle

/mnt/us/tcc #tccmake hello -lm
tcc:cannot find -lm
/mnt/us/tcc #tccmake hello
tcc:undefined synbol 'sqrt'

The problem is still there.
I just install tcc v1.5
the result is same.
The libm library has to be on the compiler's library search path.

That bit of the HowTo directions is somewhere in GM's post.
Just read the entire thread, I don't have a direct link to that part of the directions.
knc1 is offline   Reply With Quote
Old 05-16-2012, 09:32 AM   #50
deep
Enthusiast
deep began at the beginning.
 
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
Try resinstalling it xueyou2
run the install file inside the tcc folder you extracted
the symlink for the math library is added in the new update

to quote the last line from the install script,
[[ -e libm.so ]]||ln -s /lib/libm.so.6 libm.so

Hope you replaced all the files with the new ones !
deep is offline   Reply With Quote
Old 05-16-2012, 09:47 AM   #51
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Just a wild guess: wouldn't it be "tccmake -lm hello" instead of the other way around?
ixtab is offline   Reply With Quote
Old 05-16-2012, 10:06 AM   #52
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by ixtab View Post
Just a wild guess: wouldn't it be "tccmake -lm hello" instead of the other way around?
If you look at the tccmake script, you will see that your example will fail if you do not have a "-lm.c" file to compile.
geekmaster is offline   Reply With Quote
Old 05-16-2012, 10:10 AM   #53
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by deep View Post
Try resinstalling it xueyou2
run the install file inside the tcc folder you extracted
the symlink for the math library is added in the new update

to quote the last line from the install script,
[[ -e libm.so ]]||ln -s /lib/libm.so.6 libm.so

Hope you replaced all the files with the new ones !
The K3 is missing a symlink needed to use the math library. The line shown above adds that symlink if it is missing. If you did not create that missing symlink, you will get the error that you described. Running the install script from inside /mnt/us/tcc should fix the problem (as deep said).
geekmaster is offline   Reply With Quote
Old 05-16-2012, 10:54 AM   #54
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by deep View Post
Try resinstalling it xueyou2
run the install file inside the tcc folder you extracted
the symlink for the math library is added in the new update

to quote the last line from the install script,
[[ -e libm.so ]]||ln -s /lib/libm.so.6 libm.so

Hope you replaced all the files with the new ones !
Just start,i thought the new version v1.5 made by geekmaster may solve the problem,so i first uninstall the tcc-1.3 and then install tcc-1.5

I do as your guide reinstalling it .
#/mnt/us/tcc/install
ln:crt1.o:file exists
ln:crti.o:file exists
ln:crtn.o:file exists
in:tcc:file exists
in:tccmake:file exists


#tccmake hello
tcc:undefined symbol 'sqrt'
#tccmake hello -lm
tcc:cannot find -lm


I am a novice,please just give detail steps .Thank you .
xueyou2 is offline   Reply With Quote
Old 05-16-2012, 11:05 AM   #55
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,660
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by xueyou2 View Post
Just start,i thought the new version v1.5 made by geekmaster may solve the problem,so i first uninstall the tcc-1.3 and then install tcc-1.5

I do as your guide reinstalling it .
#/mnt/us/tcc/install
ln:crt1.o:file exists
ln:crti.o:file exists
ln:crtn.o:file exists
in:tcc:file exists
in:tccmake:file exists
That is not the text output by the version-1.5 install script.
The version-1.5 install script would continue by making your missing link and then printing a three line message.

You had better re-check what you are doing, starting with what archive you are downloading.

Quote:
Originally Posted by xueyou2 View Post
#tccmake hello
tcc:undefined symbol 'sqrt'
#tccmake hello -lm
tcc:cannot find -lm


I am a novice,please just give detail steps .Thank you .
knc1 is offline   Reply With Quote
Old 05-16-2012, 11:08 AM   #56
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by xueyou2 View Post
Just start,i thought the new version v1.5 made by geekmaster may solve the problem,so i first uninstall the tcc-1.3 and then install tcc-1.5

I do as your guide reinstalling it .
#/mnt/us/tcc/install
ln:crt1.o:file exists
ln:crti.o:file exists
ln:crtn.o:file exists
in:tcc:file exists
in:tccmake:file exists

#tccmake hello
tcc:undefined symbol 'sqrt'
#tccmake hello -lm
tcc:cannot find -lm

I am a novice,please just give detail steps .Thank you .
Let's start at the beginning so that I can reproduce (and fix) your problem. Please provide answers for all of these questions:

Those error message show that the uninstall was not successful.

Q1) Did you run the uninstall script from inside /mnt/us/tcc?

Q2) What version of firmware are you running on your kindle?

Q3) What is the output from this command:
ls -al /lib/libm*

Q4) What is the output from this command:
ls -al /usr/lib/libm*

I need this information to fix your problem. Thanks.


Last edited by geekmaster; 05-16-2012 at 11:13 AM.
geekmaster is offline   Reply With Quote
Old 05-16-2012, 11:19 AM   #57
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
Let's start at the beginning so that I can reproduce (and fix) your problem. Please provide answers for all of these questions:

Those error message show that the uninstall was not successful. Did you run it from inside /mnt/us/tcc?

Q1) What version of firmware are you running on your kindle?

Q2) What is the output from this command:
ls -al /lib/libm*

Q3) What is the output from this command:
ls -al /usr/lib/libm*

I need this information to fix your problem. Thanks.

Q1:yes.Before install the new version tcc-1.5

Q2: firmware 3.3 (611680021) kindle 3g with ads

Q3:/mnt/us/myts #ls -al /lib/libm*
-rwxr-xr-x 1 root root /lib/libm-2.5/so
lrwxrwxrwx 1root root /lib/libm.so.6-> libm-2.5.so

-rwxr-xr-x 1root root /lib/libmenusage.so


Q4:/mnt/us/myts #ls -al /usr/lib/libm*

-rwxr-xr-x 1 root root usr/lib/libmenu.so.5->libmenu.so.5.4
lrwxrwxrwx 1root root usr/lib/libmenu.so.5.4

-rwxr-xr-x 1root root usr/lib/libmp3-parser-arm11_elunux.so

Last edited by xueyou2; 05-16-2012 at 11:36 AM.
xueyou2 is offline   Reply With Quote
Old 05-16-2012, 11:58 AM   #58
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by xueyou2 View Post
Q1:yes.Before install the new version tcc-1.5

Q2: firmware 3.3 (611680021) kindle 3g with ads

Q3:/mnt/us/myts #ls -al /lib/libm*
-rwxr-xr-x 1 root root /lib/libm-2.5/so
lrwxrwxrwx 1root root /lib/libm.so.6-> libm-2.5.so

-rwxr-xr-x 1root root /lib/libmenusage.so


Q4:/mnt/us/myts #ls -al /usr/lib/libm*

-rwxr-xr-x 1 root root usr/lib/libmenu.so.5->libmenu.so.5.4
lrwxrwxrwx 1root root usr/lib/libmenu.so.5.4

-rwxr-xr-x 1root root usr/lib/libmp3-parser-arm11_elunux.so
My K3 3.3 does not have special offers, but that should not make a difference.

I just compared your output from those commands to my own. You are missing the symlink that should be created by the install script.

It looks like you did not successfully run the uninstall script, and it also looks like you did not successfully run the install script.

As far as I know that can only happen if you have it installed to a different folder. It can also fail if you modified the scripts in Windows (putting ascii carriage returns in them), but that would give different error messages.

Please do the following commands and show me the output:

cd /mnt/us/tcc
pwd
./uninstall
./install
ls -al /usr/lib/libm*


Thanks.
geekmaster is offline   Reply With Quote
Old 05-16-2012, 12:08 PM   #59
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
My K3 3.3 does not have special offers, but that should not make a difference.

I just compared your output from those commands to my own. You are missing the symlink that should be created by the install script.

It looks like you did not successfully run the uninstall script, and it also looks like you did not successfully run the install script.

As far as I know that can only happen if you have it installed to a different folder. It can also fail if you modified the scripts in Windows (putting ascii carriage returns in them), but that would give different error messages.

Please do the following commands and show me the output:

cd /mnt/us/tcc
pwd
./uninstall
./install
ls -al /usr/lib/libm*


Thanks.
/mnt/us/tcc #pwd
/mnt/us/tcc
/mnt/us/tcc #./uninstall
*** tcc uninstalled ***
/mnt/us/tcc #./install
*** tcc installed ***
Uninstall with /mnt/us/tcc/uninstall
Compile demo.c with "tccmake demo"
mnt/us/tcc #ls -al /usr/lib/libm*


-rwxr-xr-x 1 root root usr/lib/libmenu.so.5->libmenu.so.5.4
lrwxrwxrwx 1root root usr/lib/libmenu.so.5.4

-rwxr-xr-x 1root root usr/lib/libmp3-parser-arm11_elunux.so
Thank you.(With usbnetwork i can access the kindle i still find the same result.)
xueyou2 is offline   Reply With Quote
Old 05-16-2012, 12:21 PM   #60
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,660
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
In the K3, version-3.2.1 the math library is in: /lib/libm.so.6
Might be in the same place in the K3, version-3.3
knc1 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
Native geekmaster simple touchscreen script support hack geekmaster Kindle Developer's Corner 11 07-02-2012 10:58 AM
Very simple guide to reading newspapers on the kindle, please? :) Pismire Amazon Kindle 7 06-01-2012 11:26 PM
Free (Kindle/Nook/ChristianBook) The Invitation: A Simple Guide to the Bible arcadata Deals, Freebies, and Resources (No Self-Promotion) 4 08-22-2011 01:05 PM
Simple guide to choosing a Creative Commons license for your work Bob Russell News 0 12-26-2006 11:10 AM


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


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