Forums

boost and dynet for web apps, cmake fails

Hi, Has anyone tried installing dynet for a PythonAnywhere web app? It requires installing boost, which I've done

cmake .. -DEIGEN3_INCLUDE_DIR=$MYHOME/eigen -DPYTHON=which python -DBOOST_ROOT=$MYHOME/boost_1_63_0/boost/ -Dboost_LIBRARY_DIRs=$MYHOME/boost_1_63_0/libs -DBoost_INCLUDE_DIR=$MYHOME/boost_1_63_0/ -DBoost_USE_ MULTI_THREADED=FALSE -DBoost_NO_BOOST_CMAKE=ON -DBoost_NO_SYSTEM_PATHS=OFF -DBoost_USE_STATIC_LIBS=OFF -DBoost_DISABLE_THREADS=TRUE -DBoost _DEBUG=ON

However, when I use cmake to build dynet, I keep getting an error, that my boost library is not found. When I debug, I see that BOOST_FOUND=1

However, there seems to be a problem with pthread:

CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'

Is it because multithreading is not allowed or because boost libraries are not found? I've tried to disable multithreading but I keep getting this error.

Thanks,

Sorry, we're not really going to be able to help with a compilation like that. The only thing I can say is that it's probably not because multithreading is not allowed, because that only applies to web apps and it's complaining about the symbol not being found, not about being unable to start a thread.