I static compiled my own package Foo with using LightXML and I have got libFOO.dll. Further, I designed wrapper in C++ ( Calling Julia Functions) with the help of julia.h and created executable application foo.exe for runtime. Now I want to run this application on other PC, but I got error
C:/Users/windows7/Desktop/CompilePrototype>
ERROR: could not load library "C:\Users\martin\.julia\v0.5\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\libxml2-2"
The specified module could not be found.
in LightXML.XMLDocument() at C:\Users\martin\.julia\v0.5\LightXML\src\document.jl:51
in writeModelXML at C:\Users\martin\.julia\v0.5\Foo\src\xml\writeModel.jl:32 [inlined]
in train(::String, ::String, ::String) at C:\Users\martin\.julia\v0.5\Foo\src\Train.jl:77
in jl_tim_train(::String) at c:\Users\martin\Develop\Julia-0.5.0\share\julia\base\userimg.jl:12
Line 51 in document.jl is
ptr = ccall((:xmlNewDoc,libxml2), Xptr, (Cstring,), "1.0")
If I created this path "C:\Users\martin\.julia\v0.5\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\" and copy libxml2-2.dll to this path runtime application works.
How may be specified this path to be in the same directory with foo.exe or how setup System Image Building?
Thanks