build a windows project to use the mxnet lib,we can not execute it? what's the problem
there is a simple example,i can build it with no error,but when i run the program, it shows the console but do nothing,and can not run to printf.what's the matter???
include <stdio.h>
include <windows.h>
include "base.h"
include "c_api.h"
int main() { printf("strat");
KVStoreHandle out;
MXKVStoreCreate("local", &out);
return 0;
}
You are probably missing some DLLs. You will need to add the path to all the dependent DLLs to you PATH. For example, if you use OpenBLAS, then libopenblas.dll should be in your PATH, same as OpenCV and cuDNN.
On Wed, Dec 9, 2015 at 10:06 AM, freepjf [email protected] wrote:
there is a simple example,i can build it with no error,but when i run the program, it shows the console but do nothing,and can not run to printf.what's the matter???
#include #include #include "base.h" #include "c_api.h"
int main() { printf("strat");
KVStoreHandle out; MXKVStoreCreate("local", &out); return 0;
}
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867.
HONG Chuntao System Research Group Microsoft Research Asia
the project directory have all the dll: cudart32_75.dll cudart64_75.dll cudnn64_70.dll libgcc_s_seh-1.dll libgfortran-3.dll libmxnet.dll libopenblas.dll libquadmath-0.dll libzmq-v120-mt-4_0_4.dll opencv_world300.dll
i can run the console with no error, but it appear forever, do nothing. i build it with vs2013.
Could you try if you can use the binary distribution here?: https://github.com/dmlc/mxnet/releases/download/weekly_binary_build/20151209_win64_cpu_only.7z
Remember to run the setupenv.cmd file before opening app/MxnetTestApp/MxnetTestApp.sln
On Wed, Dec 9, 2015 at 10:56 AM, freepjf [email protected] wrote:
the project directory have all the dll: cudart32_75.dll cudart64_75.dll cudnn64_70.dll libgcc_s_seh-1.dll libgfortran-3.dll libmxnet.dll libopenblas.dll libquadmath-0.dll libzmq-v120-mt-4_0_4.dll opencv_world300.dll
i can run the console with no error, but it appear forever, do nothing. i build it with vs2013.
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163090236.
HONG Chuntao System Research Group Microsoft Research Asia
i use your project to build, first:run setupenv.cmd,then open the project app/MxnetTestApp/MxnetTestApp.sln, copy all dll to the project dir, build is ok but run is the same error ? if there any different enviroment between us?
did you try the cpu-only version or the gpu version? For GPU, you will also need cuDNN library.
- run setupenv.cmd
- open VS, then open the solution (VS must be started after you run setupenv.cmd, or it won't load the PATH environment variable correclty)
- if using cuDNN, put cudnn64_xx.dll into 3rdparty/cudnn. Make sure the cudnn DLL file is in 3rdparty/cudnn/bin
- build and run the program
On Wed, Dec 9, 2015 at 12:19 PM, freepjf [email protected] wrote:
i use your project to build, first:run setupenv.cmd,then open the project app/MxnetTestApp/MxnetTestApp.sln, copy all dll to the project dir, build is ok but run is the same error ? if there any different enviroment between us?
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163103737.
HONG Chuntao System Research Group Microsoft Research Asia
I have the same problem. when I comment the functions in c_predict_api.h, it works well. But when I use the functions , it just shows the console and even can not print the messages I put in the first line in main function. By the way, I use the pre-built cpu-only version and put all the library path into env
That's strange. Both CPU version and GPU version works alright for me, with and without c_predict_api.h.
On Wed, Dec 9, 2015 at 12:26 PM, sofiawu [email protected] wrote:
I have the same problem. when I comment the functions in c_predict_api.h, it works well. But when I use the functions , it just shows the console and even can not print the messages I put in the first line in main function.
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163105883.
HONG Chuntao System Research Group Microsoft Research Asia
i take the same order, use your project, only build and run,but there is the same problem.
Could you attach a screenshot of the error, both when running from console and from VS? I cannot reproduce it here.
On Wed, Dec 9, 2015 at 12:45 PM, freepjf [email protected] wrote:
i take the same order, use your project, only build and run,but there is the same problem.
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163107784.
HONG Chuntao System Research Group Microsoft Research Asia
i have email you with the 126 email, take a photo, you kan see i add printf,but the console didn't show, f10 run it can not go to main. it can run with nothing error but can not run to main.
I see. VS is trying to load the debug symbols for the system DLLs. You can see it from the "Output" window. If you wait for long enough, it will eventually finish and enter the main function. This usually takes around a minute or so, depending on your environment.
You can get rid of this behavior by undefining the "_NT_SYMBOL_PATH" environment variable. Go to "My Computer"->"Properties"->"Advanced system settings"->"Environment Variables"->"System variables", find "_NT_SYMBOL_PATH", and then click "delete". Then, restart your VS, and it should work just fine.
On Wed, Dec 9, 2015 at 1:30 PM, freepjf [email protected] wrote:
i have email you with the 126 email, take a photo, you kan see i add printf,but the console didn't show, f10 run it can not go to main. it can run with nothing error but can not run to main.
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163115407.
HONG Chuntao System Research Group Microsoft Research Asia
I have the same problem as @freejf. I wait for a very long time maybe an hour and still can not enter the main function. I check the system variables and can not find the _NT_SYMBOL_PATH
my computer config is E3-1230 v2,the environment did not have NT_SYMBOL_PATH, the problem is running for several hours。 it can not work。 the dll is no longger load from then on when i email you. i think there is something different environment between you and me.
Can you pause (Ctrl+Alt+Break) the program and see what it is doing? Is it running in libmxnet.dll or some other dll?
On Wed, Dec 9, 2015 at 3:07 PM, freepjf [email protected] wrote:
my computer config is E3-1230 v2,the environment did not have NT_SYMBOL_PATH, the problem is running for several hours。 it can not work。 the dll is no longger load from then on when i email you. i think there is something different environment between you and me.
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-163136284.
HONG Chuntao System Research Group Microsoft Research Asia
it saids:
title: The call stack contains only external code
you need to turn off just my code and load symbols in order to view source for this location
module information version: 6.1.7601.19018 (win7sp1_gdr.150928-1507) Original Location C:\Windows\System32\ntdll.dll
can you build a exe file to another pc(clean pc) to run?you can print "helloe word" for example.
I have the same problem, Have you solved it?
Sorry about late response. I really don't have a clue at this moment. Is it possible for us to talk on QQ and show me your screen remotely?
On Sun, Dec 13, 2015 at 7:06 PM, zhubuntu [email protected] wrote:
I have the same problem, Have you solved it?
— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/867#issuecomment-164247471.
HONG Chuntao System Research Group Microsoft Research Asia
@hjk41 That will be so good, this is my friend's QQ number 282206777 ,he is having this problem too,and he is always at the laboratory. Thank you very much .
i tried to use dynamic link,it is fine.