Compiling from git

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Rinus
Op 24-08-11 15:26, Martin (KDE) schreef:

> Am 24.08.2011 14:40, schrieb Marie-Noëlle Augendre:
>> 2011/8/24 Marie-Noëlle Augendre<[hidden email]>:
>>> 2011/8/24 Martin (KDE)<[hidden email]>:
>>>> Am 24.08.2011 11:23, schrieb Marie-Noëlle Augendre:
>>>>> Hi Martin,
>>>>>
>>>>> I'm not sure which package you're refering to: gcc-c++? digikam?
>>>> All the libs and executables you need to compile digikam.
>>>>
>>>>> I'm not sure I'm competent enough to 'play with' RPM like that ...
>>>> This is nothing you play with. Simply search for fedora digikam 2.0
>>>> source RPM (srpm), copy this to your local harddisk and run
>>>>
>>>> yum localinstall /path/to/digikam*.srpm
>>>>
>>>> all other packages you need to compile this source rpm are installed as
>>>> dependencies automatically. You can remove the digikam source rpm
>>>> afterwards but the dependencies are still there.
>>>>
>>>> It is of much higher risk to install libs from source which may be
>>>> already installed but without development package (libs usually have a
>>>> -develop package too).
>>>>
>>>> Martin
>>>>
>>> Thanks for the information. I'll try this as soon as the occasion arises.
>>>
>> I'm trying your procedure to retrieve the source, but I don't know how
>> to do that:
>>
> At first hand: none. download digikam (from
> ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm
> for example) and install it (with yum localinstall).
Weren´t you after installing 2.1.0 from git, Marie-Noelle ???

> Otherwise you have to search for a kde-testing repo with src. The
> default fedora one does not provide source RPMs.
>
>>   - with yum, I know the --enablerepo clause, but I don't know hom to
>> find the (name of the) source
> I don't know a repo with testing src rpms.
>
>>   - with rpm - which I have used very scarcely up to now -  I have no
>> idea how to specifiy the repo
> plain rpm does not know anything about repos. This is yum stuff only.
>
> Martin
>
>> Marie-Noëlle
>>
>>
>>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

tosca
In reply to this post by Martin (KDE)
2011/8/24 Martin (KDE) <[hidden email]>:

> At first hand: none. download digikam (from
> ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm
> for example) and install it (with yum localinstall).
>
> Otherwise you have to search for a kde-testing repo with src. The
> default fedora one does not provide source RPMs.

Done.


>>  - with rpm - which I have used very scarcely up to now -  I have no
>> idea how to specifiy the repo
>
> plain rpm does not know anything about repos. This is yum stuff only.
>
Thanks for this precision.


So now, I've downloaded the source from the link you provided, and when I run:
yum localinstall /home/marie-noelle/Téléchargements/digikam-2.0.0-4.fc17.src.rpm
I get this message:
Modules complémentaires chargés : auto-update-debuginfo, langpacks, presto,
                                : refresh-packagekit
Configuration du processus de paquets locaux
Rien à faire

I'm surprised that no other package comes by!

Marie-Noëlle

--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Martin (KDE)
In reply to this post by Rinus
Am 24.08.2011 15:35, schrieb sleepless:
> Op 24-08-11 15:26, Martin (KDE) schreef:
>> At first hand: none. download digikam (from
>> ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm
>>
>> for example) and install it (with yum localinstall).
> Weren´t you after installing 2.1.0 from git, Marie-Noelle ???

This has nothing to do with installation of binaries somewhere. This is
just to get all basic stuff installed (like compiler, libs and other
tools) the src.rpm can be deleted afterwards.

Sometimes it is very hard to get all required dependencies the right
way. Using libs and tools from different sources in not always a good
idea if you can use the same from your distribution repositories. The
described procedure will take care that the required dependencies for
compiling digikam are installed.

digikam itself will be installed from git. At least it is the way I went
last time I installed digikam from source.

Martin

>> Otherwise you have to search for a kde-testing repo with src. The
>> default fedora one does not provide source RPMs.
>>
>>>   - with yum, I know the --enablerepo clause, but I don't know hom to
>>> find the (name of the) source
>> I don't know a repo with testing src rpms.
>>
>>>   - with rpm - which I have used very scarcely up to now -  I have no
>>> idea how to specifiy the repo
>> plain rpm does not know anything about repos. This is yum stuff only.
>>
>> Martin
>>
>>> Marie-Noëlle
>>>
>>>
>>>
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

tosca
2011/8/24 Martin (KDE) <[hidden email]>:
> Sometimes it is very hard to get all required dependencies the right
> way.

And the last 'make' I've made returned this message:
[  0%] Built target kgeomap_automoc
[  0%] Building CXX object
extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/abstractmarkertiler.cpp.o
In file included from
/home/marie-noelle/digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.cpp:27:0:
/home/marie-noelle/digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.moc:10:99:
erreur fatale: ../../../digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.h
: Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: *** [extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/abstractmarkertiler.cpp.o]
Erreur 1
make[1]: *** [extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/all] Erreur 2
make: *** [all] Erreur 2


So obviously, some dependencies are missing, but the 'yum install'
from the source file didn't seem to get them.

Marie-Noëlle

--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Martin (KDE)
In reply to this post by tosca
Am 24.08.2011 15:45, schrieb Marie-Noëlle Augendre:

> 2011/8/24 Martin (KDE) <[hidden email]>:
>
>> At first hand: none. download digikam (from
>> ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm
>> for example) and install it (with yum localinstall).
>>
>> Otherwise you have to search for a kde-testing repo with src. The
>> default fedora one does not provide source RPMs.
>
> Done.
>
>
>>>  - with rpm - which I have used very scarcely up to now -  I have no
>>> idea how to specifiy the repo
>>
>> plain rpm does not know anything about repos. This is yum stuff only.
>>
> Thanks for this precision.
>
>
> So now, I've downloaded the source from the link you provided, and when I run:
> yum localinstall /home/marie-noelle/Téléchargements/digikam-2.0.0-4.fc17.src.rpm
> I get this message:
> Modules complémentaires chargés : auto-update-debuginfo, langpacks, presto,
>                                 : refresh-packagekit
> Configuration du processus de paquets locaux
> Rien à faire

Sorry, my french is very limited. If all required packages are installed
this is ok.

>
> I'm surprised that no other package comes by!

So either all are already installed or the dependency list in this
src.rpm is broken.

Martin

>
> Marie-Noëlle
>

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Martin (KDE)
In reply to this post by tosca
Am 24.08.2011 15:49, schrieb Marie-Noëlle Augendre:

> 2011/8/24 Martin (KDE) <[hidden email]>:
>> Sometimes it is very hard to get all required dependencies the right
>> way.
>
> And the last 'make' I've made returned this message:
> [  0%] Built target kgeomap_automoc
> [  0%] Building CXX object
> extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/abstractmarkertiler.cpp.o
> In file included from
> /home/marie-noelle/digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.cpp:27:0:
> /home/marie-noelle/digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.moc:10:99:
> erreur fatale: ../../../digikam-software-compilation/extra/libkgeomap/libkgeomap/abstractmarkertiler.h
> : Aucun fichier ou dossier de ce type
> compilation terminée.
> make[2]: *** [extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/abstractmarkertiler.cpp.o]
> Erreur 1
> make[1]: *** [extra/libkgeomap/libkgeomap/CMakeFiles/kgeomap.dir/all] Erreur 2
> make: *** [all] Erreur 2
>

can you rerun the command with

LC_ALL=C LANG=C make

The the output will be english. As already said, my french is limited

Martin

>
> So obviously, some dependencies are missing, but the 'yum install'
> from the source file didn't seem to get them.
>
> Marie-Noëlle
>

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

tosca
2011/8/24 Martin (KDE) <[hidden email]>:

>
>
> can you rerun the command with
>
> LC_ALL=C LANG=C make
>
> The the output will be english. As already said, my french is limited
>
> Martin
>

Never mind, my english is not too bad (I hope ...)

My guess is I had done a cleanup a bit too rough! The directory that
appears in the message seemed a bit strange ...
This time, I have - I hope - cleaned the mess, and I am currently
re-cloning the git for the missing parts.
When it is finished, I will begin the cmake + make procedure and let
you know what happens then.

Marie-Noëlle

--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Martin (KDE)
In reply to this post by Martin (KDE)
Am Mittwoch, 24. August 2011 schrieb Martin (KDE):

> Am 24.08.2011 14:40, schrieb Marie-Noëlle Augendre:
> > 2011/8/24 Marie-Noëlle Augendre <[hidden email]>:
> >
> > I'm trying your procedure to retrieve the source, but I don't
> > know how
>
> > to do that:
> At first hand: none. download digikam (from
> ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/dig
> ikam-2.0.0-4.fc17.src.rpm for example) and install it (with yum
> localinstall).

Ah, I just tested it out: (was on a windows platform before): You have
to run

rpmbuild -bb ~/rpmbuild/SPECS/digikam.spec

after installation of the source RPM and you will get a list of
required packages. sorry, no automatic installation. These packages
you can install with yum install.

In the digikam package the requirements are defined as build
requirements, not as installation requirements.

Martin
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

tosca
2011/8/24 Martin (KDE) <[hidden email]>:
> Am Mittwoch, 24. August 2011 schrieb Martin (KDE):

>
> Ah, I just tested it out: (was on a windows platform before): You have
> to run
>
> rpmbuild -bb ~/rpmbuild/SPECS/digikam.spec

This folder is empty. I guess I should extract somewhere the archive
I've downloaded, no?

Marie-Noëlle



--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling from git

Martin (KDE)
Am Mittwoch, 24. August 2011 schrieb Marie-Noëlle Augendre:

> 2011/8/24 Martin (KDE) <[hidden email]>:
> > Am Mittwoch, 24. August 2011 schrieb Martin (KDE):
> >
> >
> > Ah, I just tested it out: (was on a windows platform before): You
> > have to run
> >
> > rpmbuild -bb ~/rpmbuild/SPECS/digikam.spec
>
> This folder is empty. I guess I should extract somewhere the
> archive I've downloaded, no?

Oh sorry: I missed the 'rpm -ivh /path/to/digikam*.src.rpm' command.

Martin

>
> Marie-Noëlle

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
12