csteinmetz1 / ronn

Randomized overdrive neural networks
https://csteinmetz1.github.io/ronn/
Apache License 2.0
135 stars 11 forks source link

Windows build failing to correctly import the DLLs #5

Open y-71 opened 3 years ago

y-71 commented 3 years ago

I found this repo yesterday, I loved the work and wanted to port it for windows.

I made this change to the CMakeLists.txt file:

if (MSVC)
file(GLOB TORCH_DLLS "${TORCH_INSTALL_PREFIX}/lib/*.dll")
add_custom_command(TARGET ronn
                   POST_BUILD
                   COMMAND ${CMAKE_COMMAND} -E copy_if_different
                   ${TORCH_DLLS}
                   $<TARGET_FILE_DIR:ronn>)
endif (MSVC)

which generated the build files for MSVC.

I then wanted to test the standalone version but got these errors:

image image

When checking the artefacts folder I found that these two DLLs were actually copied correctly: image

y-71 commented 3 years ago

Fix: I fixed it by copying the DLLs to the Standalone folder itself.

The Standalone app doesn't want to open nonetheless.

csteinmetz1 commented 3 years ago

Hi @tawfik741. What kind of error do get your when trying to open the compiled standalone app?

y-71 commented 3 years ago

Hi @csteinmetz1 . The problem is that I don't get any error.

I tried to run it from powershell to follow execution logs but nothing happens. No errors, nothing.