07-18-2008, 03:08 PM | #1 |
Member
Posts: 13
Karma: 11
Join Date: Aug 2007
Device: iLiad
|
Please, help me with simple compiling first steps
I'm trying to compile evkb.c for the iLiad. I've followed the steps in this scratchbox tutorial and I'm inside the scratchbox environment now. As per my (mis?)understanding of Thomas' tips here I apt-get source libxext-dev on my non-scratchbox, regular environment, copied the source directory to my scratchbox environment and compiled it there, running autogen.sh, make, and make install which seemed to copy the libraries to the include directories.
I've changed evkb's Makefile to just say gcc which does seem to resolve to the proper cross compiler when I call make from within scratchbox. The problem is that the linker cannot find -lXtst. What should I do? Did I miss some steps? I don't understand the dependencies-helper shell scripts and how to use them. There's a lot for me to learn when it comes to porting stuff to the iLiad. Would you please help me? |
07-18-2008, 05:02 PM | #2 | ||
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
[sbox-iliad: ~] > find / -name "libXtst*" 2>/dev/null If you find it (i.e in /usr/local/lib/libXtst.so), search for the place where -lXtst is written and add -L/path/to/the/library (i.e. -L/usr/local/lib -lXtst). Quote:
[sbox-iliad: ~] > ./dl-and-install.sh libXtst.so Basically you put as a parameter of the script the name of the file you want t have generated. Sometimes it fails because there are a lot of matches and the script is not very smart; in those cases you put some of the path leading to that file (but omitting the first / of the path), for example: ./dl-and-install sbin/etherwake P.S.: I changed today the wiki page you mentioned because I've just updated a fixed version of the dependencies-helper scripts. Check that you have downloaded dependencies-helper_20080718-1.tar.gz or repeat the step 11 of the howto to be sure you have the correct version. The old one doesn't work anymore. P.S.2: You may find easier to use the VMWare image that Adam prepared. It is the sticky thread in the iliad developer forum. It has a lot of commonly used libraries compiled and included in the image's scratchbox environment. Last edited by Antartica; 07-18-2008 at 05:07 PM. Reason: grammar/sp. |
||
Advert | |
|
07-18-2008, 06:30 PM | #3 | ||||
Member
Posts: 13
Karma: 11
Join Date: Aug 2007
Device: iLiad
|
Quote:
At first, it didn't run because I had incorrect mmap settings, then I had problems resolving hosts that a Code:
cp /scratchbox/etc/resolv.conf /etc/resolv.conf Code:
apt-get update Quote:
Quote:
Quote:
|
||||
07-19-2008, 06:08 AM | #4 | |||
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
Yep. The script connects to packages.debian.org to search for the file you request, then it downloads the source package from debian and tries to apply the debian patches on it. Finally, it attempts a configure/make/makeinstall. Quote:
Quote:
Code:
$ ls -l total 87236 -r--r--r-- 1 user user 241 2007-09-29 12:57 howto.txt -r--r--r-- 1 user user 20938 2007-09-06 10:09 vmdk.zip -r--r--r-- 1 user user 10848972 2007-09-06 13:44 vmware-bin_2.0.0.45731.0_i386.deb -r--r--r-- 1 user user 777328 2007-09-06 13:44 vmware-common_2.0.0.45731.0_all.deb -r--r--r-- 1 user user 299632 2007-09-06 13:44 vmware-kernel-source_2.0.0.45731.0_all.deb -r--r--r-- 1 user user 10183044 2007-09-06 13:44 vmware-lib_2.0.0.45731.0_i386.deb -r--r--r-- 1 user user 24650 2007-09-06 13:32 vmware-package_0.14_all.deb -r--r--r-- 1 user user 1142 2007-09-06 13:44 vmware-player_2.0.0.45731.0_i386.changes -r--r--r-- 1 user user 608394 2007-09-06 13:44 vmware-player_2.0.0.45731.0_i386.deb -r--r--r-- 1 user user 66424421 2007-09-06 11:07 VMware-player-2.0.0-45731.i386.tar.gz $ Code:
$ cat howto.txt module-assistant build vmware-kernel-source dpkg -i vmware-kernel-modules-2.6.18-4-686_2.0.0.45731.0+2.6.18.dfsg.1-12etch2_i386.deb mkdir /var/local/vmware chmod 777 /var/local/vmware/ mkdir -p /usr/lib/vmware/licenses/site vmware-acetool $ Last edited by Antartica; 07-19-2008 at 06:11 AM. |
|||
07-21-2008, 11:47 AM | #5 |
Member
Posts: 13
Karma: 11
Join Date: Aug 2007
Device: iLiad
|
Code:
../dl-and-install.sh libXtst.so |
Advert | |
|
07-21-2008, 03:49 PM | #6 | |
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
For that, it suffices to do an Code:
./dl-and.install.sh recordproto.pc About the levels of "indirection", there are really only two environments in that setup: your host OS and the scratchbox one. In the scratchbox you have installed the iliad libraries without development headers, so when you need to compile something that depends on a library, you need to have compiled/installed tht library on the scratchbox environment, so really the iliad part is only there for the liberm.so/liberipc.so libraries and for testing purposes. That is very different from the maemo development environment (where scratchbox was born, IIRC), where you have a full debian environment inside scratchbox and you simply apt-get the things you need, AFAIK. |
|
07-22-2008, 09:11 AM | #7 |
Member
Posts: 13
Karma: 11
Join Date: Aug 2007
Device: iLiad
|
Seems to be working.
I'm working on a little summary on the steps I've taken so far, but meanwhile I just wanted to alert you to a little bug in dl-and-install.sh; namely that lynx breaks the line on long paths so the grep never finds a num. I just edited the script and changed "lynx -dump blablabla" to "lynx -width 300 blablabla" as a temporary workaround but maybe a better workaround would be just wget/curl dl the html-file and work with the html instead of a rendered version. Thanks for all your help so far, I'm still making progress. |
07-22-2008, 04:11 PM | #8 | |
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
This one tries to do it parsing the source html, as you suggested. |
|
Tags |
evkb, gcc, scratchbox, xtest |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
erm, simple question , hope for simple answer! | al zymers | Amazon Kindle | 5 | 09-25-2010 01:01 PM |
Problems compiling | unkilbeeg | Sigil | 1 | 09-13-2009 01:49 PM |
Simple question for a simple mind :) | PKFFW | OpenInkpot | 6 | 08-27-2009 09:00 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 |