wangkexue / eulerian-video-magnification

eulerian video magnification c++ implementation with OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't build :-(

atv2016 opened this issue · comments

I'm getting this when building:
[ 50%] Linking CXX executable main
Undefined symbols for architecture x86_64:
"_PyDict_SetItemString", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyFloat_AsDouble", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyFloat_FromDouble", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyImport_ImportModule", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyInt_FromLong", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyMapping_GetItemString", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyModule_GetDict", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_PyRun_SimpleStringFlags", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_Py_Finalize", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
"_Py_Initialize", referenced from:
amplify_spatial_lpyr_temporal_butter(char const*, char const*, int, int, float, float, int, float, char*) in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [main] Error 1
make[1]: *** [CMakeFiles/main.dir/all] Error 2
make: *** [all] Error 2

My cmakelists.txt:
cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") #adding support for c++11
project( lan_vid_pseudostream )
set(CMAKE_AUTOMOC ON) # qt
set(CMAKE_INCLUDE_CURRENT_DIR ON) # qt
find_package( OpenCV REQUIRED )
find_package( PythonLibs 2.7 REQUIRED)
find_package( PythonInterp 2.7 REQUIRED)
add_executable( main main.cpp )
target_link_libraries( main ${OpenCV_LIBS} ${PythonLibs} ${PythonInterp} )

Or do you have a different way of compiling ?