SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
+SET(CMAKE_SHARED_LINKER_FLAGS "${SMAKE_SHARED_LINKER_FLAGS} -Wl,-E")
+
INCLUDE(Common)
INCLUDE(FindQt)
INCLUDE(FindBoost)
Events_Error::send(errorMsg);
}
#else
- void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY );
+ void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY | RTLD_GLOBAL );
if ( !aModLib ) {
std::cerr << "Failed to load " << aFileName.c_str() << std::endl;
}
)
ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS ${BOOST_DEFINITIONS})
-ADD_LIBRARY(SketchPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
+ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS})
TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI)
INCLUDE_DIRECTORIES(
{
public:
/// \brief Returns the kind of a feature
- SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
+ SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
{static std::string MY_KIND = "SketchConstraint"; return MY_KIND;}
/// \brief Returns to which group in the document must be added feature
- SKETCHPLUGIN_EXPORT virtual const std::string& getGroup()
+ SKETCHPLUGIN_EXPORT virtual const std::string& getGroup()
{static std::string MY_GROUP = "Sketch"; return MY_GROUP;}
/** \brief Adds sub-feature of the higher level feature (sub-element of the sketch)
SKETCHPLUGIN_EXPORT virtual const void addSub(
const boost::shared_ptr<ModelAPI_Feature>& theFeature) {}
+protected:
/// \brief Use plugin manager for features creation
SketchPlugin_Constraint() {}
};
/** \class SketchPlugin_ConstraintCoincidence
* \ingroup DataModel
- * \brief Feature for creation of a new constraint which defines equvalence of two points
+ * \brief Feature for creation of a new constraint which defines equivalence of two points
*
* These constraint has two attributes: CONSTRAINT_ATTR_POINT_A and CONSTRAINT_ATTR_POINT_B
*/
SET(PROJECT_LIBRARIES
${SLVS_LIBRARIES}
- SketchPlugin
Events
)
ADD_DEFINITIONS(-DSKETCHSOLVER_EXPORTS ${BOOST_DEFINITIONS})
-ADD_LIBRARY(SketchSolver SHARED
+ADD_LIBRARY(SketchSolver MODULE
${PROJECT_SOURCES}
${PROJECT_HEADERS}
)
}
}
#else
- void* modLib = dlopen( libName.toLatin1(), RTLD_LAZY );
+ void* modLib = dlopen( libName.toLatin1(), RTLD_LAZY | RTLD_GLOBAL );
if ( !modLib ) {
err = QString( "Can not load library %1. %2" ).arg( libName ).arg( dlerror() );
} else {