takuya-takeuchi / OpenPoseDotNet

OpenPose wrapper written in C++ and C# for Windows
MIT License
66 stars 25 forks source link

Can't compile library #17

Open giubri91 opened 4 years ago

giubri91 commented 4 years ago

Hi i'm trying to include openpose in my project in C# and i found your helpful OpenPoseDotNet wrapper project. I dowloaded the repository and tried to follow compile instructions but i receive an error that says: "Error: This plaform is not support". I don't understand why i receive this error and how i can resolve the problem in order to use your library. My software working set is: Windows 10 OS and i use VS2017 with Cuda version 10.0. My hardware is NVIDIA GTX950M and CPU is i7 6700HQ.

Following your instruction i wrote the command < Build.ps1 Debug cuda 64 desktop 2017 100 > but i get the error. error I also tried different version of Cuda such as 90 101. Do you have any suggestion?

Thanks in advance!

takuya-takeuchi commented 4 years ago

@giubri91

OK. You must use PowerShell Core rather than built in powershell. Built in powershell could be not support $global:IsWindows

giubri91 commented 4 years ago

thanks for you reply! following your suggestion i installed and used PowerShell Core and started the built process, but after some steps it returns some errors of missing cpp files that i think are related to openpose comp1 comp2 comp3

I tried several attempts to make it works , including :

thanks for you help!

takuya-takeuchi commented 4 years ago

@giubri91

I tried to build from the beginning.

$ git clone https://github.com/takuya-takeuchi/OpenPoseDotNet
$ cd OpenPoseDotNet
$ cd src\OpenPoseDotNet.Native
// It get to be failed of build
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100
$ git submodule update --init --recursive
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100

But it works fine.

Maybe i made mistakes about the right dir where to put the file?

No, You need not to do.

Could you tell me the following things?

giubri91 commented 4 years ago

thanks @takuya-takeuchi , following exactly the steps you wrote in the previous post, I was finally able to compile without error.

@giubri91

I tried to build from the beginning.

$ git clone https://github.com/takuya-takeuchi/OpenPoseDotNet
$ cd OpenPoseDotNet
$ cd src\OpenPoseDotNet.Native
// It get to be failed of build
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100
$ git submodule update --init --recursive
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100

But it works fine.

Maybe i made mistakes about the right dir where to put the file?

No, You need not to do.

Could you tell me the following things?

  • Is there src\openpose\3rdparty\windows\opencv\include\opencv2\opencv.hpp?
  • You look like trying some build. So Please show the last error message.
  • Could you try to remove src\OpenPoseDotNet.Native\build_win_desktop_cuda_x64_d?

    • CMake cache may occur build fails.

after the build i wanted to try the example following your guide https://github.com/takuya-takeuchi/OpenPoseDotNet#2-try-tutorial but after the command dotnet run -c Release -i "examples\media\COCO_val2014_000000000192.jpg" the terminal does not do anything. examp1 I wonder what could be causing that.

I don't have understand how to include and use it in my Visual Studio project. Can you give me some tips? Many thanks for your help!

AmazingRachel commented 4 years ago

I also have this problem. I can configure and generate project successfully, but I cannot run examples. Once they ran, they exit quickly without producing any results. HELP WANTED!!(T_T)

takuya-takeuchi commented 4 years ago

@AmazingRachel

Once they ran, they exit quickly without producing any results. HELP WANTED!!(T_T)

You can check event viewer or attache to debugger to catch exception. I guess

You should use dependencies to check library. https://github.com/lucasg/Dependencies