FAQ
From SOFAWiki
Contents |
libsofaguiglut.so.1: cannot open shared object file: No such file or directory
On linux, your command interpreter needs to know where to find the dynamic libraries. : LD_LIBRARY_PATH=lib/linux bin/runSofa-latest You can also set the LD_LIBRARY_PATH in your ~/.bashrc configuration file.
What are .inl files and why should I use them on the first place ?
Often the question is asked about what the inl files are, and what they are useful for
If you have no experience at all in template programming, I suggest you take a look at the "Useful link" section, where you can find good introductions to that area.
Historically .inl files are used to implement the definition of inline functions, so that to keep a "clean" .h with only declarations. In the same way, for template classes, the .inl
files contains the definitions of the member functions of the class. The .cpp file is used to specify some instanciations of the template class, with sensible template parameter types.
Here is an example :
in the .h header file
template< typename MyType > class MyTemplateClass { void SomeMethod(); };
in the .inl header file resides definitions for the class member functions.
#include "MyTemplateClass.h" template< typename MyType> void MyTemplateClass<MyType>::SomeMethod() { /* some stuff happens. */ }
the .cpp provides some instanciations of the class, with sensible template parameters.
/* at this point the compiler needs to "see" both the declarations and definitions of MyTemplateClass members in order to generate the code for specific template parameters, therefore we include the .inl file */ #include "MyTemplateClass.inl" template class MyTemplateClass<char>; template class MyTemplateClass<unsigned int>; template class MytemplateClass<int>;
Useful links
[ http://www.parashift.com/c++-faq-lite/templates.html ] About template programming in c++ and how to use it
[ http://www.parashift.com/c++-faq-lite/index.html ] More generally the C++ faq lite is a useful source of information.
undefined symbol FcFreeTypeQueryFace
Compiling Sofa if you get this error, you should check that the version of the fontconfig library installed in your system is >= 2.4.2.
