Forum Replies Created
-
AuthorPosts
-
GuillaumeKeymaster
Hi @estefania, sorry for the VERY late answer. Do you still have this issue?
Hi @ajay, you need to install Git on your computer. See https://gitforwindows.org/
GuillaumeKeymasterAnswer moved to its own topic in the SoftRobots forum.
GuillaumeKeymasterIndeed we do not ship opengl32sw.dll
Please let us know if you still have this issue with v20.12GuillaumeKeymasterHi @jacqueline,
There is indeed a bug in SOFA, thank you for spotting it!
I opened a pull-request to fix it, it should be merged in the next days.In the meantime, you can apply the fix on your SOFA by using this patch.
Cheers,
Guillaume.GuillaumeKeymasterTo verify if Qt5WebEngine has been correctly detected and is used by runSofa:
– Check thatSOFAGUIQT_ENABLE_QDOCBROWSER
is ON in CMake-GUI
– Check that <build-dir>/include/SofaGui/sofa/gui/qt/config.h contains#define SOFAGUIQT_HAVE_QT5_CHARTS 1
and#define SOFAGUIQT_HAVE_QT5_WEBENGINE 1
– Check what is returned byotool -L <build-dir>/bin/runSofa | grep -i webengine
GuillaumeKeymasterHi,
Glad you achieved v20.06 compilation.
The 2 CMake warnings you showed are known, the first one is here to discourage users from using SofaAdvanced in their CMakeLists, the second one is an minor issue in SoftRobots.
The warning about PythonEnvironment appears because SofaPython tries by default to find a Python directory (site-packages) in the parent directory of SofaPython.so (hence your build directory). It should not prevent your from using SofaPython normally.
I can’t help you on the “orientation vectors”/coordinate system issue. Maybe @damien-marchaluniv-lille1-fr or @jnbrunet could help?
About Qt5WebEngine, it is very easy to activate if you installed Qt via their online installer as explained in our documentation.
Could you remind what the problem is?To load a .py in runSofa directly from the terminal, your script must
import Sofa
and have thecreateScene(rootNode)
function (as an entry point).
I’m far from expert in SofaPython but I would suggest as examples of Python2 scenesSofaPython/doc/SofaDays_oct2013/8_PythonScene/tuto8.py
andSofaPython/examples/houseOfCards.py
. These are pretty old scenes with deprecated behaviors but they do show how to build a simple simulation in Python2 with SofaPython.Hope that helps,
Guillaume.GuillaumeKeymasterHi,
There is indeed an issue in SOFA v19.12 with PARSE_LIBRARY_LIST (in SofaMacros.cmake).
It has been fixed in SOFA v20.06Could you try with this version of SOFA?
GuillaumeKeymasterWhen Eigen3 auto-fetch fails, you can either:
– check the error in C:/Users/Teffy/SOFA/build/external_directories/fetched/eigen3/logs.txt and fix it (or post it here to get help)
– remove completely C:/Users/Teffy/SOFA/build/external_directories/fetched/eigen3 and retry
– set SOFA_FETCH_EIGEN3=ON in CMake GUI and retryTell us if one of these 3 solutions worked for you.
4 June 2020 at 17:41 in reply to: [SOLVED] Target “Qt5::Xml” not found (cmake-gui/Win10/VS2017x64) #16536GuillaumeKeymasterHi,
Our Windows developers are indeed working in majority in 64-bit configuration.
How did CMake find the other Qt libraries? Did you set CMAKE_PREFIX_PATH as the doc suggests?
Could you show us your CMakeCache.txt?Guillaume.
GuillaumeKeymasterI can see from your tree that you did a Debug build. Thus, the resulting executable is bin/Debug/runSofa_d.exe
You say there is no binary generated, but there is (in bin/Debug). Did you expect something else?
To generate Release binaries, make sure to compile the ALL_BUILD project in Release mode. To switch mode with Visual Studio, changing the CMAKE_BUILD_TYPE CMake variable is not enough. You also must change the build configuration in Visual Studio IDE.
Hope that helps,
Guillaume.GuillaumeKeymasterGuillaumeKeymasterHi Elie,
Are you building the project RUN_TESTS on purpose?
If you want to compile SOFA without running the tests (some of them do not pass obviously), you should build the project ALL_BUILD instead.
Hope that helps,
Guillaume.GuillaumeKeymasterIs SofaGuiQt.dll present next to runSofa.exe?
If no, is there any SofaGuiQt.dll in your build directory at all?
GuillaumeKeymasterHi,
“QGLViewer: Using Qt5” and “SofaGUIQt: Using Qt5” are just log messages, not errors.
What is your issue exactly with SofaGuiQt5.dll?
GuillaumeKeymasterHi,
There is no error in your output.
“CGALPlugin: could not find image, won’t build MeshGenerationFromImage_test”
This means that CGALPlugin tried to find another plugin called “image”. The plugin “image” is present in SOFA and can be activated in CMake-GUI. It is a soft dependency though, used only by the component MeshGenerationFromImage, so it shouldn’t prevent you from building and using CGALPlugin (you just won’t have MeshGenerationFromImage).To understand how this soft dependency works, see this portion of CGALPlugin CMakeLists.
Guillaume.
GuillaumeKeymasterHi Amir,
If I understand correctly, you have 2 version of CMake installed:
– CMake 3.13 in your home with executable at/home/amir/cmake3.13/bin/cmake
– CMake 3.5.2 in your systemTo switch which CMake is used by default, you must use update-alternatives (paths may differ upon your installation):
sudo update-alternatives \ --install /home/amir/cmake3.13/bin/cmake cmake /home/amir/cmake3.13/bin/cmake 20 \ --slave /home/amir/cmake3.13/bin/ctest ctest /home/amir/cmake3.13/ctest3 \ --slave /home/amir/cmake3.13/bin/cpack cpack /home/amir/cmake3.13/cpack3 \ --slave /home/amir/cmake3.13/bin/ccmake ccmake /home/amir/cmake3.13/ccmake3 \ --family cmake
21 April 2020 at 09:45 in reply to: windows 10, gtx 970, download, install, execute, crash, wtf ? #15892GuillaumeKeymasterGuillaumeKeymasterUnfortunately your output doesn’t show any dump trace. It will not be easy to track the issue.
What was the content of all the .ini files before your edit?
GuillaumeKeymasterDataRepository is initialized with the value of SHARE_DIR and EXAMPLES_DIR taken from your-sofa-path/etc/sofa.ini
your-sofa-path/etc/sofa.ini should containSHARE_DIR=../share/sofa EXAMPLES_DIR=../share/sofa/examples
Thus, DataRepository should contain
your-sofa-path/share/sofa:your-sofa-path/share/sofa/examples
.GuiDataRepository is initialized with the value of RESOURCES_DIR taken from your-sofa-path/etc/SofaGuiQt.ini and the value of RESOURCES_DIR taken from your-sofa-path/etc/runSofa.ini
your-sofa-path/etc/SofaGuiQt.ini should contain
RESOURCES_DIR=../share/sofa/gui/qt
your-sofa-path/etc/runSofa.ini should contain
RESOURCES_DIR=../share/sofa/gui/runSofa
Thus, GuiDataRepository should contain
your-sofa-path/share/sofa/gui/runSofa:your-sofa-path/share/sofa/gui/qt
.GuillaumeKeymasterHi,
Does the problem persist if you replace the
0
withnullptr
?GuillaumeKeymasterHi,
It seems that DataRepository and GuiDataRepository are not correctly initialized.
I tried on my VM with MacOS 10.14 and it worked well (like Froy).What is your MacOS version?
GuillaumeKeymasterHi,
I just had this issue. Here is how I solved it.
1. Download and install the highest possible Xcode compatible with your MacOS.
Compatibility list (taken from Wikipedia):MacOS >= 10.15.2 : Xcode 11.4 MacOS >= 10.14.4 : Xcode 11.3.1 MacOS >= 10.14.3 : Xcode 10.3 MacOS >= 10.13.6 : Xcode 10.1 MacOS >= 10.13.2 : Xcode 9.4.1 MacOS >= 10.12.6 : Xcode 9.2 MacOS >= 10.12 : Xcode 8.3.3 MacOS >= 10.11.5 : Xcode 8.2.1 MacOS >= 10.11 : Xcode 7.3.1
To download any version, go to https://developer.apple.com/download/more/ and search “Xcode”.
2. Open Xcode to automatically finalize installation
3. In Xcode, navigate to “Xcode > Preferences > Locations” and set Command Line Tools to your Xcode version
4. Switch Command Line Tools to your Xcode install:
xcode-select --switch /Applications/Xcode.app
Verify your command:
xcode-select -p
5. Reboot
6. Erase your build directory
7. Clear ccache with
ccache -C
8. Build again
Hope that helps,
Guillaume.GuillaumeKeymasterHi Asma,
The SofaPython plugin is relying on Python 2.7 (this will change during the next 6 months with a brand new SofaPython3 plugin).
You must install Python 2.7 and choose between :
add Python 2.7 install directory to your system PATH
or
set PYTHON_LIBRARIES and PYTHON_INCLUDE_DIRS manually in CMake GUICheers,
Guillaume.GuillaumeKeymasterOk I think it’s fixed. Could you be my beta tester for this binaries please?
Thanks,
Guillaume.GuillaumeKeymasterHi Gaetan,
Indeed, this lib is missing in v19.06 🙁
I am currently working on fixing that. In the meantime, you can try to install it on your system withapt-get install libicu55
(or whatever Fedora equivalent).Please tell me if it fixes the problem.
Guillaume. -
AuthorPosts