hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.41k stars 306 forks source link

Unable to compile code using cmake #234

Closed khGao closed 1 year ago

khGao commented 1 year ago

The questions are as follows.

cmake .. -DCMAKE_BUILD_TYPE=Debug -DHMDF_BENCHMARKS=1 -DHMDF_EXAMPLES=1 -DHMDF_TESTING=1

-- The CXX compiler identification is GNU 10.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for clock_gettime -- Looking for clock_gettime - found -- Looking for C++ include pthread.h -- Looking for C++ include pthread.h - found -- Performing Test CMAKE_HAVE_LIBCPTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed_ -- Looking for pthreadcreate in pthreads **-- Looking for pthreadcreate in pthreads - not found** -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/gkh/cpp_da/DataFrame-2.0.0/build

My computer is "Linux ubuntu 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux". The version of GCC is "gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0". The version of g++ is "g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0". The version of cmake is "cmake version 3.16.3". The version if linux is "Ubuntu 20.04.4 LTS".

In the past few weeks, I have looked up a lot of information, but I can't find an answer. Can you give me a favor? Thank you !

hosseinmoein commented 1 year ago

I am not sure what you are asking. Do you fail to compile DataFrame? In any case, this may help: https://stackoverflow.com/questions/31948521/building-error-using-cmake-cannot-find-lpthreads

khGao commented 1 year ago

I am not sure what you are asking. Do you fail to compile DataFrame? In any case, this may help: https://stackoverflow.com/questions/31948521/building-error-using-cmake-cannot-find-lpthreads

I follow your instructions to use cmake to compile "CMakeLists.txt".The instructions is "cmake .. -DCMAKE_BUILD_TYPE=Debug -DHMDF_BENCHMARKS=1 -DHMDF_EXAMPLES=1 -DHMDF_TESTING=1".

But the result was disappointing. I also checked the link you shared, but it doesn't solve the problem.

I wrote a simple script to determine the problem, as shown in the chart. I cannot solve the compiling problem.

Do you have any good way to solve this problem?

problem

khGao commented 1 year ago

Hello, sir. problem2

There is a question that I forgot to mention before, now upload the screenshot of the question.

hosseinmoein commented 1 year ago
  1. The problem with fabsl is fixed in master
  2. DataFrame requires C++17 or later
  3. I don't know what the issue is with your pthread problem. I have never seen to or heard about it. It seems your development tools are not installed properly