Solved qt5.5 cross-compilation gstreamer error
-
Did you re-do the configuration after installing the missing dependencies ?
-
yes, many times.
every time i change something in my setup i do
make clean
new ./configure command to try with different options
make -
make clean is not enough, you need to start from a clean state.
I recommend out of source builds so when something goes wrong you can just nuke the folder and you don't pollute the sources.
-
ok, i'am going to try today, so i need to remove whole Src folder, redownload and rerun whole process ?
//edit
same thing happened. i have completly removed Src folder, and redownloaded it with qt "maintaince tool"
i'am stuck at:
###############################################################################################
eventtransition.o -lpthread -lz -lpcre16 -lm -ldl -lrt
.obj/qregularexpression.o: In functionpcre16SafeExec(real_pcre16 const*, pcre16_extra const*, unsigned short const*, int, int, int, int*, int)': qregularexpression.cpp:(.text+0x264): undefined reference to
pcre16_exec'
qregularexpression.cpp:(.text+0x2cc): undefined reference topcre16_jit_stack_alloc' qregularexpression.cpp:(.text+0x334): undefined reference to
pcre16_exec'
.obj/qregularexpression.o: In functionQRegularExpressionPrivate::~QRegularExpressionPrivate()': qregularexpression.cpp:(.text+0x574): undefined reference to
pcre16_free_study'
qregularexpression.cpp:(.text+0x610): undefined reference topcre16_free' .obj/qregularexpression.o: In function
QRegularExpressionPrivate::cleanCompiledPattern()':
qregularexpression.cpp:(.text+0x6cc): undefined reference topcre16_free_study' qregularexpression.cpp:(.text+0x6f8): undefined reference to
pcre16_free'
.obj/qregularexpression.o: In functionQRegularExpressionPrivate::getPatternInfo()': qregularexpression.cpp:(.text+0x718): undefined reference to
pcre16_fullinfo'
qregularexpression.cpp:(.text+0x72c): undefined reference topcre16_fullinfo' qregularexpression.cpp:(.text+0x780): undefined reference to
pcre16_fullinfo'
qregularexpression.cpp:(.text+0x7a4): undefined reference topcre16_config' .obj/qregularexpression.o: In function
QRegularExpressionPrivate::compilePattern()':
qregularexpression.cpp:(.text+0xa00): undefined reference topcre16_free_study' qregularexpression.cpp:(.text+0xa80): undefined reference to
pcre16_compile2'
qregularexpression.cpp:(.text+0xae4): undefined reference topcre16_free' .obj/qregularexpression.o: In function
QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption)':
qregularexpression.cpp:(.text+0xb70): undefined reference topcre16_study' qregularexpression.cpp:(.text+0xc78): undefined reference to
pcre16_assign_jit_stack'
.obj/qregularexpression.o: In functionQRegularExpressionPrivate::captureIndexForName(QString const&) const': qregularexpression.cpp:(.text+0xd48): undefined reference to
pcre16_get_stringnumber'
.obj/qregularexpression.o: In functionQRegularExpressionMatch::capturedRef(QString const&) const': qregularexpression.cpp:(.text+0x17a4): undefined reference to
pcre16_get_stringnumber'
.obj/qregularexpression.o: In functionQRegularExpressionMatch::captured(QString const&) const': qregularexpression.cpp:(.text+0x1904): undefined reference to
pcre16_get_stringnumber'
.obj/qregularexpression.o: In functionQRegularExpressionMatch::capturedStart(QString const&) const': qregularexpression.cpp:(.text+0x19c8): undefined reference to
pcre16_get_stringnumber'
.obj/qregularexpression.o: In functionQRegularExpressionMatch::capturedLength(QString const&) const': qregularexpression.cpp:(.text+0x1a6c): undefined reference to
pcre16_get_stringnumber'
.obj/qregularexpression.o:qregularexpression.cpp:(.text+0x1b10): more undefined references topcre16_get_stringnumber' follow .obj/qregularexpression.o: In function
QRegularExpression::namedCaptureGroups() const':
qregularexpression.cpp:(.text+0x4090): undefined reference topcre16_fullinfo' qregularexpression.cpp:(.text+0x40a8): undefined reference to
pcre16_fullinfo'
qregularexpression.cpp:(.text+0x40c0): undefined reference topcre16_fullinfo' .obj/qregularexpression.o: In function
QThreadStorage<QPcreJitStackPointer*>::deleteData(void*)':
qregularexpression.cpp:(.text._ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv[_ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv]+0x18): undefined reference to `pcre16_jit_stack_free'
collect2: error: ld returned 1 exit status
make[3]: *** [../../lib/libQt5Core.so.5.5.1] Error 1
make[2]: *** [sub-corelib-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2
############################################################################################### -
What distribution are you running on your Pi ?
-
newest jessie
hmm i searched my mac for pcre libs as i think that something confuses qt and i found one occurence of libpcre16 located in /brew2/local/Cellar/pcre
its dependency for something installed via homebrew
is it possible that its source of my failures ? :) -
That possibly can interfere. Note that I'm more used to cross-compilation from Linux host. It make things way easier.
-
after 2 weeks got it working... tried on my macbook air with almost clean el capitan :)
to many libs, projects, work stuff on my mac pro and i can't find the problem, maybe something connected to homebrew (something like apt-get in linux) installations.for anyone who stumble upon this thread that should be a good lesson -> clean system = simple compilation :)
thanks for help SGaist :)
-
Good !
You're welcome !
Then please, mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)
-
@unnamed
Hi.
I encountered same problem, would you please tell what did you do to solve the problem?
By the way, what do you mean by " i have added -lpcre to pkg-config file o glib :)"?
Thanks in advance.