YuvalNirkin / face_swap

End-to-end, automatic face swapping pipeline
GNU General Public License v3.0
825 stars 203 forks source link

Openblas and GFortran issue #64

Open Siamaster opened 2 years ago

Siamaster commented 2 years ago

I have successfully installed OpenBLAS with the given instructions for ubuntu. I get the following message when installing:

make -j 4 -f Makefile.install install
make[1]: Entering directory '/home/siamaster/Development/Tools/OpenBLAS'
Generating openblas_config.h in /usr/local/include
Generating f77blas.h in /usr/local/include
Generating cblas.h in /usr/local/include
Copying LAPACKE header files to /usr/local/include
Copying the static library to /usr/local/lib
Copying the shared library to /usr/local/lib
Generating openblas.pc in /usr/local/lib/pkgconfig
Generating OpenBLASConfig.cmake in /usr/local/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in /usr/local/lib/cmake/openblas
Install OK!
make[1]: Leaving directory '/home/siamaster/Development/Tools/OpenBLAS'

But then I try to install face swap I get this error:


/usr/bin/ld: /usr/local/lib/libopenblas.a(dgesvd.o): undefined reference to symbol '_gfortran_concat_string@@GFORTRAN_7'
//home/siamaster/anaconda2/lib/libgfortran.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
face_swap_image/CMakeFiles/face_swap_image.dir/build.make:150: recipe for target 'bin/face_swap_image' failed
make[2]: *** [bin/face_swap_image] Error 1
CMakeFiles/Makefile2:196: recipe for target 'face_swap_image/CMakeFiles/face_swap_image.dir/all' failed
make[1]: *** [face_swap_image/CMakeFiles/face_swap_image.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/local/lib/libopenblas.a(dgesvd.o): undefined reference to symbol '_gfortran_concat_string@@GFORTRAN_7'
//home/siamaster/anaconda2/lib/libgfortran.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
face_swap_batch/CMakeFiles/face_swap_batch.dir/build.make:150: recipe for target 'bin/face_swap_batch' failed
make[2]: *** [bin/face_swap_batch] Error 1
CMakeFiles/Makefile2:252: recipe for target 'face_swap_batch/CMakeFiles/face_swap_batch.dir/all' failed
make[1]: *** [face_swap_batch/CMakeFiles/face_swap_batch.dir/all] Error 2
/usr/bin/ld: /usr/local/lib/libopenblas.a(dgesvd.o): undefined reference to symbol '_gfortran_concat_string@@GFORTRAN_7'
//home/siamaster/anaconda2/lib/libgfortran.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
face_swap_image2video/CMakeFiles/face_swap_image2video.dir/build.make:150: recipe for target 'bin/face_swap_image2video' failed
make[2]: *** [bin/face_swap_image2video] Error 1
CMakeFiles/Makefile2:364: recipe for target 'face_swap_image2video/CMakeFiles/face_swap_image2video.dir/all' failed
make[1]: *** [face_swap_image2video/CMakeFiles/face_swap_image2video.dir/all] Error 2
/usr/bin/ld: /usr/local/lib/libopenblas.a(dgesvd.o): undefined reference to symbol '_gfortran_concat_string@@GFORTRAN_7'
//home/siamaster/anaconda2/lib/libgfortran.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
face_swap_single2many/CMakeFiles/face_swap_single2many.dir/build.make:150: recipe for target 'bin/face_swap_single2many' failed
make[2]: *** [bin/face_swap_single2many] Error 1
CMakeFiles/Makefile2:308: recipe for target 'face_swap_single2many/CMakeFiles/face_swap_single2many.dir/all' failed
make[1]: *** [face_swap_single2many/CMakeFiles/face_swap_single2many.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Have I failed to install OpenBLAS and anaconda correctly or is this a GFortran issue? I don't know where to look.