Comments (16)
I tried the following command to build by VS2015.
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ^
-DDLIB_PATH=D:/Works/Lib/DLib/19.13 ^
..
cmake --build . --config Release
But there is no error.
I think you face to same issue #5.
But I tried the backslash for cmake command param and it can not reproduce same error.
I have no any idea for now.
Does it success if disable cuda?
from dlibdotnet.
i had followed the tutorial instructions, the first command (cmake -G "Visual Studio 14 2015 Win64" ^
-DDLIB_PATH=D:/Works/Lib/DLib/19.13 ^) working without any issue.
i didn't compiled without Cuda yet but i will try.
Thanks for a quick reply.
from dlibdotnet.
BTW, in VS2015 i got errors from DlibDotNet.csproj when trying to build from VS , its seems the project file should compile on 2017 only.
Severity Code Description Project File Line Suppression State
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. DlibDotNet.Extensions C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. DlibDotNet.Extensions.Tests C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Error The command "taskkill /F /IM vstest.executionengine.exe /FI "MEMUSAGE gt 1"
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet\test\DlibDotNet.Tests\bin\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet\test\DlibDotNet.Tests\bin\Debug" /y
)
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
)" exited with code 4. DlibDotNet.Tests
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceDetection (examples\WPF\FaceDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceDetection (examples\WinForms\FaceDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceLandmarkDetection (examples\WPF\FaceLandmarkDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Error The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceLandmarkDetection (examples\WinForms\FaceLandmarkDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Warning The referenced component 'DlibDotNet' could not be found. DlibDotNet.Extensions
Warning The referenced component 'DlibDotNet' could not be found. DlibDotNet.Extensions.Tests
Warning The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. DlibDotNet.Extensions.Tests C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Warning The referenced component 'DlibDotNet' could not be found. DlibDotNet.Tests
Warning The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. DlibDotNet.Tests C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Warning The referenced component 'DlibDotNet' could not be found. FaceDetection (examples\WPF\FaceDetection)
Warning The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceDetection (examples\WPF\FaceDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Warning The referenced component 'DlibDotNet' could not be found. FaceDetection (examples\WinForms\FaceDetection)
Warning The referenced component 'DlibDotNet' could not be found. FaceLandmarkDetection (examples\WPF\FaceLandmarkDetection)
Warning The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. FaceLandmarkDetection (examples\WPF\FaceLandmarkDetection) C:\DlibDotNet\src\DlibDotNet\DlibDotNet.csproj 1
Warning The referenced component 'DlibDotNet' could not be found. FaceLandmarkDetection (examples\WinForms\FaceLandmarkDetection)
from dlibdotnet.
Yes, DlibDotNet aims to support cross platform.
So it use .NET Starndard 2.0.
VS2015 does not compile it.
Please refer Ship .NET 4.6.1 support for .NET Standard 2.0 for VS 2015
from dlibdotnet.
ok, i installed Vs2017, build DLIB successfully, from some reason i can't build the DlibDotNet
via VS2017 its almost done but i got 1 error:
Severity Code Description Project File Line Suppression State
Error The command "taskkill /F /IM vstest.executionengine.exe /FI "MEMUSAGE gt 1"
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet\test\DlibDotNet.Tests\bin\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet\test\DlibDotNet.Tests\bin\Debug" /y
)
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
)" exited with code 4. DlibDotNet.Tests
from dlibdotnet.
Thank you and Iām sorry to trouble you.
The error you face is no problem. It is post build process error.
In my env, vs unit test process may be unstable and post build kill it.
from dlibdotnet.
first, many thanks for the support.
if i understand correctly the DlibDotNet depends on Dlib build so
in a case i need Cuda support (which is important for image processing) i have to compile DLIB + Cuda, unfortunately dlib is possible to compile on VS2015 (or 2017 but Toolset V1.40 which is the same.... cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 ..).
For compiling DlibDotNet we need the Vs2017 so the only option that working is DlibDotNet without Cuda support on VS2017.
please let me know if you have any solution for me.
from dlibdotnet.
Ok, I re-tried comiling with CUDA.
As you know, VS2017 may not support CUDA for now.
Perhaps, this issue only for newer VS2017? It is not for sure...
However, it was successful to build with CUDA by VS2015.
Could you try the following command after delete build dir?
cmake -G "Visual Studio 14 2015 Win64" ^
-DDLIB_PATH=D:/Works/Lib/DLib/19.13 ^
-DCMAKE_PREFIX_PATH=<cuDNN_DIR> ^
..
<cuDNN_DIR> is cuDNN directory and contains the following objects.
- bin
- include
- lib
- NVIDIA_SLA_cuDNN_Support.txt
But binary size is same DlibDotNet.Native.dll without cuda.
The reason is what current source code does not use any functions which uses cuda.
In conclusion, you can use VS2015 for DlibDotNet.Native and use VS2017 for DlibDotNet.
from dlibdotnet.
ok, i did better than that, Install clean Win10 64, Vs1017, Cuda, build Dlib (without Cuda), than i build the dlibdotnet-master. could you advice me whats wrong? or better, could you help me via teamviewer? i would like to donate when it works.
*** Its seems some dll were created, i can use DlibDotNet.dll, DlibDotNet.Extensions but DlibDotNet.Native.dll is invalid (can't add the file as reference) ******
in VS2017 i got post build error:
The command "taskkill /F /IM vstest.executionengine.exe /FI "MEMUSAGE gt 1"
xcopy "C:\DlibDotNet17\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet17\test\DlibDotNet.Tests\bin\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet17\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet17\test\DlibDotNet.Tests\bin\Debug" /y
)
xcopy "C:\DlibDotNet17\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.dll" "C:\DlibDotNet17\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
if "Debug" == "Debug" (
xcopy "C:\DlibDotNet17\src\DlibDotNet.Native\build\Debug\DlibDotNet.Native.pdb" "C:\DlibDotNet17\test\DlibDotNet.Tests\TestDeployItem\Debug" /y
)" exited with code 2. DlibDotNet.Tests
from dlibdotnet.
I'm so sorry. I still may not be able to understand what you say.
This error you face is not DlibDotNet.Native.dll's error but DlibDotNet.Tests' error.
If you fails to build DlibDotNet.Native.dll, pre build of DlibDotNet.Tests should return error with code 4.
But your error return 2.
It think it is syntax error and there is DlibDotNet.Native.dll.
So could you check whether DlibDotNet.Native.dll is C:\DlibDotNet17\src\DlibDotNet.Native\build\Debug or Release?
You can ignore this DlibDotNet.Tests prebuild error.
BTW, I fixed prebuild error. Please check latest develop branch!!
It was syntax error. But I thought this error did not error on Windows 7. It is weird.
from dlibdotnet.
i will try, many thanks., BTW, my win version is 10 (X64)
Anyway, i will appreciate if you could send me an email, i will happy to contribute for project.
from dlibdotnet.
Oh, not at all.
I appreciate your continued support!
from dlibdotnet.
im so sorry for all troubles but i hope we are close to solution :-)
i ignored the tests and all compiled, when i'm trying to run FaceLandmarkDetection example i got the error below
in line:
this._ShapePredictor = new ShapePredictor(@"c:\shape_predictor_68_face_landmarks.dat");
System.DllNotFoundException: 'Unable to load DLL 'DlibDotNet.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'
from some reason as happened before, DlibDotNet.dll and DlibDotNet.Extension.dll are compiled but DlibDotNet.Native.dll didn't.
from dlibdotnet.
from some reason as happened before, DlibDotNet.dll and DlibDotNet.Extension.dll are compiled but DlibDotNet.Native.dll didn't.
Does it mean that DlibDotNet.Native.dll is not in DlibDotNet\examples\FaceLandmarkDetection\bin\Debug(or Release)\netcoreapp2.0?
DlibDotNet.Native.dll will NOT copy automatically to under the output of examples project directory.
from dlibdotnet.
no, the file is not exist there...
i will try to do everything from the beginning again.
Thank you!
from dlibdotnet.
There is no additional report.
from dlibdotnet.
Related Issues (20)
- How to dockerize an app that uses this library HOT 6
- create detector issue HOT 4
- Set minimum sensitivity for FrontalFaceDetector.Operator HOT 3
- Add CUDA 112 to document and publish script
- library does not depend on system libjpeg on OSX HOT 2
- How to using in .NET Core 6 HOT 1
- [Memory Leak] Disposing an Array2D<RgbPixel> does not dispose of contained RgbPixels HOT 11
- Extract face coordinates from upsampled image using Frontal Face Detector HOT 4
- BitmapExtensions.ToArray2D<RgbPixel>(image) throws always not supported exception HOT 4
- Rid of System.Drawing
- cuda HOT 4
- DlibDotNet.Xamarin is missing HOT 1
- ToBitmap() ambigous HOT 1
- Memory leak with Array2D HOT 2
- DlibDotNet with FaceRecognitionDotNet Not working HOT 1
- Face recognition in real time (using ar glass and unity and dlibdotnet)
- .NET 7.0 compatibility, Failed to find dll "DlibDotNetNative", for processor architecture AMD64 HOT 2
- Can't load DlibDotNetNativeDnn in Blazor WebAssembly project
- HeadPoseTraining with GPU Support possible ?
- Can't build DlibDotNet.Native.Dnn HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlibdotnet.