![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Building ctb
Can somebody from guru give a hint on how to build the ctb package? I made the configure happy with the needed libraries (liber***) by copying their includes into poky/include folder. But then - have no idea ... Automake, autoconfigure, other things?
![]() The main idea is to get a nice label for .desktop files back. In version 1.0 the label was a combination of Name and Comment field. Now in 2.0 RC2 it is a combination of filename and Name .. ![]() Managed to find the place in the code, so this feature is introduced intentionally .. If I can comment out filemodel.c:1831 and filemodel.c:1853 I would (hopefully) get the old good Name+Comment back. Code:
if (g_viewmode2 == DIR_VIEW) return ... |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
I have not tried yet with the new sources. It is strange that you need to copy anything into the poky/include directory. Did you copy the poky SDK from the iRex website? Also read iOn Development Environment.pdf carefully on how to set your environment.
W.r.t. you idea with the desktop files, I fully agree, the current situation is very strange, it is also on my todo list. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Yes, copied SDK from the iRex site. No, have not read the pdf .. Did not change initial SDK for it was fully sufficient for building simple independent programs like mc, xlsfont etc. CTB package depends on several iRex libraries so their headers should be discoverable for configure. An easy way was to copy the headers into /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/include/liber***
|
![]() |
![]() |
![]() |
#4 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Ah, now I remember I assumed the libraries liber*** were used as dynamic ones (brave, isn't it?) and so I did not need to compile and install them. Thus, I assumed further, for building ctb binary it would be sufficient to make .h files discoverable.
Anyways, I'm stuck because of not knowing how to make the things a correct way. Is it true I should first call autoconfigure in the package folder and then .configure etc? At least configure.ac hints this. But then on "autoconfigure --add-missing" I get smth like ... AC_PROG_INTLTOOL not found ... I do have intltool installed. Having Makefile.am makes me suspect I'd need to use automake. Sooo, to stop this mess in my steps is the ultimate goal of the question. Please excuse a java/C developer ![]() |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Configure needs the following parameters (at least for R1.7.1):
Code:
./configure --host=arm-poky-linux-gnueabi --sysconfdir=/etc --prefix=/usr |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
![]() I put this line into build_all_from_scratch.sh (see hello-world example), and voila, no questions at all. Apparently I was right not compiling liber*** libraries but using only their headers. Thank you! BTW, commenting out the two mentioned lines in filemodel.c helps, now the labels for .desktop files are back to the expected ones ![]() Last edited by dima_tr; 06-30-2010 at 04:11 AM. |
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Now the next step is to show the icon of the original file for shortcuts
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR1000 Building Hello World 4.0 | otromanolo | iRex Developer's Corner | 54 | 04-17-2011 06:38 AM |
Enchanced ctb | yuri_b | iRex Developer's Corner | 4 | 09-28-2010 03:53 AM |
Building Calibre from source | al35 | Calibre | 3 | 03-24-2010 02:22 PM |
Seriously thoughtful oh hell! a plane went into a building in TX | kindlekitten | Lounge | 16 | 02-19-2010 07:12 AM |