https://github.com/AlexeyAB/darknet I am trying to build a DLL for the YOLO Object Detection Library linked above using the solution within that link's project (yolo_cpp_dll), but for Universal Windows Platform (I would like to integrate it into the Hololens and it needs to be built for UWP). It is primarily a C-library for computer vision.
I converted the DLL to UWP by following these instructions under the "To port a native DLL to the UWP without creating a new project": https://msdn.microsoft.com/en-us/library/mt186162.aspx
I did not follow step 5 as there was no stdafx.h file (this is not a console application dll).
I had the same issue that this person was having: mismatch detected for 'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker': value '1' doesn't match value '0' in msvcrtd.lib
As in, all my code compiles and generates a library, but I got the following Linker errors:
vccorlibd.lib(init.obj) : error LNK2038: mismatch detected for 'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker': value '1' doesn't match value '0' in msvcrtd.lib(app_appinit.obj)
vccorlibd.lib(init.obj) : error LNK2005: __crtWinrtInitType already defined in msvcrtd.lib(app_appinit.obj)
I tried setting the four linker flags in answer for that thread in my project settings (Linker > Input > Ignore Specific Default Libraries) separated by semicolons, but all I got were a ton more linker errors. Here are some of them (there are a LOT more than these):
1>blas_kernels.cu.obj : error LNK2001: unresolved external symbol atexit
1>col2im_kernels.cu.obj : error LNK2001: unresolved external symbol atexit
1>im2col_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>maxpool_layer_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>network_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>convolutional_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>crop_layer_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>deconvolutional_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
1>dropout_layer_kernels.cu.obj : error LNK2001: unresolved external symbol
__imp_fminf
Am I setting the linker flags in the wrong place? Is there another way to bypass the initial linker errors?
Aucun commentaire:
Enregistrer un commentaire