Thank you for your reply, I need to make it static because it has been asked to me, it's not my decision.
So if you know something about how to fix it i'll be very pleased. Every idea will be welcome![]()
Thank you for your reply, I need to make it static because it has been asked to me, it's not my decision.
So if you know something about how to fix it i'll be very pleased. Every idea will be welcome![]()
Then you need to ensure you use the exact same libraries to statically link your app as are present on the target machine.
and make sure you comply with the Qt license for statically compiled applications - it's not as flexible as the one for dynamically linked apps.
Yes, I know I need exactly the same libraries, but as I see in the trace, there is something strange happening and I don't know what. That's what I'm asking for.
Thank you!
Well, static linking with pthread is known to segfault (I'm not saying its the fault here, but it might be. It's known to cause people problems). You could try rebuilding gcc to allow for proper thread local storage in your libstdc++ library, but you will then have to update the libraries on the target to match with your recompiled libraries on the host.
Much easier to just dynamically link![]()
The solution is to surround -lpthread by two more switches i.e.,
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive
Ref:
http://stackoverflow.com/questions/9...entation-fault
Bookmarks