anhttran / 3dmm_cnn

Regressing Robust and Discriminative 3D Morphable Models with a very Deep Neural Network
Other
857 stars 254 forks source link

what is /home/anh anyway? #23

Closed QuantumLiu closed 6 years ago

QuantumLiu commented 6 years ago
make[2]: *** No rule to make target '/home/anh/Downloads/dlib-19.4/shared_build/dlib/libdlib.so', needed by 'bin/TestVisualization'。 停止。
CMakeFiles/Makefile2:196: recipe for target 'config/CMakeFiles/TestVisualization.dir/all' failed
make[1]: *** [config/CMakeFiles/TestVisualization.dir/all] Error 2
anhttran commented 6 years ago

As described in README.md, you need to "update Dlib directory paths (DLIB_INCLUDE_DIR and DLIB_LIB_DIR) in CMakeLists.txt".

QuantumLiu commented 6 years ago

Thank you, i'll check

wanggongziZeo commented 6 years ago

I update the Dlib directory paths in CmakeLists.txt, and my dlib version is 19.4. But there's no folder named "/home/anh/Downloads/dlib-19.4/shared_build/dlib", my path is "/home/wgz/dlib-19.4/dlib". In the processing of make, the same problem occured. I wonder how to solve the problem to make the executable file TestVisualization.

iacopomasi commented 6 years ago

@wanggongziZeo have you changed these two lines in the CMakeList.txt with your path?

https://github.com/anhttran/3dmm_cnn/blob/master/CMakeLists.txt#L9

if you did, make sure that you delete the build directory and start from scratch to be sure. Also, check if there are other hardcoded path inthe CMakeList.txt. If you have installed dlib, you can try to replace those two lines with find_package( dlib REQUIRED )

wanggongziZeo commented 6 years ago

Thanks for your reply. I replace the two lines with find_package(dlib REQUIRED ) The former question worked, but there is another question occured: No rules to make the target /usr/lib/libblas.so I find my file in this path is libblas.so.3

iacopomasi commented 6 years ago

You need to change this https://github.com/anhttran/3dmm_cnn/blob/master/modules/PoseExpr/CMakeLists.txt#L43 to point to your path.

anhttran commented 6 years ago

Also, you need to run cmake again whenever you modify CMakeLists.txt.

wanggongziZeo commented 6 years ago

Yeah, I tried your suggestions But it seems no use to me .I update the Libblas library,and there is libblas.so in my own path, then I rebuild, and cmake once again, when make, more problem occured::: /usr/bin/ld: can't find -lfind_package /usr/bin/ld: can't find -l( /usr/bin/ld: can't find -ldlib /usr/bin/ld: can't find -lREQUIRED /usr/bin/ld: can't find -l)/libdlib.so Besides the solution, I wnat to specify the toos-version of the project. Thanks once again.

cogito666 commented 6 years ago

Hello. I am having the same problem. Is there anybody who solve it?