ELSED
ELSED copied to clipboard
Install issues on MacOS
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?
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.
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?
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: @.***>
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?
same error on mac here. however, it works fine in my ubuntu env.
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 :)