Re: configure gives error about CMake

Michal Čihař <[email protected]> Wed, 16 Nov 2016 17:06:00 +0100
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
The add_coverage command is implemented inside Gammu sources:

https://github.com/gammu/gammu/blob/master/cmake/Findcodecov.cmake#L56

But it's included in the toplevel CMakeLists.txt, the same which
defines required CMake version and the one which is probably not
processed in your case.

-- 
	Michal Čihař | https://cihar.com/ | https://weblate.org/

Mübin İçyer píše v St 16. 11. 2016 v 16:46 +0100:
> It seems that CMake interprets this file. As error message already
> says, there is an unknown command for CMake: add_coverage. On this
> CMake documentation this command (add_coverage) does not exist.
> https://cmake.org/cmake/help/v2.8.9/cmake.html#section_Commands
> I am using CMake 2.8.9
> 
> I commented this line and tried again, I have gotten other errors. So
> Maybe we have to use other commands instead of add_coverage.
> 
> 
> 
> 2016-11-16 13:42 GMT+01:00 Michal Čihař <[email protected]>:
> > Hi
> > 
> > I'm asking because top level CMakeLists.txt does have that line on
> > top
> > (see https://github.com/gammu/gammu/blob/master/CMakeLists.txt#L5).
> > Based on the error you're invoking cmake with CMakeLists.txt from
> > gammu
> >  subdirectory.
> > 
> > Anyway it seems that configure script didn't work as expected (I've
> > added some safeguards to it right now to make it more robust), try
> > building using CMake directly:
> > 
> > https://wammu.eu/docs/manual/project/install.html#using-cmake
> > 
> > --
> >         Michal Čihař | https://cihar.com/ | https://weblate.org/
> > 
> > Mübin İçyer píše v St 16. 11. 2016 v 11:09 +0100:
> > > Hi,
> > > Of course in the source code directory : ~Projects/sms/gammu-
> > 1.37.91/
> > >
> > > 2016-11-16 10:47 GMT+01:00 Michal Čihař <[email protected]>:
> > > > Hi
> > > >
> > > > In which directory did you run the configure command?
> > > >
> > > > --
> > > >         Michal Čihař | https://cihar.com/ | https://weblate.org
> > /
> > > >
> > > > Mübin İçyer píše v St 16. 11. 2016 v 10:40 +0100:
> > > > > Hi,
> > > > > I just followed the instruction in documentation.
> > > > >
> > > > > I first installed some packets with this command:
> > > > >
> > > > > sudo apt-get install cmake python-dev pkg-config
> > libmysqlclient-
> > > > dev
> > > > > libpq-dev libcurl4-gnutls-dev libusb-1.0-0-dev libdbi0-dev
> > > > > libbluetooth-dev libgudev-1.0-dev libglib2.0-dev unixodbc-dev
> > > > >
> > > > > Then as mentioned in documentation I run ./configure command.
> > > > > Maybe I have to do something before this command?
> > > > > By the way, I am using Raspbian GNU/Linux 7 (wheezy) on
> > Banana
> > > > Pi.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2016-11-16 10:23 GMT+01:00 Michal Čihař <[email protected]>:
> > > > > > Hi
> > > > > >
> > > > > > Mübin İçyer píše v Út 15. 11. 2016 v 23:39 +0100:
> > > > > > > Hello,
> > > > > > > I have downloaded the latest source code and want to
> > compile
> > > > > > myself.
> > > > > > > If I type ./configure, I get following error:
> > > > > >
> > > > > > How did you invoke configure? It seems you're not using
> > > > toplevel
> > > > > > CMakeLists.txt.
> > > > > >
> > > > > > --
> > > > > >         Michal Čihař | https://cihar.com/ |
> > > > https://weblate.org/
> > > > > >
> > > > > > ---------------------------------------------------------
> > ----
> > > > ----
> > > > > > -------------
> > > > > >
> > > > > > _______________________________________________
> > > > > > Gammu-users mailing list - https://lists.sourceforge.net/li
> > sts/
> > > > list
> > > > > > info/gammu-users
> > > > > >
> > > > >
> > > > > -----------------------------------------------------------
> > ----
> > > > ----
> > > > > -----------
> > > > > _______________________________________________
> > > > > Gammu-users mailing list - https://lists.sourceforge.net/list
> > s/li
> > > > stin
> > > > > fo/gammu-users
> > > >
> > > > -------------------------------------------------------------
> > ----
> > > > -------------
> > > >
> > > > _______________________________________________
> > > > Gammu-users mailing list - https://lists.sourceforge.net/lists/
> > list
> > > > info/gammu-users
> > > >
> > >
> > > ---------------------------------------------------------------
> > ----
> > > -----------
> > > _______________________________________________
> > > Gammu-users mailing list - https://lists.sourceforge.net/lists/li
> > stin
> > > fo/gammu-users
> > 
> > -----------------------------------------------------------------
> > -------------
> > 
> > _______________________________________________
> > Gammu-users mailing list - https://lists.sourceforge.net/lists/list
> > info/gammu-users
> > 
> 
> -------------------------------------------------------------------
> -----------
> _______________________________________________
> Gammu-users mailing list - https://lists.sourceforge.net/lists/listin
> fo/gammu-users

------------------------------------------------------------------------------

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh+Zzr4P2w6DDRMjD9KoinU1YwkUFAlgsg+gACgkQ9KoinU1Y
wkUwGA//Rtq+8EZLOT6mcHKDxltVq9ycE7Nzmw5jAxFNAHRhufikYSMC5A+LvKJt
Y42snArjD6799F4lORu/+uddRikHhrUoz5aJLvscGWfF1nP85VHety4KzUSHhbSF
ykQIUVLVksUT/lbTPofn32Jlsl2IXNPwMn1E/gPsmPIi+jf1qraipjmwItahxO2s
szJMdl4Klw9yyLNO5jG6h7auc+WkSShDEIW40fjPHksYgYZFGj0wVreHXD2A+wdF
1TGfg/BuUjvjWJPbINMdPq72FFcQn8DCNWY9u2t6NxfTkI0TO832j+A5VDRC0Yf9
WuziCImKnKWBbo1YyNh5viQnbBMykVuqO59yQZf4SnJ0F7baCNKiVe1v9QGrozF/
H3iripKb/eJn0VzIvhUTutsohKv1SvW8kUvlafqf0Txo3tott5Nxo5VejmIDV0Ak
tHuH2e2LMSmGPIKB4+ej64nNF5d9+RHFxnK4qUGG0stT7CzIzQ/pZkUUiQrWN90N
M2IlS3c9Y1i0U7+M0jV0Cm7/y/eNrJ8Zadsc1qCNAY3QMnfIa3vU4wNBA/USZncW
ivGJWTzy7Ynx2Yf1dUS2/CrrfeaDYJbuYVzH99ecc/Fi7jQxYh0F9FlJhgSoO9pL
7SZUtQkJX/9EM1PZNR/LNvyL1iS4Tzp7aB7Pl9awdUaLvfxUER0=
=Dzt6
-----END PGP SIGNATURE-----