Help compiling Lifeograph

I’m trying to install the diary manager Lifeograph (Lifeograph: welcome to lifeograph wiki) on my system (openSUSE 11.1, KDE 4.3). Have no clue really how to do that, so it would be great it someone could help me out … :frowning:

(1) I suppose the first question is really: What command do I use? I have no idea in what language Lifeograph is written, so don’t know which command would be appropriate.

(2) … That beind said, I tried ‘make’ (because it seems to work for a lot of applications), and this is the error output I get:


@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> ls
AUTHORS      bin      icons         lifeograph.desktop  NEWS  po      src
backgrounds  COPYING  lifeograph.1  makefile            obj   README
@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> make
if does not work, please try under src folder!
cd src && make all
make[1]: Entering directory `/home//To be filed/Computer and software/lifeograph-0.5.4/src'
if  ! -d ../obj ]; then \
                mkdir ../obj; \
        fi; \
        if  ! -d ../bin ]; then \
                mkdir ../bin; \
        fi
g++ -c main.cpp -Wall `pkg-config gtkmm-2.4 gconfmm-2.6 gtkspell-2.0 --cflags` -O2  -o ../obj/main.o
Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found
Package gconfmm-2.6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconfmm-2.6.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconfmm-2.6' found
Package gtkspell-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkspell-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkspell-2.0' found
/bin/sh: g++: command not found
make[1]: *** ../obj/main.o] Error 127
make[1]: Leaving directory `/home//To be filed/Computer and software/lifeograph-0.5.4/src'
make: *** [all] Error 2
@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4>


I did check whether I got everything installed I need, according to: Lifeograph: Requirements, and I do have the following (so should be fine, no?):

S | Name | Type | Version | Arch | Repository
–±-------±--------±-----------±-----±------------
i | gtkmm2 | package | 2.16.0-3.1 | i586 | Extra-hujq-1
i | gconfmm | package | 2.24.0-1.31 | i586 | openSUSE-11.1-Oss
i | libgcrypt11 | package | 1.4.1-4.1 | i586 | openSUSE-11.1-Oss
i | gtkspell | package | 2.0.14-17.38 | i586 | openSUSE-11.1-Oss

You might have to install the “-devel” version of these packages to be able to compile Lifeograph. It should have the same package name with a “-devel” suffix.

You need the -devel packages for items mentioned to be installed.

thanks for the comments! i’ve installed all the respective -devel packages, but i’m still getting error messages:


homoludens@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> sudo make
if does not work, please try under src folder!
cd src && make all
make[1]: Entering directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
if  ! -d ../obj ]; then \
                mkdir ../obj; \
        fi; \
        if  ! -d ../bin ]; then \
                mkdir ../bin; \
        fi
g++ -c main.cpp -Wall `pkg-config gtkmm-2.4 gconfmm-2.6 gtkspell-2.0 --cflags` -O2  -o ../obj/main.o
/bin/sh: g++: command not found
make[1]: *** ../obj/main.o] Error 127
make[1]: Leaving directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
make: *** [all] Error 2



homoludens@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> make test
make: *** No rule to make target `test'.  Stop.



homoludens@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> make install
if does not work, please try under src folder!
cd src && make install
make[1]: Entering directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
g++ -c main.cpp -Wall `pkg-config gtkmm-2.4 gconfmm-2.6 gtkspell-2.0 --cflags` -O2  -o ../obj/main.o
/bin/sh: g++: command not found
make[1]: *** ../obj/main.o] Error 127
make[1]: Leaving directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
make: *** [install] Error 2
homoludens@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> sudo make install
if does not work, please try under src folder!
cd src && make install
make[1]: Entering directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
g++ -c main.cpp -Wall `pkg-config gtkmm-2.4 gconfmm-2.6 gtkspell-2.0 --cflags` -O2  -o ../obj/main.o
/bin/sh: g++: command not found
make[1]: *** ../obj/main.o] Error 127
make[1]: Leaving directory `/home/homoludensTo be filed/Computer and software/lifeograph-0.5.4/src'
make: *** [install] Error 2



Hi
But your still missing this package :wink:


sudo zypper in gcc-c++

It actually installs gcc43-c++ as well as gcc-c++ is just softlinks to
g+±4.3


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 1 day 12:41, 2 users, load average: 0.30, 0.12, 0.07
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

ok, i’ve installed gcc-c++. i’m still left with one error message; how do i go about that one?


homoludens@linux-chameleon:~/To be filed/Computer and software/lifeograph-0.5.4> make install
if does not work, please try under src folder!
cd src && make install
make[1]: Entering directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
g++ -c main.cpp -Wall `pkg-config gtkmm-2.4 gconfmm-2.6 gtkspell-2.0 --cflags` -O2  -o ../obj/main.o
In file included from main.cpp:25:
lifeograph.hpp:245: error: ‘Gtk::EntryIconPosition’ has not been declared
make[1]: *** ../obj/main.o] Error 1
make[1]: Leaving directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src'
make: *** [install] Error 2

Do you have gtk2-devel installed ?
Maybe you can also try installing “gtk-devel” and “gtk1-compat-devel”.

Cool, it seems that lifeograph is the kind of software I was looking for. It’s a good coincidence.
Next week I will try to create a RPM package for it in OBS. That will be more convenient to install in the future.

PVince,

thanks for the tip. gtk2-devel was already installed, so I tried compiling Lifeograph after installing the other two (had to take turns since they conflict and I could only install one at a time). Hasn’t worked, though, I’m still stuck with the same error message. :frowning:

Glad that I could interest you in this application! I haven’t been able to take a close look yet, but what I’ve read sounds promising. I don’t think there is a good journaling / diary application yet in the opensuse repositories, so if you could build and add it, that would be fantastic indeed!

… also, it will spare me the trouble of having to figure out what I’m doing wrong with compiling it! :wink:

What happens if you follow it’s recommendation to try doing ‘make install’ under the src subdirectory? i.e.


> cd ~/To be filed/Computer and software/lifeograph-0.5.4/src 
> make install

Hi
Looks like it needs a later version of gtkmm2 (which will create
dependency hell on 11.1), just built on 11.2 M7 32bit without
problems.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 20:24, 2 users, load average: 0.41, 0.62, 0.62
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

malcolmlewis is right. I tried to build a package for lifeograph 0.5.4 under openSUSE 11.1, and I get the same compile error.

You can have a try with an earlier version. It seems that lifeograph 0.4.1 compiles fine. I still need to tweak it to make a package.

If you find a more recent version that also compiles, please tell me.

Thanks,

Vincent

Hi
Here is a spec file;
http://www.nopaste.com/p/awRHaCQxt
and here is the desktop diff file to fix it for openSUSE
http://www.nopaste.com/p/acAvj5mHP


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 21:55, 2 users, load average: 0.74, 0.26, 0.18
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

I have packaged lifeograph 0.4.1. It should appear in my home repository tomorrow after OBS has built it.
You’ll then be able to find it using the webpin search or Software.openSUSE.org and use the one-click install if you wish so.

Later I’ll publish it to an official repository, after I find the appropriate one.

I have quickly tried lifeograph locally, and this software doesn’t seem so impressive. The diary/journal feature is already present in korganizer, but I’m not sure whether korganizer can encrypt it with a password like lifeograph does.
Also, the version I tried is 0.4.1, so maybe it has improved much in the latest version.

Thanks for the spec, malcolmlewis, but I already finished the package before seeing your message. Also, I had to do some additional changes to make the package conform to the OBS policies.

Your spec and diff might work for a local rpmbuild though.

Hi
0.4.5 should build against factory fine though.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 22:32, 3 users, load average: 0.24, 0.29, 0.23
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Ahh that should be 0.5.4 …


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 22:34, 3 users, load average: 0.33, 0.29, 0.23
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Yes I know, but I’m not sure whether we can (by convention) mix versions in OBS, like build the package with version X for openSUSE 11.1 and a version Y for openSUSE factory.

i get the same error message as above. it’s a bit shorter, though, because the line "make[1]: Entering directory `/home/homoludens/To be filed/Computer and software/lifeograph-0.5.4/src’
" is missing …

Like I said you can try with earlier versions.
The version 0.4.1 should compile fine. I didn’t try more recent versions < 0.5.4.

PVince81,

thanks a lot for providing a package, will save me a lot of headaches and additional grey hair! :slight_smile: