-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling error on Mac OS #3
Comments
Hi, What happens if you type "python3 -m pybind11 --includes" ? |
Hi novatig: (python3) my-mbp:makefiles my$ python3 -m pybind11 --include and it is now can find the pybind11.h as I use "python -m pip install pybind11" 2 warnings generated. |
I see. |
Hi, Novatig (python3) weis-mbp:build my$ /Applications/CMake.app/Contents/bin/cmake ../
does not contain a CMakeLists.txt file. |
It should: did you |
I used latter. you are right, I can now compile with former. elif (STDC_VERSION >= 201112L)
4 warnings generated. mpic++ -o cart-pole cart-pole.o -L/Users/my/software/ML/smarties//lib -lsmarties |
Are you on OS X Mojave (Homebrew/homebrew-core#52461)? |
@novtig thanks |
Hi, I'm very busy at the time and I won't stop being busy till the fall (I'm defending my PhD thesis in August). |
Sorry for troubling. I am trying to shift to ubuntu. still error arises like :
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/libmpich.so Run Build Command:"/usr/bin/make" "cmTC_0fad3/fast" File /Users/weizhang/software/ubuntu/smarties/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: int main(int argc, char** argv) Determining if the function pthread_create exists in the pthreads failed with the following output: Run Build Command:"/usr/bin/make" "cmTC_8cb33/fast" would you please help when you have time |
This is not an issue with smarties. As always, just look at the first error and ask your best friend: |
Hi Novatig: Wei |
Hi, sorry for the wait. However, please open a new ticket and close this one if your doubts are unrelated to compilation. |
Hi
I followed the instruction of the installation by install pyblinder11 first.
but during compiling, still get error message like :
-fPIC -c ../source/smarties_pybind11.cpp -o smarties_pybind11.o
../source/smarties_pybind11.cpp:10:10: fatal error: 'pybind11/pybind11.h' file not found
#include <pybind11/pybind11.h>
then I use python -m pip install pybind11 to install pybind11 as suggested here . I got the following error message during link
mkdir -p ../lib
mkdir -p ../lib
mpic++ -shared -fPIC -L/usr/local/Cellar/libomp/10.0.0/lib -fopenmp=libomp -o ../lib/libsmarties.so PPO.o MixedPG.o NAF.o DPG.o DQN.o ACER.o RACER.o CMALearner.o Learner_pytorch.o Learner_approximator.o AlgoFactory.o Episode.o Learner.o Sampling.o Collector.o Math_tests.o MemoryBuffer.o DataCoordinator.o MemoryProcessing.o Builder.o Network.o Optimizer.o CMA_Optimizer.o StatsTracker.o Communicator.o Approximator.o Launcher.o Settings.o Profiler.o Master.o Worker.o StateAction.o Engine.o Warnings.o smarties_extern.o -L/usr/local/opt/openblas/lib/ -lopenblas
mpic++ -shared -L/usr/local/Cellar/libomp/10.0.0/lib -fopenmp=libomp -Wl,-undefined,dynamic_lookup -o ../lib/smarties.cpython-37m-darwin.so PPO.o MixedPG.o NAF.o DPG.o DQN.o ACER.o RACER.o CMALearner.o Learner_pytorch.o Learner_approximator.o AlgoFactory.o Episode.o Learner.o Sampling.o Collector.o Math_tests.o MemoryBuffer.o DataCoordinator.o MemoryProcessing.o Builder.o Network.o Optimizer.o CMA_Optimizer.o StatsTracker.o Communicator.o Approximator.o Launcher.o Settings.o Profiler.o Master.o Worker.o StateAction.o Engine.o Warnings.o smarties_extern.o smarties_pybind11.o -L/usr/local/opt/openblas/lib/ -lopenblas
ld: unknown option: -platform_version
ld: unknown option: -platform_version
clang-10clang-10: : error: error: linker command failed with exit code 1 (use -v to see invocation)
linker command failed with exit code 1 (use -v to see invocation)
make: *** [py11] Error 1
make: *** Waiting for unfinished jobs....
make: *** [lib] Error 1
Thanks !
The text was updated successfully, but these errors were encountered: