Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dlib version change #135

Open
moeiscool opened this issue Nov 3, 2018 · 2 comments
Open

Dlib version change #135

moeiscool opened this issue Nov 3, 2018 · 2 comments

Comments

@moeiscool
Copy link

moeiscool commented Nov 3, 2018

Howdy! First I wanna say I love @justadudewhohacks! A hero in this timeline without question!

On to why I'm posting : I would like to change the version of dlib that is installed by the module. Currently 19.8 is installed but I would like to get 19.16 because CUDA 10 is not supported until this version.

I assume this because of the search result i get when googling "CUDA_cublas_device_LIBRARY" being missing from something to do with CMake.

I searched the repo for "dlib", "19.8", "davisking" and other stuff but didnt find the part of the repo where it gets version 19.8.

I assume it is 19.8 because of the beginning of the install process. Here is the output.

Again. Thank you for this! It's like I can't go googling for Node.js + Machine Learning without finding justadudewhohacks :D

> [email protected] install /home/Shinobi/plugins/dlib/node_modules/dlib-build
> node ./install.js
 
executing: git --version
executing: cmake --version
executing: mkdir -p dlib
executing: mkdir -p build
executing: rm -rf dlib
spawning: git [ 'clone',
  '--progress',
  'https:/davisking/dlib.git' ]
Cloning into 'dlib'...
remote: Enumerating objects: 46708, done.
remote: Total 46708 (delta 0), reused 0 (delta 0), pack-reused 46708
Receiving objects: 100% (46708/46708), 21.88 MiB | 6.84 MiB/s, done.
Resolving deltas: 100% (32823/32823), done.
spawning: git [ 'checkout', 'tags/v19.8', '-b', 'v19.8' ]
Switched to a new branch 'v19.8'
spawning: cmake [ '/home/Shinobi/plugins/dlib/node_modules/dlib-build/dlib/dlib' ]
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 6.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'cblas'
--   No package 'cblas' found
-- Checking for module 'lapack'
--   Found lapack, version 0.2.20+ds
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found OpenBLAS library
-- Looking for sgetrf_single
-- Looking for sgetrf_single - found
-- Using OpenBLAS's built in LAPACK
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Looking for sgesv
-- Looking for sgesv - not found
-- Looking for sgesv_
-- Looking for sgesv_ - not found
-- Found CUDA: /usr/local/cuda (found suitable version "10.0", minimum required is "7.5")
-- Looking for cuDNN install...
-- Found cuDNN: /usr/local/cuda/lib64/libcudnn.so
-- Building a CUDA test project to see if your compiler is compatible with CUDA...
-- Checking if you have the right version of cuDNN installed.
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Enabling CUDA support for dlib.  DLIB WILL USE CUDA
-- C++11 activated.
-- C++11 activated.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "dlib_shared" in directory /home/Shinobi/plugins/dlib/node_modules/dlib-build/dlib/dlib/dlib
    linked by target "dlib" in directory /home/Shinobi/plugins/dlib/node_modules/dlib-build/dlib/dlib/dlib
 
-- Configuring incomplete, errors occurred!
See also "/home/Shinobi/plugins/dlib/node_modules/dlib-build/dlib/build/CMakeFiles/CMakeOutput.log".
See also "/home/Shinobi/plugins/dlib/node_modules/dlib-build/dlib/build/CMakeFiles/CMakeError.log".
child process exited with code 1
npm WARN [email protected] No repository field.
 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
 
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/rc/.npm/_logs/2018-11-03T18_27_34_525Z-debug.log
npm WARN using --force I sure hope you know what you are doing.
npm ERR! code EAUDITNOLOCK
npm ERR! audit Neither npm-shrinkwrap.json nor package-lock.json found: Cannot audit a project without a lockfile
npm ERR! audit Try creating one first with: npm i --package-lock-only
 
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/rc/.npm/_logs/2018-11-03T18_27_34_835Z-debug.log
@moeiscool
Copy link
Author

moeiscool commented Nov 3, 2018

figured it out! thanks again!

for anyone who wants to use it CUDA 10 until the official one is updated you can use this
https://www.npmjs.com/package/face-recognition-cuda/v/0.9.3-a

Edit : nevermind :'( please help

@moeiscool moeiscool reopened this Nov 4, 2018
@justadudewhohacks
Copy link
Owner

Hi, what's the matter? Does face-recognition.js not compile with dlib version 19.16?

Version 19.8 is what's being installed by the auto build script, since it was the latest at the time I wrote this. If the package still compiles with 19.16, than we could simply bump the tag version in the auto build script of npm-dlib-build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants