Discussion:
configure gives error about CMake
Mübin İçyer
2016-11-15 22:39:12 UTC
Permalink
Hello,
I have downloaded the latest source code and want to compile myself.
If I type ./configure, I get following error:

Wrapper script for configuring CMake for Gammu.
This provides limited compatibility with configure, if you want full
configuration control, use directly CMake. More information about CMake
is available at <http://www.cmake.org>.
CMake Error at CMakeLists.txt:48 (add_coverage):
Unknown CMake command "add_coverage".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!


What is the problem and how can I solve it?

Thanks.
Michal Čihař
2016-11-16 09:23:56 UTC
Permalink
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile myself.
How did you invoke configure? It seems you're not using toplevel
CMakeLists.txt.
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Mübin İçyer
2016-11-16 09:40:58 UTC
Permalink
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.
Post by Michal Čihař
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile myself.
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/
lists/listinfo/gammu-users
Michal Čihař
2016-11-16 09:47:33 UTC
Permalink
Hi

In which directory did you run the configure command?
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
I just followed the instruction in documentation.
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.
Post by Mübin İçyer
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile
myself.
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/lists/list
info/gammu-users
-------------------------------------------------------------------
-----------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listin
fo/gammu-users
Mübin İçyer
2016-11-16 10:09:08 UTC
Permalink
Hi,
Of course in the source code directory : ~Projects/sms/gammu-1.37.91/
Post by Michal Čihař
Hi
In which directory did you run the configure command?
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
I just followed the instruction in documentation.
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.
Post by Mübin İçyer
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile
myself.
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/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
Michal Čihař
2016-11-16 12:42:39 UTC
Permalink
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/
Post by Mübin İçyer
Hi,
Of course in the source code directory : ~Projects/sms/gammu-1.37.91/
Post by Michal Čihař
Hi
In which directory did you run the configure command?
--
        Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
I just followed the instruction in documentation.
sudo apt-get install cmake python-dev pkg-config libmysqlclient-
dev
Post by Mübin İçyer
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.
Post by Mübin İçyer
Post by Mübin İçyer
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile
myself.
How did you invoke configure? It seems you're not using
toplevel
Post by Mübin İçyer
Post by Mübin İçyer
CMakeLists.txt.
--
        Michal Čihař | https://cihar.com/ |
https://weblate.org/
Post by Mübin İçyer
Post by Mübin İçyer
-------------------------------------------------------------
----
Post by Mübin İçyer
Post by Mübin İçyer
-------------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/
list
Post by Mübin İçyer
Post by Mübin İçyer
info/gammu-users
---------------------------------------------------------------
----
Post by Mübin İçyer
-----------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/li
stin
Post by Mübin İçyer
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
Mübin İçyer
2016-11-16 15:46:32 UTC
Permalink
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.
Post by Michal Čihař
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
https://wammu.eu/docs/manual/project/install.html#using-cmake
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
Of course in the source code directory : ~Projects/sms/gammu-1.37.91/
Post by Michal Čihař
Hi
In which directory did you run the configure command?
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
I just followed the instruction in documentation.
sudo apt-get install cmake python-dev pkg-config libmysqlclient-
dev
Post by Mübin İçyer
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.
Post by Mübin İçyer
Post by Mübin İçyer
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to compile
myself.
How did you invoke configure? It seems you're not using
toplevel
Post by Mübin İçyer
Post by Mübin İçyer
CMakeLists.txt.
--
Michal Čihař | https://cihar.com/ |
https://weblate.org/
Post by Mübin İçyer
Post by Mübin İçyer
-------------------------------------------------------------
----
Post by Mübin İçyer
Post by Mübin İçyer
-------------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/
list
Post by Mübin İçyer
Post by Mübin İçyer
info/gammu-users
---------------------------------------------------------------
----
Post by Mübin İçyer
-----------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/li
stin
Post by Mübin İçyer
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
Michal Čihař
2016-11-16 16:06:00 UTC
Permalink
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/
Post by Mübin İçyer
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.
Post by Michal Čihař
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
https://wammu.eu/docs/manual/project/install.html#using-cmake
--
        Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by Mübin İçyer
Hi,
Of course in the source code directory : ~Projects/sms/gammu-
1.37.91/
Post by Mübin İçyer
Post by Michal Čihař
Hi
In which directory did you run the configure command?
--
        Michal Čihař | https://cihar.com/ | https://weblate.org
/
Post by Mübin İçyer
Post by Michal Čihař
Post by Mübin İçyer
Hi,
I just followed the instruction in documentation.
sudo apt-get install cmake python-dev pkg-config
libmysqlclient-
Post by Mübin İçyer
Post by Michal Čihař
dev
Post by Mübin İçyer
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
Post by Mübin İçyer
Post by Michal Čihař
Pi.
Post by Mübin İçyer
Post by Mübin İçyer
Hi
Post by Mübin İçyer
Hello,
I have downloaded the latest source code and want to
compile
Post by Mübin İçyer
Post by Michal Čihař
Post by Mübin İçyer
Post by Mübin İçyer
myself.
How did you invoke configure? It seems you're not using
toplevel
Post by Mübin İçyer
Post by Mübin İçyer
CMakeLists.txt.
--
        Michal Čihař | https://cihar.com/ |
https://weblate.org/
Post by Mübin İçyer
Post by Mübin İçyer
---------------------------------------------------------
----
Post by Mübin İçyer
Post by Michal Čihař
----
Post by Mübin İçyer
Post by Mübin İçyer
-------------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/li
sts/
Post by Mübin İçyer
Post by Michal Čihař
list
Post by Mübin İçyer
Post by Mübin İçyer
info/gammu-users
-----------------------------------------------------------
----
Post by Mübin İçyer
Post by Michal Čihař
----
Post by Mübin İçyer
-----------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/list
s/li
Post by Mübin İçyer
Post by Michal Čihař
stin
Post by Mübin İçyer
fo/gammu-users
-------------------------------------------------------------
----
Post by Mübin İçyer
Post by Michal Čihař
-------------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/
list
Post by Mübin İçyer
Post by Michal Čihař
info/gammu-users
---------------------------------------------------------------
----
Post by Mübin İçyer
-----------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/li
stin
Post by Mübin İçyer
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
Loading...