NEW: x11/qt6

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

NEW: x11/qt6

Rafael Sadowski
Hi ports@

please find a attached Qt 6.0.2 as tarball. Qt6 is at an early point.
There are just a handful applications and none of them are ported to
OpenBSD. The following modules are currently available:

 - qttranslations
 - qttools
 - qtsvg
 - qtshadertools
 - qtquicktimeline
 - qtquickcontrols2
 - qtquick3d
 - qtdeclarative
 - qtbase
 - qt5compat

 - qtwayland (not ported)
 - qtdoc (not ported)


Further modules will follow in later Qt versions. However I think the
6.0.2 port is ready to import. Some patches come form x11/qt5. With
tb@'s help, I married QtBase with LibreSSL again. We are now on our own
again as Gentoo no longer follows this path. From the port perspective,
I have decided on the following points:

- Prefix all Qt6 ports with qt6-*. This way we don't run into any
  conflicts and I think it's better than the naming-mix with qt5.
  - qt6-qtbase-6.0.2.tgz
  - qt6-qt5compat-6.0.2.tgz
  - qt6-qtdeclarative-6.0.2.tgz
  - qt6-qtquick3d-6.0.2.tgz
  - qt6-qtquickcontrols2-6.0.2.tgz
  - qt6-qtquicktimeline-6.0.2.tgz
  - qt6-qtshadertools-6.0.2.tgz
  - qt6-qtsvg-6.0.2.tgz
  - qt6-qttools-6.0.2.tgz
  - qt6-qttranslations-6.0.2.tgz

- Rename all imported qt tools with the -qt6 suffix like we do with qt5.
  This makes it easier to use several versions at the same time.
- x11/qt6 is based on x11/qt5. I have tried to make many things simpler
  and cleaner.
- Qt6 switched to cmake as build system and needs help with *FLAGS. The
  interesting part:

CXXFLAGS += -I${LOCALBASE}/include
LDFLAGS += -L${LOCALBASE}/lib -lc

CONFIGURE_ARGS += -DCMAKE_EXE_LINKER_FLAGS_INIT="${LDFLAGS}" \
                        -DCMAKE_MODULE_LINKER_FLAGS_INIT="${LDFLAGS}" \
                        -DCMAKE_SHARED_LINKER_FLAGS_INIT="${LDFLAGS}"

*_INIT  should not overwrite existing flags.

I think those were the exciting parts. Reviews welcome!

As it does not yet have a consumer, I would like to import it.

Rafael Sadowski

qt6.tar.gz (86K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: x11/qt6

Matthias Kilian
Hi,

On Tue, Mar 23, 2021 at 06:45:28AM +0100, Rafael Sadowski wrote:
> please find a attached Qt 6.0.2 as tarball. Qt6 is at an early point.
> There are just a handful applications and none of them are ported to
> OpenBSD. The following modules are currently available:

qtquick3d fails for me (building with dpb on amd64):

>>> Building on localhost under x11/qt6/qtquick3d
         BDEPENDS = [devel/ninja;x11/qt5/qttools,-main;x11/qt6/qtbase,-main;multimedia/assimp;x11/qt6/qtshadertools;x11/qt6/qtdeclarative;devel/dwz;archivers/xz;devel/cmake]
         DIST = [x11/qt6/qtquick3d:qt/qtquick3d-everywhere-src-6.0.2.tar.xz]
         FULLPKGNAME = qt6-qtquick3d-6.0.2
         RDEPENDS = [x11/qt6/qtbase,-main;multimedia/assimp;x11/qt6/qtshadertools;x11/qt6/qtdeclarative]
>>> Running signature in x11/qt6/qtquick3d at 1616587211.50
qt6-qtquick3d-6.0.2: absent
(Junk lock obtained for localhost at 1616587212.44)
>>> Running depends in x11/qt6/qtquick3d at 1616587212.46
/usr/sbin/pkg_add -aI -rqU -Dupdate -Dupdatedepends -Drepair assimp-5.0.0 qt6-qtshadertools-6.0.2
was: /usr/sbin/pkg_add -aI -rqU -Dupdate -Dupdatedepends -Drepair assimp-5.0.0 cmake-3.19.4p0v0 dwz-0.14 ninja-1.10.2p0 qt6-qtbase-6.0.2 qt6-qtdeclarative-6.0.2 qt6-qtshadertools-6.0.2 qttools-5.15.2 xz-5.2.5
/usr/sbin/pkg_add -aI -rqU -Dupdate -Dupdatedepends -Drepair assimp-5.0.0 qt6-qtshadertools-6.0.2
>>> Running show-prepare-results in x11/qt6/qtquick3d at 1616587220.28
===> x11/qt6/qtquick3d
===> qt6-qtquick3d-6.0.2 depends on: cmake-* -> cmake-3.19.4p0v0
===> qt6-qtquick3d-6.0.2 depends on: ninja->=1.5.1 -> ninja-1.10.2p0
===> qt6-qtquick3d-6.0.2 depends on: qttools-* -> qttools-5.15.2
===> qt6-qtquick3d-6.0.2 depends on: dwz-* -> dwz-0.14
===> qt6-qtquick3d-6.0.2 depends on: xz-* -> xz-5.2.5
===> qt6-qtquick3d-6.0.2 depends on: assimp-* -> assimp-5.0.0
===> qt6-qtquick3d-6.0.2 depends on: qt6-qtshadertools->=6.0.2,<6.1 -> qt6-qtshadertools-6.0.2
===> qt6-qtquick3d-6.0.2 depends on: qt6-qtdeclarative->=6.0.2,<6.1 -> qt6-qtdeclarative-6.0.2
===> qt6-qtquick3d-6.0.2 depends on: qt6-qtbase-* -> qt6-qtbase-6.0.2
===>  Verifying specs:  c++ c++abi pthread GL Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlModels Qt6Quick Qt6ShaderTools assimp c m
===>  found c++.7.0 c++abi.5.0 pthread.26.1 GL.17.1 Qt6Core.0.0 Qt6Gui.0.0 Qt6Network.0.0 Qt6OpenGL.0.0 Qt6Qml.0.0 Qt6QmlModels.0.0 Qt6Quick.0.0 Qt6ShaderTools.0.0 assimp.1.0 c.96.0 m.10.1
assimp-5.0.0
cmake-3.19.4p0v0
dwz-0.14
ninja-1.10.2p0
qt6-qtbase-6.0.2
qt6-qtdeclarative-6.0.2
qt6-qtshadertools-6.0.2
qttools-5.15.2
xz-5.2.5
(Junk lock released for localhost at 1616587224.23)
distfiles size=47219840
>>> Running extract in x11/qt6/qtquick3d at 1616587224.25
===> x11/qt6/qtquick3d
===>  Checking files for qt6-qtquick3d-6.0.2
`/home/ports/distfiles/qt/qtquick3d-everywhere-src-6.0.2.tar.xz' is up to date.
>> (SHA256) qt/qtquick3d-everywhere-src-6.0.2.tar.xz: OK
===>  Extracting for qt6-qtquick3d-6.0.2
>>> Running patch in x11/qt6/qtquick3d at 1616587233.61
===> x11/qt6/qtquick3d
===>  Patching for qt6-qtquick3d-6.0.2
===>  Compiler link: clang -> /usr/bin/clang
===>  Compiler link: clang++ -> /usr/bin/clang++
===>  Compiler link: cc -> /usr/bin/cc
===>  Compiler link: c++ -> /usr/bin/c++
>>> Running configure in x11/qt6/qtquick3d at 1616587233.84
===> x11/qt6/qtquick3d
===>  Generating configure for qt6-qtquick3d-6.0.2
===>  Configuring for qt6-qtquick3d-6.0.2
-- The CXX compiler identification is Clang 10.0.1
-- The C compiler identification is Clang 10.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ports/pobj/p2/qt6-qtquick3d-6.0.2/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ports/pobj/p2/qt6-qtquick3d-6.0.2/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /usr/X11R6/lib/libGL.so.17.1  
-- Found WrapOpenGL: TRUE  
-- Found Vulkan: /usr/local/lib/libvulkan.so.0.1  
-- Found OpenSSL: /usr/lib/libcrypto.so.46.1 (found version "2.0.0")  
-- Found WrapOpenSSLHeaders: TRUE  
-- Found WrapOpenSSL: TRUE  
CMake Warning at /usr/local/lib/cmake/Qt6/QtSetup.cmake:223 (message):
  Ccache use was requested, but the program was not found.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:173 (include)
  /usr/local/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:271 (qt_build_internals_set_up_private_api)
  /usr/local/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:376 (qt_build_repo_begin)
  CMakeLists.txt:45 (qt_build_repo)


-- Check for feature set changes
-- Using installed syncqt found at: /usr/local/lib/qt6/libexec/syncqt.pl
-- Running syncqt for module: 'QtQuick3DUtils'
CMake Warning at /usr/local/lib/cmake/Qt6/QtRpathHelpers.cmake:26 (message):
  No known RPATH_REL_BASE for target platform.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6/QtRpathHelpers.cmake:112 (qt_compute_relative_rpath_base)
  /usr/local/lib/cmake/Qt6/QtModuleHelpers.cmake:561 (qt_apply_rpaths)
  src/utils/CMakeLists.txt:7 (qt_internal_add_module)


-- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS
-- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS - Success
-- Performing Test HAVE_DASH_DASH_NO_UNDEFINED
-- Performing Test HAVE_DASH_DASH_NO_UNDEFINED - Success
-- Running syncqt for module: 'QtQuick3DAssetImport'
CMake Warning at /usr/local/lib/cmake/Qt6/QtRpathHelpers.cmake:26 (message):
  No known RPATH_REL_BASE for target platform.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6/QtRpathHelpers.cmake:112 (qt_compute_relative_rpath_base)
  /usr/local/lib/cmake/Qt6/QtModuleHelpers.cmake:561 (qt_apply_rpaths)
  src/assetimport/CMakeLists.txt:7 (qt_internal_add_module)


CMake Warning (dev) at /usr/local/lib/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/local/lib/cmake/assimp-5.0/assimp-config.cmake:1 (include)
  cmake/FindWrapQuick3DAssimp.cmake:7 (find_package)
  /usr/local/lib/cmake/Qt6/QtFindPackageHelpers.cmake:113 (find_package)
  src/plugins/assetimporters/configure.cmake:13 (qt_find_package)
  src/plugins/assetimporters/CMakeLists.txt:9 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/lib/cmake/assimp-5.0/assimpTargets.cmake:85 (message):
  The imported target "assimp::assimp" references the file

     "/usr/local/lib/libassimp.so.5"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/assimp-5.0/assimpTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/assimp-5.0/assimp-config.cmake:1 (include)
  cmake/FindWrapQuick3DAssimp.cmake:7 (find_package)
  /usr/local/lib/cmake/Qt6/QtFindPackageHelpers.cmake:113 (find_package)
  src/plugins/assetimporters/configure.cmake:13 (qt_find_package)
  src/plugins/assetimporters/CMakeLists.txt:9 (include)


-- Configuring incomplete, errors occurred!
See also "/home/ports/pobj/p2/qt6-qtquick3d-6.0.2/build-amd64/CMakeFiles/CMakeOutput.log".
See also "/home/ports/pobj/p2/qt6-qtquick3d-6.0.2/build-amd64/CMakeFiles/CMakeError.log".
*** Error 1 in x11/qt6/qtquick3d (/usr/ports/infrastructure/mk/bsd.port.mk:2908 'do-configure': @cd /home/ports/pobj/p2/qt6-qtquick3d-6.0.2/...)
*** Error 2 in x11/qt6/qtquick3d (/usr/ports/infrastructure/mk/bsd.port.mk:2928 '/home/ports/pobj/p2/qt6-qtquick3d-6.0.2/build-amd64/.configure_done')
*** Error 2 in x11/qt6/qtquick3d (/usr/ports/infrastructure/mk/bsd.port.mk:2602 'configure': @lock=qt6-qtquick3d-6.0.2;  export _LOCKS_HELD=...)
===> Exiting x11/qt6/qtquick3d with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'configure': @: ${echo_msg:=echo};  : ${target:=configure};  for i in ; ...)
>>> Ended at 1616587244.26
max_stuck=7.61/signature=0.99/depends=7.82/show-prepare-results=3.96/extract=9.36/patch=0.24/configure=10.44
Error: job failed with 512 on localhost at 1616587244

Ciao,
        Kili

Reply | Threaded
Open this post in threaded view
|

Re: NEW: x11/qt6

Rafael Sadowski
On Wed Mar 24, 2021 at 01:18:12PM +0100, Matthias Kilian wrote:
> Hi,

Thank you for looking at it. Your CVS tree is outdated. You need my
assimp fix form Sun, 21 Mar 2021 10:03:51 -0600 (MDT).

Reply | Threaded
Open this post in threaded view
|

Re: NEW: x11/qt6

Rafael Sadowski
In reply to this post by Rafael Sadowski
On Tue Mar 23, 2021 at 06:45:28AM +0100, Rafael Sadowski wrote:

> Hi ports@
>
> please find a attached Qt 6.0.2 as tarball. Qt6 is at an early point.
> There are just a handful applications and none of them are ported to
> OpenBSD. The following modules are currently available:
>
>  - qttranslations
>  - qttools
>  - qtsvg
>  - qtshadertools
>  - qtquicktimeline
>  - qtquickcontrols2
>  - qtquick3d
>  - qtdeclarative
>  - qtbase
>  - qt5compat
>
>  - qtwayland (not ported)
>  - qtdoc (not ported)
>
>
> Further modules will follow in later Qt versions. However I think the
> 6.0.2 port is ready to import. Some patches come form x11/qt5. With
> tb@'s help, I married QtBase with LibreSSL again. We are now on our own
> again as Gentoo no longer follows this path. From the port perspective,
> I have decided on the following points:
>
> - Prefix all Qt6 ports with qt6-*. This way we don't run into any
>   conflicts and I think it's better than the naming-mix with qt5.
>   - qt6-qtbase-6.0.2.tgz
>   - qt6-qt5compat-6.0.2.tgz
>   - qt6-qtdeclarative-6.0.2.tgz
>   - qt6-qtquick3d-6.0.2.tgz
>   - qt6-qtquickcontrols2-6.0.2.tgz
>   - qt6-qtquicktimeline-6.0.2.tgz
>   - qt6-qtshadertools-6.0.2.tgz
>   - qt6-qtsvg-6.0.2.tgz
>   - qt6-qttools-6.0.2.tgz
>   - qt6-qttranslations-6.0.2.tgz
>
> - Rename all imported qt tools with the -qt6 suffix like we do with qt5.
>   This makes it easier to use several versions at the same time.
> - x11/qt6 is based on x11/qt5. I have tried to make many things simpler
>   and cleaner.
> - Qt6 switched to cmake as build system and needs help with *FLAGS. The
>   interesting part:
>
> CXXFLAGS += -I${LOCALBASE}/include
> LDFLAGS += -L${LOCALBASE}/lib -lc
>
> CONFIGURE_ARGS += -DCMAKE_EXE_LINKER_FLAGS_INIT="${LDFLAGS}" \
> -DCMAKE_MODULE_LINKER_FLAGS_INIT="${LDFLAGS}" \
> -DCMAKE_SHARED_LINKER_FLAGS_INIT="${LDFLAGS}"
>
> *_INIT  should not overwrite existing flags.
>
> I think those were the exciting parts. Reviews welcome!
>
> As it does not yet have a consumer, I would like to import it.
>
> Rafael Sadowski

FYI, survived an amd64 bulk build.