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

Build fails with WITH_GSL=OFF #50076

Closed
1 of 2 tasks
kannes opened this issue Sep 3, 2022 · 2 comments · Fixed by #50555
Closed
1 of 2 tasks

Build fails with WITH_GSL=OFF #50076

kannes opened this issue Sep 3, 2022 · 2 comments · Fixed by #50555
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@kannes
Copy link
Contributor

kannes commented Sep 3, 2022

What is the bug or the crash?

Building QGIS fails for me if I disable WITH_GSL:

[ 97%] Linking CXX shared library ../../output/lib/libqgis_app.so
/usr/bin/ld: CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o: in function `qt_getEnumMetaObject(QgsImageWarper::ResamplingMethod)':
qgssettingsregistryapp.cpp:(.text._Z20qt_getEnumMetaObjectN14QgsImageWarper16ResamplingMethodE[_Z20qt_getEnumMetaObjectN14QgsImageWarper16ResamplingMethodE]+0xe): undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o: in function `QMetaEnum QMetaEnum::fromType<QgsImageWarper::ResamplingMethod>()':
qgssettingsregistryapp.cpp:(.text._ZN9QMetaEnum8fromTypeIN14QgsImageWarper16ResamplingMethodEEES_v[_ZN9QMetaEnum8fromTypeIN14QgsImageWarper16ResamplingMethodEEES_v]+0x10): undefined reference to `QgsImageWarper::staticMetaObject'
collect2: error: ld returned 1 exit status
make[2]: *** [src/app/CMakeFiles/qgis_app.dir/build.make:4781: output/lib/libqgis_app.so.3.27.0] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:6767: src/app/CMakeFiles/qgis_app.dir/all] Fehler 2
make: *** [Makefile:166: all] Fehler 2

Steps to reproduce the issue

  1. Set WITH_GSL=OFF
  2. make
  3. See the build fail

Versions

Recent master, a87893b

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

Ubuntu 22.04.1 LTS

@kannes kannes added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 3, 2022
@agiudiceandrea agiudiceandrea added the Build/Install Related to compiling or installing QGIS label Sep 3, 2022
@kannes
Copy link
Contributor Author

kannes commented Sep 6, 2022

I did reproduce it on Archlinux with ninja with today's master:

...
  cmake -G "Ninja" ../ \
    -DCMAKE_INSTALL_PREFIX=/opt/$pkgname \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DQGIS_MANUAL_SUBDIR=share/man \
    -DENABLE_TESTS=FALSE \
    -DWITH_3D=TRUE \
    -DWITH_PDAL=TRUE \
    -DWITH_GSL=FALSE

  ninja
...

Here I get:

/usr/bin/ld: src/app/CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o: in function `QMetaEnum QMetaEnum::fromType<QgsImageWarper::ResamplingMethod>()':
/usr/include/qt/QtCore/qmetaobject.h:236: undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: /usr/include/qt/QtCore/qmetaobject.h:236: undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: src/app/CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o: in function `QMetaTypeIdQObject<QgsImageWarper::ResamplingMethod, 16>::qt_metatype_id()':
/usr/include/qt/QtCore/qmetatype.h:2021: undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: /usr/include/qt/QtCore/qmetatype.h:2021: undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: src/app/CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o: in function `QMetaEnum QMetaEnum::fromType<QgsImageWarper::ResamplingMethod>()':
/usr/include/qt/QtCore/qmetaobject.h:236: undefined reference to `QgsImageWarper::staticMetaObject'
/usr/bin/ld: src/app/CMakeFiles/qgis_app.dir/qgssettingsregistryapp.cpp.o:/usr/include/qt/QtCore/qmetaobject.h:236: more undefined references to `QgsImageWarper::staticMetaObject' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

@troopa81 troopa81 self-assigned this Oct 12, 2022
troopa81 added a commit to troopa81/QGIS that referenced this issue Oct 14, 2022
nyalldawson pushed a commit that referenced this issue Oct 17, 2022
@kannes
Copy link
Contributor Author

kannes commented Oct 18, 2022

Yay thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants