Reply
Thread Tools
Posts: 9 | Thanked: 2 times | Joined on Oct 2009
#1
Hi, I am trying to extend some features within maemo mapper using the most recent version of the source. Before making any changes, I am simply making sure I can compile it locally. This is proving a problem.

First pass, I attempted to build and was given the error "gdbm.h not found. Please install libgdbm-dev."

I grabbed the package and installed.

Second pass, same error "gdbm.h not found. Please install libgdbm-dev."

So I tried using locate to find the file and it doesn't exist.

Is there anything in particular I should have done following installing the package? Or am I missing something?

Thanks!
 

The Following 2 Users Say Thank You to robertmills For This Useful Post:
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
Is your scratchbox correctly set up?
[sbox-SDK_ARMEL: ~] > dpkg --list|grep gdbm
ii libgdbm-dev 1.8.3-2 GNU dbm database routines (development files
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime version)

dpkg -L libgdbm-dev |fgrep gdbm.h
/usr/include/gdbm.h

Did you run ./configure?
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 9 | Thanked: 2 times | Joined on Oct 2009
#3
Originally Posted by TA-t3 View Post
Is your scratchbox correctly set up?
[sbox-SDK_ARMEL: ~] > dpkg --list|grep gdbm
ii libgdbm-dev 1.8.3-2 GNU dbm database routines (development files
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime version)

dpkg -L libgdbm-dev |fgrep gdbm.h
/usr/include/gdbm.h

Did you run ./configure?
Thanks for your help.

- I ran the first command inside sandbox and it only returned the runtime version. I again did "sudo apt-get install libgdbm-dev" and it said I have the latest version.

- Second command returned the expected results.

Where do I run ./configure?
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
I have a version of maemo mapper checked out from SVN. If I cd to the 'trunk' directory (which is immediately above the 'src' directory) there's file 'configure' there - if it is not there, you can run './autogen.sh' there, which will generate it. Then './configure' in the same place should work. After that 'make' should, in principle, work -- unless 'configure' complains about something missing.

However, there's also a debian/ directory there. To create a debian package you use the debian build system. If the 'configure' file is in place, then something like 'fakeroot debian/rules binary' should do configure&make. All from inside scratchbox, of course.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 9 | Thanked: 2 times | Joined on Oct 2009
#5
Ran config which helped resolve some missing packages. But I get back to the point getting "configure: error: libgdbm.so not found. Please install libgdbm." when running ./configure.

What was the process you went through for getting this up and running? Checkout from svn and just run ./configure before anything else?
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#6
No, I checked out, then I believe I ran the autogen.sh script, after that I did the 'fakeroot debian/rules binary' routine (there are other methods but this is the one I use on debian systems, so I've kept using it for maemo too. It runs configure, make, and creates the final .deb(s)).

When doing this it would first complain about some missing packets. After installing those it would get as far as starting to compile. Then I would run into some compilation problems which actually forced me to fix some code, but that may be mainly because I was building an OS2007 version at the time, with a fix that I made in order to get bluetooth GPS working again for N800.

Other than this it was straight sailing, and it's strange that you seem to have a problem with the libgdbm package. You could try 'apt-get install libgdbm-dev --reinstall' (from inside scratchbox)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Posts: 9 | Thanked: 2 times | Joined on Oct 2009
#7
Started from scratch and no luck. Everything I have tried gets me back to the missing package.

Try installing using apt-get and it fails the fetch the file. I have taken that link and download the .deb and tried to install manually, says I have the latest. Removed the libgdbm3 package as well and still says I need to install libgdbm.

I am using the Maemo SDK VM. Would it be better to start from scratch with a fresh installation and install components that way? Also, Is PC Connectivity necessary, as everything I found, it only supports Ubunut Intrepid?
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#8
It sounds like there could be a problem with your SDK installation. I don't use a VM myself (and besides my SDK is almost certainly much older than yours), so unfortunately I'm unable to figure out what could be wrong at this point.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Posts: 9 | Thanked: 2 times | Joined on Oct 2009
#9
I appreciate your help. I'll give it a shot from a clean installation and hope for the best!

Thanks again!
 
Posts: 27 | Thanked: 12 times | Joined on Oct 2009
#10
Have you considered Qt Mapper?
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:35.