Git Product home page Git Product logo

Comments (16)

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

Oh, not at all.
I appreciate your continued support!

from dlibdotnet.

roy81f avatar roy81f commented on May 26, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

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.

roy81f avatar roy81f commented on May 26, 2024

no, the file is not exist there...
i will try to do everything from the beginning again.

Thank you!

from dlibdotnet.

takuya-takeuchi avatar takuya-takeuchi commented on May 26, 2024

There is no additional report.

from dlibdotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.