(german locale, “system cannot find the file”) Ghc.EXE: addLibrarySearchPath: C:\path\to\project\lib (Win32 error 2): Das System kann die angegebene Datei nicht finden. so/.DLL for: tag_c.dll (addDLL: tag_c or dependencies not loaded. If there is no lib folder in the project root, I get : can't load.Whatever I do, it boils down to one of two outcomes: I have experimented with all file separator variants: slash, back slash, double back slash. (as well as extra-lib-dirs:) in the cabal file. I have come across this bug and tried the workaround using ghc-options: -L. I have tried to refer to the containing folders (both the original cygwin location and a lib folder in the project root) via extra-lib-dirs: both in stack.yaml and the global config.yaml. So now I have libtag.dll and libtag_c.dll in C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\bin, but I have no idea how to inject them into the build dependencies. I’m neither familiar with C/C++ builds nor with Windows, so for the time being I wanted to avoid building TagLib from scratch and instead hoped to get away with grabbing the dlls from cygwin. On Linux (Ubuntu), there’s no problem - I just installed the libtag package via apt, added the dependency to my cabal file, added import line and some code to a. The concrete problem occurs with htaglib/ TagLib, but I assume it’s a generic native dependency issue. I am completely stuck trying to get a stack build with a native library dependency to work on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |