Building Slicer at 5ecfcc37a51 failed on Arch Linux, with QSignalSpy not found message.
This patch is required for a successful build :
$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5158d8759..8aa04ccd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -608,6 +608,7 @@ endif()
# This component is needed for building VTK
if(UNIX AND NOT APPLE)
list(APPEND Slicer_REQUIRED_QT_MODULES X11Extras)
+ list(APPEND Slicer_REQUIRED_QT_MODULES Test)
endif()
find_package(Qt5 COMPONENTS Core QUIET)
Just FYI, in case it would need a fix somewhere, if it’s not Arch specific.
3 Likes
Thank you @chir.set . This looks to me related to the following PR
Slicer:master
← ALive-research:comp/qtconcurrent_qttest
opened 08:14AM - 08 Feb 22 UTC
Qt modules Concurrent and Test are explicit requirements for CTK. This
commit a… dds these as requirements for Slicer too.
The bottom line is that we need to conciliate the Slicer Qt requirements with those of CTK as @jcfr suggested in the PR. I’ll try to give more priority to solve this issue so these types of errors don’t occur in the future
Here’s the corresponding issue report:
opened 08:12AM - 19 Jun 22 UTC
closed 02:09PM - 19 Jun 22 UTC
type:bug
## Summary
fail to build master branch:
```
/build/3dslicer-git/src/3dslice… r/Base/QTCore/qSlicerExtensionsManagerModel.cxx:31:10: fatal error: QSignalSpy: No such file or directory
31 | #include <QSignalSpy>
| ^~~~~~~~~~~~
compilation terminated.
```
see also the complete build log [here](https://github.com/Slicer/Slicer/files/8934955/log.txt.tar.gz). You could jump to the line 72251 for the error messages.
Maybe we forget to add `testlib` according to Qt official [doc](https://doc.qt.io/qt-5/qsignalspy.html)?
## Steps to reproduce
I build 3dslicer with this [PKGBUILD](https://github.com/archlinuxcn/repo/blob/8c62f8b6aca24634780329e42c49286236610ebf/archlinuxcn/3dslicer-git/PKGBUILD) on ArchLinux with minor modification. I use
```
make -C "build" VERBOSE=1
```
to print more information.
## Expected behavior
## Environment
- Slicer version: the master branch, date 20220619
- Operating system: ArchLinux
1 Like
@chir.set , @jamesobutler Slicer/Slicer#6437 and Slicer/Slicer#6165 point to similar problems but are not exactly the same. One refers to a compilation error when building slicer and the other refers to a possible configuration error on CTK when building the superbuild. Sorry for the confusion.