ELSED icon indicating copy to clipboard operation
ELSED copied to clipboard

Install issues on MacOS

Open ogencoglu opened this issue 2 years ago • 6 comments

I'm hitting the

        File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
      [end of output]

error on Mac (in python virtual env to be specific).

Both cmake --version at command line and import cmake in python works: cmake version 3.27.0

Do you have any tips for adjusting the setup.py for Mac?

ogencoglu avatar Jul 30 '23 20:07 ogencoglu

Hii, thanks for your interest and sorry for late reply, I was on vacation.

I have never tried it on Mac, but it should work in theory. The error seems to be that something is wrong during the compilation of the C++ part. Could you try to compile only the C++ part using cmake. The instructions are the following (tested on ubuntu):

mkdir build && cd build
cmake .. && make
./elsed_main

This will probably throw a new error. Please paste it here.

iago-suarez avatar Aug 25 '23 11:08 iago-suarez

Thanks for your reply.

Running cmake .. && make result in:

CMake Error at CMakeLists.txt:25 (add_subdirectory):
  The source directory

    /mydir/ELSED/ELSED-main/pybind11

  does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:26 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".

pybind is indeed an empty directory. I am not sure why pybind would be needed for C++ part. Any ideas?

ogencoglu avatar Aug 26 '23 21:08 ogencoglu

You can solve it with:git submodule update --init --recursive.Pybind11 is not necessary for the native C++ part, but it is imported in the CMakeLists.txt file.Best,Iago.Sent from Android deviceEl 26 ago 2023 23:19, Oguzhan Gencoglu @.***> escribió: Thanks for your reply. Running cmake .. && make result in: CMake Error at CMakeLists.txt:25 (add_subdirectory): The source directory

/mydir/ELSED/ELSED-main/pybind11

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:26 (pybind11_add_module): Unknown CMake command "pybind11_add_module".

pybind is indeed an empty directory. I am not sure why pybind would be needed for C++ part. Any ideas?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

iago-suarez avatar Aug 27 '23 15:08 iago-suarez

I have a similar issue when trying to install in Amazon's DeepLearning AMI (Ubuntu). The original error when running cmake, i.e.

Unknown CMake command "pybind11_add_module"

is indeed resolved by

git submodule update --init --recursive pybind11

However, after successfully running cmake and trying make I get

undefined reference to `std::condition_variable::wait(std::unique_lock::mutex>&)@GLIBCXX_3.4.30'

Looks like a C++ compiler-version error, any ideas how to fix it?

fidel-schaposnik avatar Sep 21 '23 10:09 fidel-schaposnik

same error on mac here. however, it works fine in my ubuntu env.

cvtower avatar Oct 07 '23 08:10 cvtower

Hi,

It is a bit of a hard problem to reproduce for me. I have found this solution in StackOverflow, can some of you try to force the standard library to be ibstdc++.

You can do it by running:

mkdir build && cd build
LDFLAGS="-stdlib=libstdc++" cmake .. && make
./elsed_main

I hope this helps :)

iago-suarez avatar Oct 08 '23 19:10 iago-suarez