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
Stable 2.2 segfault on Linux #296
Comments
Do you have any instructions on how you compile this project for linux? (I'm using Ubuntu) Any help/pointers would be greatly appreciated |
@helmchenlord show the backtrace, please. @T1ckL35 Linux is supported only for developer convenience. See FAQ |
@sthalik Thanks for pointing it out. I've managed to build it now anyway, just need to get it recognising the webcam. |
@sthalik Backtrace as follows: (gdb) bt |
@helmchenlord it doesn't make sense, we don't even use QtTest. Run under valgrind to get a proper backtrace. |
This is how I have built opentrack: ls -l /usr/local/opentrack Here is the output from valgrind: |
Your Qt installation is messed up. There are many ways to break things on Gentoo. Edit: according to Valgrind this error happens even before "main". |
I don't think in this state you can even run qtconfig-qt5. Recompile qttest:5 for a start. |
@helmchenlord is using the stable branch. In the CMakeLists.txt you only ask for OpenCV and not OpenCV-3.0. He is using OpenCV-2.4 (which only has Qt4-support), therefor opencv_highgui links against Qt4. opentrack pulls in Qt5, which causes trouble. Furthermore please use proper install destinations. install([...] DESTINATION .) will throw everything into CMAKE_INSTALL_PREFIX, which is /usr/local by default (on linux) - not that nice ;) Left-over of the windows origin? For reference: https://forums.gentoo.org/viewtopic-p-7870194.html#7870194 // edit: |
We don't support hier(7) in this build system. You can package everything into You may also disable qt/gtk/x11 support in opencv completely. opentrack doesn't use it any way. |
We need to link against highgui. There's no way to use What you can do however is build a static library version of opencv specifically for opentrack, from git sources. Point opentrack's cmake cache to it. Then the package version can coexist in case other programs depend on it. There's one more thing you need to fix, see
Change that first line to
Otherwise you'll use an obsolete camera interface that crashes on camera stoppage. |
@ff2000 hier(7) is followed now in unstable. |
For the record, we now don't link in the highgui module at all. If you still have it linked, maybe |
I just tested a fresh Linux build with shared packaged opencv and it doesn't link in highgui. If it gets linked in, delete the build directory and make a new one. There's sometimes stale data in cmake's cache. |
CMake Error at CMakeLists.txt:1 (project): Tell CMake where to find the compiler by setting either the environment -- Configuring incomplete, errors occurred! what is missing? |
If this is a debian-based system, install the |
Hi I am running Gentoo AMD64, opentracker compiles fine, but starting it ends with a Segmentation Fault.
gdb) r
Starting program: /usr/local/opentrack
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe8aa4f8c in ?? () from /usr/lib64/qt4/libQtTest.so.4
I would like to use Opentrack with the edtracker to play War Thunder.
The text was updated successfully, but these errors were encountered: