View Single Post
Posts: 155 | Thanked: 315 times | Joined on Jun 2010 @ DE
#8
I have had the same problem with missing libhildonmm when using the SDK in VMware virtual machine from
http://maemovmware.garage.maemo.org/2nd_edition/
The links to download the virtual machine have been removed (good decision ) but for those who have it already and can't wait for a working VM here are my workarounds:

1) Problem: EsBox wont start properly ("empty window pending"). Fix:

Right-click on EsBox Icon on Desctop and select Properties change command from
/usr/local/esbox/esbox
to
/usr/local/esbox/esbox.sh
The file esbox.sh already exists but need to be changed by us as follows: in the check_version() function allow version 1.9 as well:
  • add comment before line 24
  • remove comment on lines 25 and 26
So these should look like
Code:
#test "$VERSION2" = "1.8"
VERSION3=`echo $FULL_VERSION | cut -d. -f1-3`
test "$VERSION2" = "1.8" -o \( "$VERSION2" = "1.9" -a "$VERSION3" != "1.9.0" \)
After these changes my EsBox starts fine.

2) Problem: hildonmm.h not found. Reason is that scratchox is not commonly usable. Fix:
Remove and re-install scratchbox and SDK. In Detail:

Remove scratchbox from your virtual machine (implicitely removes the SDK). See
http://wiki.maemo.org/Documentation/...n-installation
and/or
http://www.scratchbox.org/documentat...oc.html#AEN612

Re-Install scratchbox following the instruction at
http://wiki.maemo.org/Documentation/..._GUI_Installer
and/or manually (preferred in this case):
http://wiki.maemo.org/Documentation/...d_distribution

After you accepted the EULA for Nokia proprietary binary packages, you might
add the supplied nokia repository
deb http://repository.maemo.org/ fremantle/400000this00is00an00example00009 nokia-binaries
to the /etc/apt/sources.list in your scratchbox (you have to do this for
each target, e.g. FREMANTLE_X86 and FREMANTLE_ARMEL separately!).
While doing this, add the following repositories to /etc/apt/sources.list as well:
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free
Finaly, in the scratchbox, the /etc/apt/sources.list for each target should look like this:

Code:
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free

deb http://repository.maemo.org/ fremantle/4000your0own0token0id0here000009 nokia-binaries

deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free
Then, in the scratchbox, enter following commands for each target:
Code:
$ fakeroot apt-get update
$ fakeroot apt-get install libhildonmm
$ fakeroot apt-get install libhildonmm-dev
(this is, what I did, but I guess, that "install libhildonmm" is implied by "install libhildonmm-dev").

Now the hildonmm.h and gtkmm.h is there and the applications should compile.

But there is stil something to do: In contrast to the compiler, EsBox does not find the hildonmm.h
file and marks the #include statement. To solve this,
  • open project properties of your project
  • select "... Path and Symbols" on the left hand menu
  • select "[all configurations]" in the configurations combo box
  • click "Add..." for the folder
    /scratchbox/users/maemo/targets/FREMANTLE_X86/usr/include/hildonmm
  • Use "move up/down" until your added folder is right above
    /scratchbox/users/maemo/targets/FREMANTLE_X86/usr/local/include
Do this for all configurations of all targets.

Build your application, debug, enjoy.