Closed arpit15 closed 3 years ago
The problem was that the libraries had lib
prefix before their names. I added the following 3 lines to the end of python/CMakeLists.txt
to resolve the issue
SET_TARGET_PROPERTIES(pytinydiffsim PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(pytinydiffsim_dual PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(pytinyopengl3 PROPERTIES PREFIX "")
I am able to run CPP examples after following the build instructions mentioned in the readme. However, I am unable to run python examples present in
python/examples
directory.Setup steps
mkdir build && cd build
cmake .. && make
export PYTHONPATH=$(pwd)/python
export LD_LIBRARY_PATH=$(pwd)/python
Usage
python python/examples/billiard_optimization.py
Error
I do see
libpytinydiffsim_dual.so libpytinydiffsim.so libpytinyopengl3.so
in thebuild/python
folder. It seems to that python is unable to load the modules.Kindly let me know if there are other steps in using python bindings.