mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
Use the ABI-compatible library (hopefully).
This commit is contained in:
parent
0547fa61b4
commit
cc6b663ea6
2 changed files with 3 additions and 2 deletions
|
@ -161,7 +161,7 @@ if (VISAGE_FOUND AND NOT DISABLE_VISAGE)
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment -isystem ${VISAGE_INCLUDE_DIRS}")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment -isystem ${VISAGE_INCLUDE_DIRS}")
|
||||||
find_library(AVFoundation AVFoundation)
|
find_library(AVFoundation AVFoundation)
|
||||||
find_library(CoreMedia CoreMedia)
|
find_library(CoreMedia CoreMedia)
|
||||||
find_library(NEW_STD_LIBRARY libc++.dylib /usr/lib/)
|
find_library(NEW_STD_LIBRARY libc++abi.dylib /usr/lib/)
|
||||||
target_link_libraries(${TARGET_NAME} ${AVFoundation} ${CoreMedia} ${NEW_STD_LIBRARY})
|
target_link_libraries(${TARGET_NAME} ${AVFoundation} ${CoreMedia} ${NEW_STD_LIBRARY})
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
target_link_libraries(${TARGET_NAME} ${VISAGE_LIBRARIES})
|
target_link_libraries(${TARGET_NAME} ${VISAGE_LIBRARIES})
|
||||||
|
|
|
@ -27,7 +27,7 @@ using namespace VisageSDK;
|
||||||
Visage::Visage() {
|
Visage::Visage() {
|
||||||
#ifdef HAVE_VISAGE
|
#ifdef HAVE_VISAGE
|
||||||
switchToResourcesParentIfRequired();
|
switchToResourcesParentIfRequired();
|
||||||
initializeLicenseManager("resources/visage");
|
initializeLicenseManager("resources/visage/license.vlc");
|
||||||
_tracker = new VisageTracker2("resources/visage/Facial Features Tracker - Asymmetric.cfg");
|
_tracker = new VisageTracker2("resources/visage/Facial Features Tracker - Asymmetric.cfg");
|
||||||
_tracker->trackFromCam();
|
_tracker->trackFromCam();
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,6 +35,7 @@ Visage::Visage() {
|
||||||
|
|
||||||
Visage::~Visage() {
|
Visage::~Visage() {
|
||||||
#ifdef HAVE_VISAGE
|
#ifdef HAVE_VISAGE
|
||||||
|
_tracker->stop();
|
||||||
delete _tracker;
|
delete _tracker;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue