Forum Replies Created
-
AuthorPosts
-
GuillaumeKeymaster
Hi Philippe,
Thanks for your report.
I will add the “add Qt and Boost to your PATH” instruction in the documentation.What is the Qt version you’re using ?
So I guess the Qt version youβre using and the qt version youβre linking on the website are different.
What do you mean ?
Cheers,
Guillaume.GuillaumeKeymasterHi Alex,
Yes, SOFA can deal with .obj and .stl files but you can’t open them directly in runSofa.
To play with .obj files, you have to import them within a scene (.scn or .xml) and then open the scene with runSofa.
To import your .obj in a scene, you have to use the adequate Loader component. Have a look at this page of the documentation and theshare/sofa/examples/Components/loader
examples in your SOFA folder.Hope this helps,
Guillaume.GuillaumeKeymasterHi Alex,
I confirm this problem.
Here is the fix you propose, correct me if I’m wrong.void XMLPrintVisitor::processNodeBottomUp(simulation::Node* node) { /* for (simulation::Node::ObjectIterator it = node->object.begin(); it != node->object.end(); ++it) { sofa::core::objectmodel::BaseObject* obj = it->get(); if ( obj->toBaseInteractionForceField() == NULL && obj->toBaseInteractionConstraint() == NULL && obj->toBaseInteractionProjectiveConstraintSet() == NULL && obj->toBaseLMConstraint() == NULL ) this->processObject(obj); } */ --level; for (int i=0; i<level; i++) m_out << "\t"; m_out << "</Node>"<<std::endl; }
The lines commented were added by old commit #340cf88f with comment “CHANGE XMLPrintVisitor to put interaction classes after children nodes. Also reactivate full DataTypes tests in PairInteractionForceField::canCreate as a consequence.”.
I don’t know if this is still relevant.Regards,
Guillaume.4 April 2016 at 15:09 in reply to: [SOLVED] Errors occurred in building with VS2012 on Win 7 64bit #6513GuillaumeKeymasterHi Wong,
This topic may help: https://www.sofa-framework.org/community/forum/topic/building-errors-of-v15-12-on-vs2012-win7-64bits
For the qdatetime.h problem, I fixed it by replacing
return std::numeric_limits<qint64>::min();
withreturn (std::numeric_limits<qint64>::min)();
Hope this helps,
Guillaume.GuillaumeKeymasterHi Weng,
I used qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1 instead of qt-opensource-windows-x86-msvc2012_64-5.2.1.exe and it went well.
I just fixed the documentation about this π
Hope this helps,
Guillaume.4 April 2016 at 14:14 in reply to: [SOLVED] I am confused on the dependencies when compiling Sofa On WIN10. vs2015 #6507GuillaumeKeymasterHi all,
Thank you for this fix, I just added it in the documentation π
Cheers,
Guillaume.1 April 2016 at 13:28 in reply to: [SOLVED] Linker Errors while compiling v15.12 in VS 2015 on Windows 8.1 #6419GuillaumeKeymasterHi Michael,
Thank you for working with SOFA !
In CMake-GUI:
– ChangeBoost_THREAD_LIBRARY_DEBUG
value toE:/boost_1_60_0/lib32-msvc-14.0/boost_thread-vc140-mt-gd-1_60.lib
– ChangeBoost_THREAD_LIBRARY_RELEASE
value toE:/boost_1_60_0/lib32-msvc-14.0/boost_thread-vc140-mt-1_60.lib
I corrected this error in the documentation π
Hope this helps,
GuillaumeGuillaumeKeymasterThanks for your help here @tuanthienbk π
Any progress on your side @Korcan ?
Do not hesitate to submit some patches if you fixed stuff in Sensable plugin, it would be highly appreciated !Cheers,
Guillaume.29 March 2016 at 13:59 in reply to: [SOLVED] I am confused on the dependencies when compiling Sofa On WIN10. vs2015 #6390GuillaumeKeymasterHi cyril,
Did you follow step by step our documentation about how to build on Windows ?
Could you explain precisely what you did to obtain these errors ?
Concerning the Windows binaries, I think Hugo explained very well what you have to do to run them.
If the program is just flashing, you should try to run it in the command. To do this, go in the SOFA folder containing runSofa.exe, then click on File > Open command prompt. In the command prompt, simply typerunSofa.exe
and press Enter.If something goes wrong, you should see some logs in the prompt π
Hope this helps,
Guillaume.GuillaumeKeymasterHi guys,
Sorry for the very late reply.
Indeed, v15.12 version of SofaCuda plugin does not compile on Windows.However, this problem has already been fixed in the master branch by commits #eee8ff and #b7ee04.
Feel free to cherry-pick them πI will propose to integrate these fixes to v15.12.
Cheers,
Guillaume.GuillaumeKeymasterHi Ash,
Since Hugo provided an accurate answer and Alex confirmed, I mark this topic as Solved.
Feel free to write back if it is not.Cheers,
GuillaumeGuillaumeKeymasterHi minmin,
I just deleted your duplicated topic. Please don’t do this.
qtSofa project seems pretty old and not maintained anymore. I had the same problems trying to build it so it’s not only you.
First, to be able to Configure/Generate with CMake, you have to activate
PLUGIN_SOFASIMPLEGUI
.Then, to be able to compile, you will need to edit the
CMakeLists.txt
file. You can get some examples in Modeler and runSofa projects.Hope this helps,
Let us know your steps !Cheers,
Guillaume.GuillaumeKeymasterOk let’s try to reproduce this.
What are you executing exactly: which scene, which plugins ?
@korcan: which demos ? Do you have any progress in solving this ?Cheers,
Guillaume.GuillaumeKeymasterHi @sergioteovit,
I edited your post to fix the highlighting problem π
Since I am using the pretty same configuration here and not facing this problem, it may come from your Boost installation. Personnally, I installed Boost 1.59.0 from the prebuilt binaries.
Could you tell us how you installed Boost ?
Did you use a prebuilt binary or compile everything yourself ?Regards,
Guillaume.GuillaumeKeymasterI just installed Open Haptics SDK 3.4.0 to help in this topic but since I am not programming with Haptics I just tested building Sensable plugin.
If parentRoot is NULL, is is apparently not a GNode (that’s weird).
Are you working with DAGNode ?Here is a more generic way to do the omniVisu Node creation :
parent = dynamic_cast<simulation::Node*>(this->getContext()); //sofa::simulation::tree::GNode *parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(this->getContext()); sofa::simulation::Node *parentRoot = parent; //if (parentRoot->getFirstParent()) // parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(parentRoot->getFirstParent()); if (parentRoot && parentRoot->getFirstParent()) parentRoot = dynamic_cast<sofa::simulation::Node*>(parentRoot->getFirstParent()); nodePrincipal= parentRoot->createChild("omniVisu "+deviceName.getValue());
GuillaumeKeymasterHi min,
First, please edit your post and change the title for something more relevant.
Q1. runSofa IS using Qt for GUI and visualization. A non-GUI runSofa which does not need Qt can be built if CMake does not find Qt on your computer (explicit messages would appear) or if you choose it by disabling SOFAGUI_QT and SOFAGUI_QTVIEWER in CMake.
Q2. Please provide some error message for your runSofa execution problem.
Cheers,
Guillaume.GuillaumeKeymasterHi Korcan,
Glad you found some track in NewOmniDriver topic by yourself.
About your new error, what is the error exactly ?
Did you check the return value of the dynamic_cast ?parent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 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ if (parentRoot->getFirstParent()) parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(parentRoot->getFirstParent());
and it went well π
Cheers,
Guillaume.GuillaumeKeymasterHi Nguyen,
I just removed your reply from the topic grasping tool and created a topic for you.
Please create your own topic to ask a new question.Regards,
Guillaume.GuillaumeKeymasterHi min,
Quick fix :
1. Create aplugins
folder into thebin
folder of your SOFA build.
2. Copy pasteC:\Qt\5.5.1\5.5\msvc2013_64\plugins\platforms
folder into theplugins
folder you just created.I will investigate more about this problem.
Regards,
GuillaumeGuillaumeKeymasterHi min,
Are you trying to build in the same directory as the source one ? It is recommended to create a build/ directory outside of SOFA sources.
Did you follow the documentation page Build on Windows ?
Regards,
Guillaume.22 February 2016 at 08:56 in reply to: [SOLVED] Unable to link Qt5 dlls: could not find Qt plugin platform "windows" #5859GuillaumeKeymasterHi Michel,
Very glad you succeeded ! π
About the red in the dashboard: maintaining a working code on all platforms is an harassing work … that’s the reason why we strongly advise to use stable versions of SOFA (latest is 15.12).
About Csparse and Metis: that’s totally normal.
About your Eigen errors: what was your exact setup (Windows version, Visual Studio version, SOFA version, build type, …) ? That’s the first time we hear about these errors, I’d like to try to reproduce them.
Regards,
Guillaume.16 February 2016 at 13:55 in reply to: [SOLVED] Unable to link Qt5 dlls: could not find Qt plugin platform "windows" #5699GuillaumeKeymasterLet’s clarify things up !
0. You install Visual Studio, Qt5 and CMake on your computer.
1. You download SOFA 15.12 sources withgit clone -b v15.12 git://scm.gforge.inria.fr/sofa/sofa.git
.
2. You put the Windows dependencies in your new SOFA directory (it adds lib/ includes/ and licences/ folders to your SOFA sources).
3. You configure/generate SOFA in 32bit-Release with CMake-GUI.
4. You compile SOFA.
5. You put the dependencies for Win32 binaries in the bin/ folder of your new SOFA build directory.There is no need to compile qt-everywhere-opensource at all.
Please tell me if every step is OK for you.
Regards,
Guillaume.GuillaumeKeymasterDear Michel,
That’s a fact, SOFA Documentation is not up to date. With the recent creation of SOFA Consortium, a better documentation is among the top priority task we have … as are the better website, better community support and better framework tasks.
So don’t worry, we are aware of this problem and very councerned about it.
A funny thing is that we actually plan to work on the documentation this week, starting with the “Main Principles” and “Getting Started” sections.
If you would like speed it up and help us, for exemple by listing what need to be updated for some pages, you are very welcome π
So far, your suggestions about Qt versions and Boost dependencies are duely noted.Thanks ! π
Guillaume.15 February 2016 at 10:05 in reply to: [SOLVED] Unable to link Qt5 dlls: could not find Qt plugin platform "windows" #5675GuillaumeKeymasterSorry but I’m not sure I understood well your problem.
Did the
could not find Qt plugin platform βwindowsβ
error appear on building time or on executing time ?My related problem was happening on executing time so the bin/ solution may be innapropriate π
Regards,
Guillaume. -
AuthorPosts