You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning,
Due to the failed intents to use the C++ API together with other libraries, I have tried to use the Python Wrapper as I am also more profficient in this language. I have tried to compile using Pybind11 but upon importing the library, it is unable to find it.
cmake .. -G "MSYS Makefiles" -Dpybind11_DIR=[....]/anaconda3/pkgs/pybind11-global-2.10.4-py311h59b6b97_0/Library/share/cmake/pybind11 -DPYTHON_EXECUTABLE=[...]/python.exe
on the "build library".
Then in the src_py folder I perform "make install" (If I do it inside the build directory the following happens -> make: *** No rule to make target 'install'. Stop)
Built files are produces and one can find libraries in the [...]/Clothoids\lib\lib folder, and in the [...]\clothoids_py_wrapper\Clothoids\src_py folder (.dll, .dll.a, _static.a)
In the Python file I tried inserting my things to my path, but they havent worked out:
I do not understand If the problem was solved or not.
I am not an expert of Python. The interface was developed by Matteo Ragni. Now I asked a friend to help me to build a new more user fiendly interface. Be patient.
Good morning,
Due to the failed intents to use the C++ API together with other libraries, I have tried to use the Python Wrapper as I am also more profficient in this language. I have tried to compile using Pybind11 but upon importing the library, it is unable to find it.
cmake .. -G "MSYS Makefiles" -Dpybind11_DIR=[....]/anaconda3/pkgs/pybind11-global-2.10.4-py311h59b6b97_0/Library/share/cmake/pybind11 -DPYTHON_EXECUTABLE=[...]/python.exe
on the "build library".
Then in the src_py folder I perform "make install" (If I do it inside the build directory the following happens -> make: *** No rule to make target 'install'. Stop)
Built files are produces and one can find libraries in the [...]/Clothoids\lib\lib folder, and in the [...]\clothoids_py_wrapper\Clothoids\src_py folder (.dll, .dll.a, _static.a)
In the Python file I tried inserting my things to my path, but they havent worked out:
import ctypes.util
import sys,os
sys.path.insert(
0, ""[....]\clothoids_py_wrapper\Clothoids\lib\lib")
sys.path.insert(
0, ""[....]\clothoids_py_wrapper\Clothoids\src_py")
if sys.platform != 'win32':
sys.path.insert(0, os.path.normpath(os.path.join(file, "../../build")))
else:
sys.path.insert(0, os.path.normpath(
os.path.join(file, "../../build/Release")))
The text was updated successfully, but these errors were encountered: