Comments (5)
Thanks for the very detailed error report, unfortunately this error is just
as peculiar to me as it is to you. The best I can suggest is to fire up a
clean Ubuntu VM, confirm br runs correctly, then start working backwards to
figure out how your current environment differs. The fact that it's still
entering a Qt4 library is a huge red flag, we don't use Qt4 at all.
Best of luck,
Josh
On Thu, Aug 15, 2013 at 3:18 PM, shashank singh [email protected]:
Hey guys,
Thanks for the great work. This library would really help me with my
occasional hobby projects. I already have some cool stuff in my head which
I will start churning out once it this puzzling issue is solved.
Issue :So, I have a Ubuntu 13.04[1] machine and my every time I compile openbr,
it compiles fine but while executing it crashes with Segmentation fault[4].How To reproduce :
Well executing br , alone did it :)
On further investigation I found out that although openbr cmake was
loading header files from qt5 it was linking to qt4 libraries [2][3][5][6].I have been literally hitting my head on this issue for past 2 days, any
help would be pretty cool.
References : [1] OS Version:~/code/openbr/build$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 13.04
[2] Qt5 VersionI have compiled my own Qt5
~/code/openbr/build$ qmake --version
QMake version 3.0
Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu
[3] Qt4 VersionThis is stock qt4 that comes with Ubuntu
~/code/openbr/app$ qmake-qt4 --version
QMake version 2.01a
Using Qt version 4.8.4 in /usr/lib/i386-linux-gnu
[4] Crash dump(gdb) bt
~/code/openbr/app/br$ gdb br
0. 0xb369f5e2 in ?? () from /usr/lib/i386-linux-gnu/ libQtTest.so.4
- 0xb7fed216 in ?? () from /lib/ld-linux.so.2
- 0xb7fed2fc in ?? () from /lib/ld-linux.so.2
- 0xb7fdf1df in ?? () from /lib/ld-linux.so.2
[5] Cmake setup[image: cmake_setup_screenshot from 2013-08-16 00 32 19]https://f.cloud.github.com/assets/60755/970850/7bc98f4a-05dd-11e3-994c-816767ebcdeb.png
[6] Crash GDB bt[image: crash_screenshot from 2013-08-16 00 37 23]https://f.cloud.github.com/assets/60755/970871/004c9028-05de-11e3-8807-2e6849440590.png
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/94
.
from openbr.
Thanks man, will try using a VM . I am guessing its just not my day , even Docker is not working out for me https://www.docker.io/
from openbr.
Hey,
Yeah I guess something is competetly off in my ubuntu installation. I did strace on openbr executable and this is what i found
open("/home/developer/code/qt5/qtbase/lib/ libQt5Gui.so.5 ", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/i386-linux-gnu/ libQtTest.so.4 ", O_RDONLY|O_CLOEXEC) = 3
for some reason it hell bent on using test library from qt4, hence the crash. Now only if I could figure out why :)
from openbr.
For future readers: check that your OpenCV library is linked with Qt5 instead of Qt4.
To check, use: ldd /path/to/libopencv.so | grep -i qt
If there is a library ending with "libQtTest.so.4", you have to rebuild OpenCV with -DWITH_QT5=ON
. Note that if you pass -DWITH_QT=ON
to cmake, OpenCV will use Qt4 instead of Qt5.
from openbr.
thanks @smvv :)
from openbr.
Related Issues (20)
- __BEGIN__ is undefined HOT 1
- __END__ is undefined
- Problem in the tests ? HOT 1
- New to this project - about the installation
- Conflict between openbr and dlib
- Build system -- missing QT5 test and opengl v1.1.0 HOT 7
- Clustering usage? understanding rank order neighborhood construction
- OpenCV 4 HOT 4
- Build fails in with VS_2017 and Eigen HOT 1
- Failed to load stasm cascade in FaceRecognition Algorithm
- openbr not working on ubuntu 18.04 HOT 2
- 'br' is not recognized as an internal or external command in windows 10
- Get Fatal Error when try to run "Nmake intall" for building OpenBr HOT 1
- failed to build on windows HOT 1
- Fails to build with OpenCV 3.2.0
- Operating points for ROC curves HOT 4
- CMake Error at openbr/CMakeLists.txt:31 (add_library): Cannot find source file: /usr/local/include/http_parser.c
- how to compute 1:1 face compare accuracy in %
- Missing header file "opencv2/core/core_c.h"
- Fails to build on debian 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openbr.