Latest Posts

Topic: CMake Error

CrisiusXIII
Avatar
Joined: 2020-09-01, 07:18
Posts: 18
Ranking
Pry about Widelands
Posted at: 2020-11-30, 19:47

Hello,
Today i get an error while updating, is this my system ??? debian10
edit: my last working build=1.0~git25071

~~~~
-- Using CMake version 3.13.4
-- Building with XDG support
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- unit_test_framework
-- system
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.13/Modules/FindCURL.cmake:74 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:136 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/chris/widelands/build/CMakeFiles/CMakeOutput.log".
See also "/home/chris/widelands/build/CMakeFiles/CMakeError.log".
~~~~

LOGFILE
~~~~
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/chris/widelands/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_4c2ec"
Building C object CMakeFiles/cmTC_4c2ec.dir/CheckSymbolExists.c.o
Linking C executable cmTC_4c2ec
FAILED: cmTC_4c2ec
: && /usr/bin/cc CMakeFiles/cmTC_4c2ec.dir/CheckSymbolExists.c.o -o cmTC_4c2ec && :
/usr/bin/ld: CMakeFiles/cmTC_4c2ec.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

File /home/chris/widelands/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create));
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/chris/widelands/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_ab9d4"
Building C object CMakeFiles/cmTC_ab9d4.dir/CheckFunctionExists.c.o
Linking C executable cmTC_ab9d4
FAILED: cmTC_ab9d4
: && /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_ab9d4.dir/CheckFunctionExists.c.o -o cmTC_ab9d4 -lpthreads && :
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
~~~~

Edited: 2020-11-30, 19:53

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2023
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-11-30, 20:16

Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)

libcurl or curl is a dependency now. You have to install the package with your package manager.


Top Quote
CrisiusXIII
Avatar
Joined: 2020-09-01, 07:18
Posts: 18
Ranking
Pry about Widelands
Posted at: 2020-11-30, 20:35

> *kaputtnik wrote:*
>
> > Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
>
> `libcurl` or `curl` is a dependency now. You have to install the package with your package manager.

Thanks for pointing out that error message. I did not think about a depency and did read all errors, aperently.
But,
curl is installed ,7.64.0-4+deb10u1 , and has no dev.
libcurl3-gnutls without any dev and libcurl4 , both 7.64.0-4+deb10u1
are installed aswell from which libcurl4 has 3 specialisted devs available
libcurl4-gnutls-dev
libcurl4-nss-dev
libcurl4-openssl-dev

further there is NOT installed
libcurl-ocaml
libcurl-ocaml-dev

do you have any suggestions which dev i need?

Edited: 2020-11-30, 20:36

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 1684
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2020-11-30, 21:09

Did you check where your curl.h file is located and if it can be found at all?


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2023
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-12-01, 08:04

I would go for libcurl4-openssl-dev.


Top Quote
CrisiusXIII
Avatar
Joined: 2020-09-01, 07:18
Posts: 18
Ranking
Pry about Widelands
Posted at: 2020-12-10, 05:16

kaputtnik wrote:

I would go for libcurl4-openssl-dev.

That worked i could update and open & play the last game cheers


Top Quote