symbol _ZN9QDateTimeC1EOS_, version Qt_5 not defined in file libQt5Core.so.5 with link time reference Application finished with exit code 127.
I have build Qt5.7.1 from source for Beaglebone black platform and tried to run simple example application (login window) from Qt.
But after i deploy my application on Beaglebone black i get following error:
/home/root/Test5_7_1_istallation: relocation error: /home/root/Test5_7_1_istallation: symbol _ZTVN10__cxxabiv120__si_class_type_infoE, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
Please inform me what can be the reason and solution for above problem.
Looking at above problem I also checked version of QT library cross compiled for Beaglebone black on my PC:
Qt 5.7.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 4.9.3 20141031 (prerelease))
And Qt library prebuild in debian image of Beaglebone black.
// Library version in Beaglebone black
Qt 5.7.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 6.3.0 20170124)
This is the QtCore library version Qt 5.7.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 6.3.0 20170124)
According to me version of both Qt libraries are same then what can be the reson for above problem ?
thank you very much for help :)
Just to be sure the situation correctly:
- You have a cross-compiled Qt with gcc 4.9.3
- On your target you have Qt version that is compiled using gcc 6.3.0
Is that correct ?
saurabh162 last edited by saurabh162
Thank you very much for replying so fast @SGaist
Yes, whether It can cause problem ?
yes that can cause problems.
please make sure to build everything with the same compiler.
Thank you very much I will compile it again with gcc 6.3.0 and will update you with result.
Thank you very much for your help. I have build Qt5.7.1 from source using GCC 6.3.1 and it works :)
@saurabh162 glad it worked and thanks for your feedback.
so please mark this topic as SOLVED.