Roman Karlstetter | 24 May 2012 11:17

libkeduvocdocument on harmattan

Hi,

I'm trying to develop a very simple vocab-training application (lighter/less 
features than parley) for meego/harmattan. I already got this working somehow 
(I was able to compile and deploy it on my N9). Now I messed up my Qt SDK 
installation and had to reinstall it, but now I can't get my app to link 
against libkeduvocdocument. 
Can someone please tell me what I could have forgotten to install or setup?

I used the setupmad.sh script on 
http://community.kde.org/KDE_Mobile/Harmattan#Using_Madde to install 
libkeduvocdocument (and everything else that is needed) to the harmattan 
target.

The error that I get is
ld: cannot find -lkeduvocdocument

Thanks,
Roman
Laszlo Papp | 24 May 2012 12:16
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> Can someone please tell me what I could have forgotten to install or setup?

Scratchbox works fine, but as for MADDE: please make sure you have the
relevant package of the Community Repository installed in the MADDE
environment where the build procedure looks for.

Best Regards,
Laszlo Papp
Roman Karlstetter | 24 May 2012 12:24

Re: libkeduvocdocument on harmattan


> 
> Scratchbox works fine, but as for MADDE: please make sure you have the
> relevant package of the Community Repository installed in the MADDE
> environment where the build procedure looks for.

I actually have installed all the relevant packages, mad-admin xdpkg -l gives 
me:
 kdelibs5-dev 
 libdbusmenu-qt2 
 libdlrestrictions1 
 libkdecore5 
 libkdeui5 
 libkeduvocdocument4 
 libkio5 
 libstreamanalyzer0 
 libstreams0 

Before, this also worked with MADDE, so there must be something else that I am 
missing. Any further ideas? 

Thanks and kind regards, 
Roman
Laszlo Papp | 24 May 2012 12:32
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> Before, this also worked with MADDE, so there must be something else that I am
> missing. Any further ideas?

Can you paste only the linker line, please ? We are looking for the
"-L" option here where the build procedure looks for. Use "make
VERBOSE=1" just for making sure. :) Also the content of the package
where that got installed ? In scratchbox, it is just simply "dpkg -L
libkeduvocdocument4", but I am unsure with MADDE.

Best Regards,
Laszlo Papp
Roman Karlstetter | 24 May 2012 12:45

Re: libkeduvocdocument on harmattan


> > Before, this also worked with MADDE, so there must be something else that 
I am
> > missing. Any further ideas?
> 
> Can you paste only the linker line, please ? We are looking for the
> "-L" option here where the build procedure looks for. Use "make
> VERBOSE=1" just for making sure. :) Also the content of the package
> where that got installed ? In scratchbox, it is just simply "dpkg -L
> libkeduvocdocument4", but I am unsure with MADDE.

the linker line

g++ -Wl,-rpath,/usr/lib -o Parley main.o VocDocumentManager.o testentry.o 
testentrymanager.o PracticingPrefs.o VocDocEntry.o qmlapplicationviewer.o 
moc_qmlapplicationviewer.o moc_VocDocumentManager.o moc_testentrymanager.o 
moc_PracticingPrefs.o moc_VocDocEntry.o    -
L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib 
-lkeduvocdocument -L/usr/lib -pie -rdynamic -lmdeclarativecache -
lQtDeclarative -lQtGui -lQtCore -lpthread 
/home/roman/data/roman/qtsdk/Madde/toolchains/arm-2009q3-67-arm-none-linux-
gnueabi-x86_64-unknown-linux-gnu/arm-2009q3-67/bin/../lib/gcc/arm-none-linux-
gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -
lkeduvocdocument

the entries of the directory

roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib> 
ls -al libkedu*
-rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
(Continue reading)

Laszlo Papp | 24 May 2012 12:57
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> -L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib
> -lkeduvocdocument

Okay, this seems to be alright.

> the entries of the directory
>
> roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib>
> ls -al libkedu*
> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4.8.0

You do not have the symlink. I am not entirely sure for "ld", but try
to install libkdeedu-dev shipping that symlink or create the symlink
manually. That is the only gut instinct I can come up with.

Best Regards,
Laszlo Papp
Laszlo Papp | 24 May 2012 13:06
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

Right, I think I am now having the full picture. You are using this
library for development purposes, not just linking. You definitely
need the development package for that. What I do not understand is
that, why you are not getting compilation issue, if you use the
library for development purposes. If you do not have the -dev package
installed, you would get compilation time issues as well.

Unless, you do not actually use the library, just link against, which
is not too useful. ;) I hope there are no stray header files around
why the compilation works, but the linking due to the missing -dev
package. That way, it would be necessary to clean up your system, but
hopefully this is not the case.

Best Regards,
Laszlo Papp

On Thu, May 24, 2012 at 1:57 PM, Laszlo Papp <lpapp <at> kde.org> wrote:
>> -L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib
>> -lkeduvocdocument
>
> Okay, this seems to be alright.
>
>> the entries of the directory
>>
>> roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib>
>> ls -al libkedu*
>> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
>> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4.8.0
>
> You do not have the symlink. I am not entirely sure for "ld", but try
(Continue reading)

Roman Karlstetter | 24 May 2012 13:21

Re: libkeduvocdocument on harmattan

Ok, thank you so much, now it works again.

And you actually were right, I have a local git checkout of libkdeedu, I used 
these headers for compilation
(INCLUDEPATH += ../kde/libkdeedu/keduvocdocument /usr/include/KDE), which I 
probably did for testing stuff on my laptop.
I now changed this line to 

INCLUDEPATH += /usr/include/libkdeedu /usr/include/KDE

and I can now build again for my device.

Thanks again and best regards,
Roman

On Donnerstag, 24. Mai 2012, Laszlo Papp wrote:
> Right, I think I am now having the full picture. You are using this
> library for development purposes, not just linking. You definitely
> need the development package for that. What I do not understand is
> that, why you are not getting compilation issue, if you use the
> library for development purposes. If you do not have the -dev package
> installed, you would get compilation time issues as well.
> 
> Unless, you do not actually use the library, just link against, which
> is not too useful. ;) I hope there are no stray header files around
> why the compilation works, but the linking due to the missing -dev
> package. That way, it would be necessary to clean up your system, but
> hopefully this is not the case.
> 
> Best Regards,
(Continue reading)

Roman Karlstetter | 24 May 2012 13:21

Re: libkeduvocdocument on harmattan

Ok, thank you so much, now it works again.

And you actually were right, I have a local git checkout of libkdeedu, I used 
these headers for compilation
(INCLUDEPATH += ../kde/libkdeedu/keduvocdocument /usr/include/KDE), which I 
probably did for testing stuff on my laptop.
I now changed this line to 

INCLUDEPATH += /usr/include/libkdeedu /usr/include/KDE

and I can now build again for my device.

Thanks again and best regards,
Roman

On Donnerstag, 24. Mai 2012, Laszlo Papp wrote:
> Right, I think I am now having the full picture. You are using this
> library for development purposes, not just linking. You definitely
> need the development package for that. What I do not understand is
> that, why you are not getting compilation issue, if you use the
> library for development purposes. If you do not have the -dev package
> installed, you would get compilation time issues as well.
> 
> Unless, you do not actually use the library, just link against, which
> is not too useful. ;) I hope there are no stray header files around
> why the compilation works, but the linking due to the missing -dev
> package. That way, it would be necessary to clean up your system, but
> hopefully this is not the case.
> 
> Best Regards,
(Continue reading)

Laszlo Papp | 24 May 2012 13:06
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

Right, I think I am now having the full picture. You are using this
library for development purposes, not just linking. You definitely
need the development package for that. What I do not understand is
that, why you are not getting compilation issue, if you use the
library for development purposes. If you do not have the -dev package
installed, you would get compilation time issues as well.

Unless, you do not actually use the library, just link against, which
is not too useful. ;) I hope there are no stray header files around
why the compilation works, but the linking due to the missing -dev
package. That way, it would be necessary to clean up your system, but
hopefully this is not the case.

Best Regards,
Laszlo Papp

On Thu, May 24, 2012 at 1:57 PM, Laszlo Papp <lpapp <at> kde.org> wrote:
>> -L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib
>> -lkeduvocdocument
>
> Okay, this seems to be alright.
>
>> the entries of the directory
>>
>> roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib>
>> ls -al libkedu*
>> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
>> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4.8.0
>
> You do not have the symlink. I am not entirely sure for "ld", but try
(Continue reading)

Laszlo Papp | 24 May 2012 12:57
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> -L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib
> -lkeduvocdocument

Okay, this seems to be alright.

> the entries of the directory
>
> roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib>
> ls -al libkedu*
> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
> -rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4.8.0

You do not have the symlink. I am not entirely sure for "ld", but try
to install libkdeedu-dev shipping that symlink or create the symlink
manually. That is the only gut instinct I can come up with.

Best Regards,
Laszlo Papp
Roman Karlstetter | 24 May 2012 12:45

Re: libkeduvocdocument on harmattan


> > Before, this also worked with MADDE, so there must be something else that 
I am
> > missing. Any further ideas?
> 
> Can you paste only the linker line, please ? We are looking for the
> "-L" option here where the build procedure looks for. Use "make
> VERBOSE=1" just for making sure. :) Also the content of the package
> where that got installed ? In scratchbox, it is just simply "dpkg -L
> libkeduvocdocument4", but I am unsure with MADDE.

the linker line

g++ -Wl,-rpath,/usr/lib -o Parley main.o VocDocumentManager.o testentry.o 
testentrymanager.o PracticingPrefs.o VocDocEntry.o qmlapplicationviewer.o 
moc_qmlapplicationviewer.o moc_VocDocumentManager.o moc_testentrymanager.o 
moc_PracticingPrefs.o moc_VocDocEntry.o    -
L/home/roman/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib 
-lkeduvocdocument -L/usr/lib -pie -rdynamic -lmdeclarativecache -
lQtDeclarative -lQtGui -lQtCore -lpthread 
/home/roman/data/roman/qtsdk/Madde/toolchains/arm-2009q3-67-arm-none-linux-
gnueabi-x86_64-unknown-linux-gnu/arm-2009q3-67/bin/../lib/gcc/arm-none-linux-
gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -
lkeduvocdocument

the entries of the directory

roman <at> xyz:~/data/roman/qtsdk/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib> 
ls -al libkedu*
-rw-r--r-- 2 roman users 327472 22. Mai 18:17 libkeduvocdocument.so.4
(Continue reading)

Laszlo Papp | 24 May 2012 12:32
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> Before, this also worked with MADDE, so there must be something else that I am
> missing. Any further ideas?

Can you paste only the linker line, please ? We are looking for the
"-L" option here where the build procedure looks for. Use "make
VERBOSE=1" just for making sure. :) Also the content of the package
where that got installed ? In scratchbox, it is just simply "dpkg -L
libkeduvocdocument4", but I am unsure with MADDE.

Best Regards,
Laszlo Papp
Roman Karlstetter | 24 May 2012 12:24

Re: libkeduvocdocument on harmattan


> 
> Scratchbox works fine, but as for MADDE: please make sure you have the
> relevant package of the Community Repository installed in the MADDE
> environment where the build procedure looks for.

I actually have installed all the relevant packages, mad-admin xdpkg -l gives 
me:
 kdelibs5-dev 
 libdbusmenu-qt2 
 libdlrestrictions1 
 libkdecore5 
 libkdeui5 
 libkeduvocdocument4 
 libkio5 
 libstreamanalyzer0 
 libstreams0 

Before, this also worked with MADDE, so there must be something else that I am 
missing. Any further ideas? 

Thanks and kind regards, 
Roman
Laszlo Papp | 24 May 2012 12:16
Picon
Favicon
Gravatar

Re: libkeduvocdocument on harmattan

> Can someone please tell me what I could have forgotten to install or setup?

Scratchbox works fine, but as for MADDE: please make sure you have the
relevant package of the Community Repository installed in the MADDE
environment where the build procedure looks for.

Best Regards,
Laszlo Papp

Gmane