Forum Replies Created
-
AuthorPosts
-
antonio.8196Blocked
1 Hi @Hugo, thanks for the response, I do not know where to find the SOFA 3D view, in the view option i just have QGLViewer and OpenGL, maybe i am missing one step.
2 I have my STL file already, it just just a simple cylinder, my code is just this
import Sofa import os def createScene(rootNode): rootNode.addObject('RequiredPlugin', name='SoftRobots') rootNode.addObject('RequiredPlugin', name='SofaLoader') #rootNode.addObject('RequiredPlugin', name='CGALPlugin') #rootNode.findData finger = rootNode.addChild('finger') finger.addObject('MeshSTLLoader', name='loader', filename='../data/mesh/actuador.stl') finger.addObject('MeshTopology', src='@loader', name='container') finger.addObject('MechanicalObject', name='tetras', template='Vec3d', showObject=True, showObjectScale=True)
When i do this, i just can see the borders of the top surface (the top of the cylinder) and the borders of the bottom surface (bottom of the cylinder), then when i try to do this code from the docs
node = rootNode.addChild('node') node.addObject('MeshSTLLoader', name='mesh', filename='../data/mesh/actuador.stl') node.addObject('MeshGenerationFromPolyhedron', name='gen', template='Vec3d', inputPoints='@mesh.position', inputTriangles='@mesh.triangles', drawTetras='1', cellSize='10', facetAngle='30', facetSize='4', cellRatio='2', facegApproximation='1') node.addObject('Mesh', position='@gen.outputPoints', tetrahedra='gen.outputTetras') node.addObject('VTKExporter', filename='../data/mesh/actuador.stl', edges=0, tetras=1, exportAtBegin=1)
I get an error that says
[ERROR] [SofaPython3::SceneLoader] ValueError: Object type MeshGenerationFromPolyhedron<Vec3d> was not created The object is not in the factory.
So basically, in the first code i am just trying to follow the instructions from the tutorial and i just see dotted lines on the top and bottom surface, not the cylinder itself
3 yes i am sorry, i want to measure the pressure of the actuator when it starts to move, I have seen the fingerController.py file and i can see that the pressureValue comes from the SurfacePressureConstraint object attached to the cavity, i could even print the actual value ( if the finger could be movec with ctrl and +) and see its value, right? If my assumption is right, what would it be the unit? bar, mpa? pa?
antonio.8196BlockedHI, soooo, I was doing all the tutorial, step by step and I could realize that bbox is commented, there are some issues with the tutorials so I continued digging into the folder and I saw that there were files with the SofaPython3 plugin so I decided to try those, I tried them and they were alright, everything seemed to work but the key controller, whem I press Ctrl + the gripper does not move at all and idk why, how couls i fix that? Keep in mind that I am using SofaPython3
Two more questions:
– Can I load an cylindrical STL file using the Mesh stl loader?? I tried that in another version of SOFA and i could not.
– How could I map the pressure applied to the cavity? I see that there is a pneumatic sensor but I do not understand how to use itThanks in advance,
antonio.8196BlockedHi @Hugo, thanks for the response,
Finally I just downloaded the binaries using my windows10 os but when I try to add the SofaPython3 plugin i get this error
[INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/SOFA/v20.12.03/bin/STLIB.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/SOFA/v20.12.03/bin/SoftRobots.dll Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] No python3 dir found in C:/Users/Sandoval/SOFA/v20.12.03 ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 47: sofa::helper::BackTrace::dump - 0x7ffb4e5b6f1046: sofa::helper::BackTrace::sig - 0x7ffb4e5b705c45: raise - 0x7ffbaa2516a044: abort - 0x7ffbaa25282043: terminate - 0x7ffbaa251f8042: terminate - 0x7ffbaa251f8041: UnhandledExceptionFilter - 0x7ffbaa62b6a040: memset - 0x7ffbacb73ec039: _C_specific_handler - 0x7ffbacb5c6e038: _chkstk - 0x7ffbacb7206037: RtlRaiseException - 0x7ffbacb2102036: RtlRaiseException - 0x7ffbacb2102035: RaiseException - 0x7ffbaa554b2034: CxxThrowException - 0x7ffb9a6647b033: sofapython3::PythonEnvironment::getStaticData - 0x7ffb3dc1ff4c32: sofapython3::PythonEnvironment::Init - 0x7ffb3dc1813831: initExternalModule - 0x7ffb3dc1165030: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffb4e63903429: sofa::gui::qt::SofaPluginManager::addLibrary - 0x7ffb48bcc8b028: QMetaObject::activate - 0x7ffb47a8b31027: QAbstractButton::clicked - 0x7ffb46fd97d026: QAbstractButton::click - 0x7ffb46fd960025: QAbstractButton::mouseReleaseEvent - 0x7ffb46fda4d024: QWidget::event - 0x7ffb46f2d7c023: QApplicationPrivate::notify_helper - 0x7ffb46f0832022: QApplication::notify - 0x7ffb46f0593021: QCoreApplication::notifyInternal2 - 0x7ffb47a6a8d020: QApplicationPrivate::sendMouseEvent - 0x7ffb46f097f019: QSizePolicy::QSizePolicy - 0x7ffb46f5429018: QSizePolicy::QSizePolicy - 0x7ffb46f5429017: QApplicationPrivate::notify_helper - 0x7ffb46f0832016: QApplication::notify - 0x7ffb46f0593015: QCoreApplication::notifyInternal2 - 0x7ffb47a6a8d014: QGuiApplicationPrivate::processMouseEvent - 0x7ffb47ee7f1013: QWindowSystemInterface::sendWindowSystemEvents - 0x7ffb47ed405012: QEventDispatcherWin32::processEvents - 0x7ffb47ab45e011: CallWindowProcW - 0x7ffbaac8e46010: DispatchMessageW - 0x7ffbaac8e0409: QEventDispatcherWin32::processEvents - 0x7ffb47ab45e08: qt_plugin_query_metadata - 0x7ffb3f3116e07: QEventLoop::exec - 0x7ffb47a665706: QCoreApplication::exec - 0x7ffb47a697305: sofa::gui::qt::RealGUI::mainLoop - 0x7ffb48ba490c4: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c3: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c2: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c1: BaseThreadInitThunk - 0x7ffbac1070200: RtlUserThreadStart - 0x7ffbacb22630[WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCommon] the library has not been cleaned up (sofa::simulation::common::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h)
My python dir is already in my path so i do not understand what is wrong here
antonio.8196BlockedI have already installed libopengl0
antonio.8196Blocked@jnbrunet Thanks for your help, i was following all the steps of the SofaPython3 Github page, but when i wanted to import Sofa or import SofaRunTime into python 3, there was a message that said that the modules couldn’t be imported, python3 wasn’t able to recognize it. I’m now seeing this documentation here and maybe the error was that i didn’t add to the variable PYTHONPATH the string <SOFA_build>/lib/site-packages and because of that python wasn’t recognizing Sofa. I haven’t realized that until now, either way, i kind of gave up and deleted all the files from Xubuntu (even the already compiled Sofa) and tried to just download the SofaRobot binaries from here but that hasn’t worked either. It looks like sofa doesn’t recognize my python2 even though the system shows that python 2 is my default interpreter and it looks like it’s in the path like i showed here
einklugerjaeger@einklugerjaeger-VirtualBox:~$ python Python 2.7.18 (default, Aug 4 2020, 11:16:42) [GCC 9.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
(or at least that’s what i think, i’m really an amateur with Linux, at least in Windows, when python is in my path, i cand enter the python command from the console, as i’m showing above with linux) But when i try to runSofa, these errors appear
[ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/lib/libSofaPython.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/STLIB/lib/libSTLIB.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/SoftRobots/lib/libSoftRobots.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/SoftRobots.Inverse/lib/libSoftRobots.Inverse.so): libSoftRobots.so: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins /ModelOrderReduction/lib/libModelOrderReduction.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory
The funny thing is that these are the errors that i get when in Windows10 i try to runSofa.exe without a python environment, but when i runSofa.exe within my python2.7 environment (as i’m showing in my previous answers) runSofa just crushes and it closes.
There are a lot of things going on, in summary, in Xubuntu 20.04 i have deleted my previous Sofa compiled and tried to install SofaRobot from binaries and i couldn’t. The message errors i get are the same errors i get when i try to runSofa.exe (from the binaries of SofaRobot toolkit) from Windows10 without a python2.7 environment. And when i try to runSofa.exe within an anaconda python 2.7 environment in Windows10 there are no errors, but sofa crushes at lauching and these are the messages i get
[INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaPreconditioner.dll ImportError: No module named site [WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h) ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 29: sofa::helper::BackTrace::dump - 0x7ffd014c22e028: sofa::helper::BackTrace::sig - 0x7ffd014c244027: raise - 0x7ffd348dc9a026: abort - 0x7ffd348ddb5025: purecall - 0x7ffd2281698024: sofa::helper::logging::MessageDispatcher::process - 0x7ffd0156d47023: sofa::helper::logging::MessageDispatcher::LoggerStream::~LoggerStream - 0x7ffd0156cc8022: sofa::helper::printLibraryNotCleanedUpWarning - 0x7ffd01534ed021: sofa::core::collision::Pipeline::removeInNode - 0x7ffd00a6d46020: execute_onexit_table - 0x7ffd34889bb019: execute_onexit_table - 0x7ffd34889bb018: execute_onexit_table - 0x7ffd34889bb017: sofa::core::visual::DrawToolGL::writeOverlayText - 0x7ffd00aef1c016: sofa::core::visual::DrawToolGL::writeOverlayText - 0x7ffd00aef1c015: RtlActivateActivationContextUnsafeFast - 0x7ffd36ae4f0014: LdrShutdownProcess - 0x7ffd36b2a95013: RtlExitUserProcess - 0x7ffd36b2a88012: ExitProcess - 0x7ffd366ecd8011: get_pgmptr - 0x75fd193410: Py_GetPythonHome - 0x734ecf309: Py_InitializeEx - 0x734ec4608: sofa::simulation::PythonEnvironment::Init - 0x7ffcfa9ce0907: initExternalModule - 0x7ffcfa9e1c506: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffd015612005: sofa::helper::system::PluginManager::loadPluginByName - 0x7ffd01560d204: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623303: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623302: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623301: BaseThreadInitThunk - 0x7ffd366e7bc00: RtlUserThreadStart - 0x7ffd36b2ce30
I know this is a long message and i’m sorry having so many questions but i’ve tried many ways to install SofaRobot because that’s what i need and nothing seems to workout…
antonio.8196Blocked@jnbrunet Thanks for your help
antonio.8196Blockeddear @Hugo, I’m trying to use the binaries for SofaRobot i’m using Xubuntu 20.04, and i have 3 python packages installed (as you know, python3 comes with Xubuntu already) but as you can see here
einklugerjaeger@einklugerjaeger-VirtualBox:~$ python Python 2.7.18 (default, Aug 4 2020, 11:16:42) [GCC 9.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
I have python2 as the default interpreter, when i go into my bin directory, i see python2 which is a link to python2.7 and the python2.7 file is a shared library.
As you mentioned in the post where i come from here i tried what you said to me but anyway, this error appearsPlugin loading failed (/home/einklugerjaeger/SOFA/plugins/SoftRobots/lib/libSoftRobots.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory
(i’ve done it from Sofa plug in manager) and the same occurs with the other plugins,In windows, as i mentioned, when in Windows10 i don’t use any interpreter i have the same error as i get in Xubuntu, but when i runSofa.exe within my python2.7 anaconda environment i get the message that i’m showing above
In the end, i can run it neither in Windows10 nor Xubuntu….
antonio.8196Blockedantonio.8196Blocked@jnbrunet thanks for your help but i gave up, i wasn’t able to install anything
@Hugo, I’m trying now to just install the binaries in my Windows 10, i’m using Anaconda to manage my virtual enviroments, i installed a virtual env called python27 in which python2.7 and numpy is installed, i try to runSofa.exe from this enviroment activated but Sofa never launches, this is what appears[INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaPreconditioner.dll ImportError: No module named site [WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h) ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 29: sofa::helper::BackTrace::dump - 0x7ffd014c22e028: sofa::helper::BackTrace::sig - 0x7ffd014c244027: raise - 0x7ffd348dc9a026: abort - 0x7ffd348ddb5025: purecall - 0x7ffd2281698024: sofa::helper::logging::MessageDispatcher::process - 0x7ffd0156d47023: sofa::helper::logging::MessageDispatcher::LoggerStream::~LoggerStream - 0x7ffd0156cc8022: sofa::helper::printLibraryNotCleanedUpWarning - 0x7ffd01534ed021: sofa::core::collision::Pipeline::removeInNode - 0x7ffd00a6d46020: execute_onexit_table - 0x7ffd34889bb019: execute_onexit_table - 0x7ffd34889bb018: execute_onexit_table - 0x7ffd34889bb017: sofa::core::visual::DrawToolGL::writeOverlayText - 0x7ffd00aef1c016: sofa::core::visual::DrawToolGL::writeOverlayText - 0x7ffd00aef1c015: RtlActivateActivationContextUnsafeFast - 0x7ffd36ae4f0014: LdrShutdownProcess - 0x7ffd36b2a95013: RtlExitUserProcess - 0x7ffd36b2a88012: ExitProcess - 0x7ffd366ecd8011: get_pgmptr - 0x75fd193410: Py_GetPythonHome - 0x734ecf309: Py_InitializeEx - 0x734ec4608: sofa::simulation::PythonEnvironment::Init - 0x7ffcfa9ce0907: initExternalModule - 0x7ffcfa9e1c506: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffd015612005: sofa::helper::system::PluginManager::loadPluginByName - 0x7ffd01560d204: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623303: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623302: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd015623301: BaseThreadInitThunk - 0x7ffd366e7bc00: RtlUserThreadStart - 0x7ffd36b2ce30
There’s another discussion in which i tried to use the binaries files in my Xubuntu virutalBox but there’s another problem, i’m lost and i’m really frustated, i don’t know what i’m doing wrong if it’s just the binaries files
On the other hand, When i try to runSofa without my conda envs (WINDOWS10) i get these errors
[ERROR] [PluginManager] Plugin loading failed (C:/Users/Sandoval/Downloads/SOFA/bin/SofaPython.dll): No se puede encontrar el m¾dulo especificado. [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/CImgPlugin.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaMiscCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaDistanceGrid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaImplicitField.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/Downloads/SOFA/bin/SofaAllCommonComponents.dll [ERROR] [PluginManager] Plugin loading failed (C:/Users/Sandoval/Downloads/SOFA/plugins/STLIB/bin/STLIB.dll): No se puede encontrar el m¾dulo especificado. [ERROR] [PluginManager] Plugin loading failed (C:/Users/Sandoval/Downloads/SOFA/plugins/SoftRobots/bin/SoftRobots.dll): No se puede encontrar el m¾dulo especificado. [ERROR] [PluginManager] Plugin loading failed (C:/Users/Sandoval/Downloads/SOFA/plugins/SoftRobots.Inverse/bin/SoftRobots.Inverse.dll): No se puede encontrar el m¾dulo especificado. [ERROR] [PluginManager] Plugin loading failed (C:/Users/Sandoval/Downloads/SOFA/plugins/ModelOrderReduction/bin/ModelOrderReduction.dll): No se puede encontrar el m¾dulo especificado.
I’m assuming that it’s because there’s not 2.7 python installed, either way, i can’t runSofa as i’ve already said within my python27 virtual env
antonio.8196BlockedHi @Hugo, so i just downloaded the binares of SOFA+SoftRobot but this error appears
[ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/lib/libSofaPython.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/STLIB/lib/libSTLIB.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/SoftRobots/lib/libSoftRobots.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins/SoftRobots.Inverse/lib/libSoftRobots.Inverse.so): libSoftRobots.so: cannot open shared object file: No such file or directory [ERROR] [PluginManager] Plugin loading failed (/home/einklugerjaeger/SOFA/plugins /ModelOrderReduction/lib/libModelOrderReduction.so): libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I have already installed python2.7 and numpy in my Xubuntu 20.04, what would be the problem?
antonio.8196BlockedOk, i ran cmake –install . into My-SOFA/build repository by accident and idk what happened hahaha i hope that this doesn’t mess up with installation D:
antonio.8196BlockedThanks you for the fast response @jnbrunet, as you said, i wasn’t pointing the ..src/ folder, i needed to
cmake -DPython_EXECUTABLE=/usr/local/bin/python3 ../src
and i was just doingcmake -DPython_EXECUTABLE=/usr/local/bin/python3
So i managed to do this step, next step according to the Github page is to install the python3 bindings. This is done by going into the build directory of SofaPython3 but i can’t find any build directory, neither in my ext_plugin_repo (where i have downloaded all the external plugins) nor in My-SOFA directory, (external directories or src).
Or should i create the build directory? Either way, i have created the build directory in both directories (ext_plugin_repo-outside My-SOFA folder- and in external_directory-inside My-SOFA/build) and ran the code but this appears
CMake Error: Error processing file: /home/einklugerjaeger/ext_plugin_repo/SofaPython3/build/cmake_install.cmake
in both cases.antonio.8196BlockedI managed to do the Cmake config of the SofaPython3 plugin (pybind11 wasn’t installed properly).
Sooooo…when i tried to change the python path using
cmake -DPython_EXECUTABLE=/usr/local/bin/python3 ..
orcmake -DPython_ROOT_DIR=/usr/local ..
There’s an errorMy-SOFA/build$ cmake -DPython_ROOT_DIR=/bin/ .. CMake Error: The source directory "/home/einklugerjaeger/My-SOFA" does not appear to contain CMakeLists.txt.
antonio.8196BlockedHi, a little update of my situation. I’m trying to install the SofaPython3 plugin and Cmake gives this error
SofaPython3 is compiled as a subproject to the external project 'Sofa'. CMake Error at /home/einklugerjaeger/ext_plugin_repo/SofaPython3/CMakeLists.txt:71 (find_package): Could not find a package configuration file provided by "pybind11" (requested version 2.3) with any of the following names: pybind11Config.cmake pybind11-config.cmake Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set "pybind11_DIR" to a directory containing one of the above files. If "pybind11" provides a separate development package or SDK, be sure it has been installed.
Idk what to do, I installed pybind11 using pip3 install and the directory of the file is /home/einklugerjaeger/.local/lib/python3.8/site-packages/pybind11/
Oh, and inside of this folder there’s not any pybind11Config.cmake or pybind11-config.cmake name. There are just .h files and 3 .py files
antonio.8196BlockedHi, I’m really new with SOFA and i need to install the SoftRobots plugin and i’m kind of lost, how did you do it? Did you just downloaded the binaries files? I’m sorry for not being able to help you but maybe if you helped me i could be more into the software and help you later.
antonio.8196BlockedHi, I was able to install correctly CMAke but now when I try to do the CMake configuration i get this error
Configuring incomplete, errors occurred! See also "/home/klugerjaeger/My-SOFA/build/CMakeFiles/CMakeOutput.log". See also "/home/klugerjaeger/My-SOFA/build/CMakeFiles/CMakeError.log".
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/klugerjaeger/My-SOFA/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_6de9b && [1/2] Building C object CMakeFiles/cmTC_6de9b.dir/src.c.o [2/2] Linking C executable cmTC_6de9b FAILED: cmTC_6de9b : && /usr/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_6de9b.dir/src.c.o -o cmTC_6de9b && : CMakeFiles/cmTC_6de9b.dir/src.c.o: In function main': src.c:(.text+0x3e): undefined reference to pthread_create' src.c:(.text+0x4a): undefined reference to pthread_detach' src.c:(.text+0x56): undefined reference to pthread_cancel' src.c:(.text+0x67): undefined reference to pthread_join' src.c:(.text+0x7b): undefined reference to pthread_atfork' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Source file was:
#include <pthread.h> void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; }
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/klugerjaeger/My-SOFA/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_58820 && [1/2] Building C object CMakeFiles/cmTC_58820.dir/src.c.o [2/2] Linking C executable cmTC_58820 FAILED: cmTC_58820 : && /usr/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_58820.dir/src.c.o -o cmTC_58820 && : CMakeFiles/cmTC_58820.dir/src.c.o: In function main': src.c:(.text+0x3e): undefined reference to pthread_create' src.c:(.text+0x4a): undefined reference to pthread_detach' src.c:(.text+0x56): undefined reference to pthread_cancel' src.c:(.text+0x67): undefined reference to pthread_join' src.c:(.text+0x7b): undefined reference to pthread_atfork' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Source file was:
#include <pthread.h> void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; }
This is the CMakeError.log
and this is the CMakeOutput.log
The system is: Linux - 4.15.0-112-generic - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/gcc Build flags: Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/home/klugerjaeger/My-SOFA/build/CMakeFiles/3.18.2/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/g++ Build flags: Id flags: The output was: 0
-
AuthorPosts