mank thanks to you both;
finally, i solved this problem. in fact it's very easy.
@TobbY is absolutely right.
just put the dependencies dlls(here the only one Qt5Core.dll) and my dll in the same dir.
i code the absolute path in the mql5,but left the dependency dll on the mt5's library before. that's not right.
i'm so stupid! so i should give trust on the qt. it's my fault
I've had to modify (port) code between minor versions like Qt 5.5 to 5.6, sometimes a lot of it like when webkit was dropped. If you are porting from Qt 2, that is like 20 years ago old. It will be a lot of work and you'll need to know Qt decently well.
If you are just having an issue with mixing Qt versions though you can fix that by setting QTDIR (either in your bashrc or everytime in your shell) and potentially having to modify PATH to not point to the old Qt.
With help of our senior Engineer. I am able to solve this issue. He change the binary path of libSquidStateLibrary.1.dylib into libChargeDischarge1.dylib and .app file.
Inside the bundle my library location at _Squidstate.app/squidstatelibrary/libSquidStateLibrary.1.dylib
//change Binary path in Plugin
install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/prebuilt/libChargeDischarge1.dylib
// change binary path in app
install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/_SquidStat
solution may be helpful to novice programmer like me.
That's for the module itself. It provides the a SQLite plugin but your application won't get linked to it unless you build Qt to have that plugin builtin. Therefore, you'll have to link your application directly against the SQLite library.
AFAIK the removal of prefix "lib" is a "feature" of GCC respectively the associated linker which is the basis also for MinGW. On linux it is important to neglect and there it might be better to do on windows as well, when the project shall be used on both platforms.
However, it has its ups and downs and most of the time there are also other OS dependent settings.
I have this topic to 3rd party forum, since it referring to a library which is only Qt-based.
Beware that you might have better chances for a proper answer by addressing the question directly to the original author.
Hi, I have some Qt apps running on Win10 1803 build17134.48, they're built with MSVC 2015 and not mingw32 but it shouldn't matter, mingw32 code should run just fine as in previous Win10 versions.
Error ' code 0xc000007b' usually happens with there's a mixup of 64-bit ands 32-bit .dlls loaded into your .exe file.
Do you get the same error when your build your app for Release mode?
Well, I seem to have solved it. The error I was getting wasn't particularly helpful. In reality, I needed to also include the aws-sdk-core library in addition to the aws-sdk-sqs. It is now happily building and sending messages to SQS. I did still use the brew version of the aws-sdk-cpp. I'll have to work on getting the cmake to build the sdk-build directory the way QT wants. Yet another new thing to wrap my head around. But this gives me something to wire up with other projects via messaging so I'm excited to keep going now.
Thank you. Directly over QFile :: wirite as ByteArray works without problems. Now all I have to do is find out how to check the password. But for this I make another thread on as soon as I can deal with it.