megvii-research / CADDM

Official implementation of ID-unaware Deepfake Detection Model
Apache License 2.0
135 stars 19 forks source link

fail to import _jpegpy #31

Open aniupc opened 8 months ago

aniupc commented 8 months ago

The .so file was generated after running 'make', but importing _jpegpy failed.

(pt) darui@darui-PC:~/CODE/DFD/CADDM-master/lib/data_preprocess/utils/jpegpy$ make g++ _jpegpy.cc -o _jpegpy.so -std=c++11 -O3 -I/home/darui/APP/anaconda3/envs/pt/include/python3.9 -I/home/darui/APP/anaconda3/envs/pt/include/python3.9 -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/darui/APP/anaconda3/envs/pt/include -fdebug-prefix-map=/croot/python-split_1688589050410/work=/usr/local/src/conda/python-3.9.17 -fdebug-prefix-map=/home/darui/APP/anaconda3/envs/pt=/usr/local/src/conda-prefix -I/home/darui/APP/anaconda3/envs/pt/include -DNDEBUG -O3 -Wall -UNDEBUG -L/build/libjpeg-turbo-Iy19nI/libjpeg-turbo-2.0.3/obj-x86_64-linux-gnu/lib/x86_64-linux-gnu -ljpeg -L/home/darui/APP/anaconda3/envs/pt/lib/python3.9/config-3.9-x86_64-linux-gnu -L/home/darui/APP/anaconda3/envs/pt/lib -lcrypt -lpthread -ldl -lutil -lm -lm -shared -fPIC In file included from pybind11/pytypes.h:12, from pybind11/cast.h:13, from pybind11/attr.h:13, from pybind11/pybind11.h:36, from _jpegpy.cc:6:

aniupc commented 8 months ago

I‘v solved this problem, please refer to: #26