main.cpp:46:33: fatal error: qtsingleapplication.h: No such file or directory

Bug #1491736 reported by martinkg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yarock
Won't Fix
Undecided
SebastienAmar
Fedora
New
Undecided
Unassigned

Bug Description

Hi,

i want to compile Yarock_1.1.4 on Fedora 22, but this fails with the following error message:

...
/yarock.dir/src/main.cpp.o -c /home/martin/rpmbuild/BUILD/Yarock_1.1.4_source/src/main.cpp
/home/martin/rpmbuild/BUILD/Yarock_1.1.4_source/src/main.cpp:46:33: fatal error: qtsingleapplication.h: No such file or directory
 #include "qtsingleapplication.h"
                                 ^
compilation terminated.
CMakeFiles/yarock.dir/build.make:324: recipe for target 'CMakeFiles/yarock.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/yarock.dir/src/main.cpp.o] Error 1

but the missing file is exists.
/usr/include/QtSolutions/qtsingleapplication.h

Revision history for this message
martinkg (martin-gansser-c) wrote :

I use cmake with this options

%cmake \
  -DUSE_SYSTEM_QTSINGLEAPPLICATION:BOOL=ON \
  -DUSE_SYSTEM_QXT:BOOL=ON \

Revision history for this message
SebastienAmar (sebastien-amardeilh) wrote :

I thinks for reporting. I will try to fix this as soon as possible

Changed in yarock:
milestone: none → 1.1.5
assignee: nobody → SebastienAmar (sebastien-amardeilh)
Revision history for this message
SebastienAmar (sebastien-amardeilh) wrote :

In fact, It's not a good idea to use system libraries for QtSingleApplication or Qxt because in Yarock this third party sources have been patched and modified to be build against both qt4 and qt5.

The current upstream release for this third sources QtSolution/Qxt are not working with both Qt4 and Qt5.

So If you want yarock in qt4 maybe it should be possible to use system libraries => I will try to fix this case.

For Qt5 build only provided libraries within yarock will work.

Sorry for the lack of clarity...

Revision history for this message
martinkg (martin-gansser-c) wrote :

> In fact, It's not a good idea to use system libraries for QtSingleApplication or Qxt because in Yarock this third party sources
> have been patched and modified to be build against both qt4 and qt5.
ok

> The current upstream release for this third sources QtSolution/Qxt are not working with both Qt4 and Qt5.
ok

>So If you want yarock in qt4 maybe it should be possible to use system libraries => I will try to fix this case.
sounds good

> For Qt5 build only provided libraries within yarock will work.
hmm, shame

> Sorry for the lack of clarity...
thank you for your time to answer !

Changed in yarock:
status: New → Won't Fix
Revision history for this message
Rex Dieter (rdieter) wrote :

Fwiw, upstream QtSingleApplication builds fine for Qt5 (but true about Qxt, that one is essentially abandoned these days)

Revision history for this message
Rex Dieter (rdieter) wrote :

OK, the failure to support system qtsingleapplication and qxt was due solely to missing includes

Revision history for this message
martinkg (martin-gansser-c) wrote :

@Rex
Thanks for your patch, yarock compiles with your patch for qt5 enabled, but segfaults on start.
Can you send me a link to a yarock-1.1.4..src.rpm file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.