Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error ---Headache problem ina long time #33

Open
zllshu opened this issue Jan 9, 2019 · 5 comments
Open

make error ---Headache problem ina long time #33

zllshu opened this issue Jan 9, 2019 · 5 comments

Comments

@zllshu
Copy link

zllshu commented Jan 9, 2019

default
it's a strange question while I make the project.I spent a lot of time debugging。But there are almost no corresponding answers to the online answers.So I have to ask you for help, can you give me some advice?

@yaceben
Copy link

yaceben commented Jan 9, 2019

Do you have libqt5 or something installed (im not on ubuntu but should be easy enough to find...)?

@zllshu
Copy link
Author

zllshu commented Jan 10, 2019

Do you have libqt5 or something installed (im not on ubuntu but should be easy enough to find...)?
Yeah,actually I find libqt5 in usr/lib/ ,but when i try to use command ldd libcaffe.so.1.0.0-rc3 |grep opencv,then i get the following :
1
but when i open libQT5IopenGL.so, i cant't find reference to qt_5

@yaceben
Copy link

yaceben commented Jan 10, 2019

Never encountered this, but from https://stackoverflow.com/questions/36128645/error-on-execution-version-qt-5-not-found-required-by
I would suggest trying first

sudo apt-get install qt5-default

and if it still not working, force point your execution by prepending LD_LIBRARY_PATH as such

Issue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu from distro which ld will use by default. To avoid such issues you can compile with -rpath or run with LD_LIBRARY_PATH=/path/to/your/Qt/libs/location to help linker find needed Qt version.

eg. LD_LIBRARY_PATH=/path/to/your/Qt/libs/location make -j<nthreads> ...

or fiddle a bit in the makefiles to point it to the correct qt lib paths

Good luck!

@zllshu
Copy link
Author

zllshu commented Jan 10, 2019

Thank you very much for your kindness, I will try your method later.

@zllshu
Copy link
Author

zllshu commented Jan 10, 2019

Never encountered this, but from https://stackoverflow.com/questions/36128645/error-on-execution-version-qt-5-not-found-required-by
I would suggest trying first

sudo apt-get install qt5-default

and if it still not working, force point your execution by prepending LD_LIBRARY_PATH as such

Issue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu from distro which ld will use by default. To avoid such issues you can compile with -rpath or run with LD_LIBRARY_PATH=/path/to/your/Qt/libs/location to help linker find needed Qt version.

eg. LD_LIBRARY_PATH=/path/to/your/Qt/libs/location make -j<nthreads> ...

or fiddle a bit in the makefiles to point it to the correct qt lib paths

Good luck!

it's bad news for me,it don't work for my work any more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants