Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

على ٣٠/٠٣/٤٥ ‫٠٧:١٩ ص، كتب Haowei Hsu:

Hello, mehdi.

After running *'pacman -R gcc msys2-runtime-devel'*, I then built it again.
This time, the previous error disappeared. However, there is a new error.

---
Haowei Hsu


It seems that you are using an outdated MSYS2
Please update your packages and try again
run 'pacman -Syuu' twice.
--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Haowei Hsu
Hello, mehdi.

After running *'pacman -R gcc msys2-runtime-devel'*, I then built it again.
This time, the previous error disappeared. However, there is a new error.

---
Haowei Hsu
hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ pacman -R msys2-runtime-devel
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing msys2-runtime-devel breaks dependency 'msys2-runtime-devel' 
required by gcc

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ pacman -R gcc msys2-runtime-devel
checking dependencies...

Packages (2) gcc-11.3.0-4  msys2-runtime-devel-3.4.8-1

Total Removed Size:  154.01 MiB

:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks...
(1/1) Removing old entries from the info directory file...
:: Processing package changes...
(1/2) removing gcc  
 
[###] 100%
(2/2) removing msys2-runtime-devel  
 
[###] 100%

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ cd ../..

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ rm -rf build

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ mkdir build && cd build

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build
$ mkdir mingw-release && cd mingw-release

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ ../../configure -release -developer-build -nomake examples -nomake tests -- 
-DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF
+ mkdir -p qtbase
+ cd qtbase
+ exec /c/Test/qt-everywhere-src-6.6.0/qtbase/configure -top-level -release 
-developer-build -nomake examples -nomake tests -- -DFEATURE_system_zlib=OFF 
-DFEATURE_zstd=OFF
-- Windows 10 SDK version:
'C:/msys64/mingw64/bin/cmake.exe' '-DFEATURE_system_zlib=OFF' 
'-DFEATURE_zstd=OFF' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' 
'-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' 
'-DCMAKE_BUILD_TYPE=Release' '-DINPUT_developer_build=yes' '-G' 'Ninja' 
'C:/Test/qt-everywhere-src-6.6.0'
-- The CXX compiler identification is GNU 13.2.0
-- The C compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/msys64/mingw64/bin/cc.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - 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: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies of submodule 'qtquicktimeline'
-- Checking dependencies of submodule 'qtquick3d'
-- Checking dependencies of submodule 'qtmultimedia'
-- Checking dependencies of submodule 'qt3d'
-- Checking dependencies of submodule 'qt5compat'
-- Checking dependencies of submodule 'qtactiveqt'
-- Checking dependencies of submodule 'qtcharts'
-- Checking dependencies of submodule 'qtcoap'
-- Checking dependencies of submodule 'qtconnectivity'
-- Checking dependencies of submodule 'qtdatavis3d'
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qthttpserver'
-- Checking dependencies of submodule 'qttools'
-- Checking dependencies of submodule 'qtserialport'
-- Checking dependencies of submodule 'qtpositioning'
-- Checking dependencies of submodule 'qtwebchannel'
-- Checking dependencies of submodule 'qtwebengine'
-- Checking dependencies of submodule 'qtdoc'
-- Checking dependencies of submodule 'qtgraphs'
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtlocation'
-- Checking dependencies of submodule 'qtlottie'
-- Checking dependencies of submodule 'qtmqtt'
-- Checking dependencies of submodule 'qtnetworkauth'
-- Checking dependencies of submodule 'qtopcua'
-- Checking dependencies of submodule 'qtquick3dphysics'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- Checking dependencies of submodule 'qtremoteobjects'
-- Checking dependencies of submodule 'qtscxml'
-- Checking dependencies of submodule 'qtsensors'
-- Checking dependencies of submodule 'qtserialbus'
-- Checking dependencies of submodule 'qtspeech'
-- Checking dependencies of submodule 'qttranslations

Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

على ٣٠/٠٣/٤٥ ‫٠٦:٢١ ص، كتب مهدي شينون:



Hi,

Please, remove 'msys2-runtime-devel' package ('pacman _rusc 
msys2-runtime-devel' and try again.

cmake is picking libraries from MSYS environment.
see: https://www.msys2.org/docs/environments/

M. Chinoune


I mean 'pacman -Rusc msys2-runtime-devel'

--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

على ٣٠/٠٣/٤٥ ‫٠٤:٠٧ ص، كتب Haowei Hsu:

Hello, Qt Development Team.

Here are my installed mingw64-specific packages in the MINGW64 shell.
Run the command:

  * *pacman -Qs mingw-w64-x86_64*

See the /LOG-my-mingw64-installed-packages.txt/
Any idea what happened?
---
Haowei Hsu



Hi,

Please, remove 'msys2-runtime-devel' package ('pacman _rusc 
msys2-runtime-devel' and try again.

cmake is picking libraries from MSYS environment.
see: https://www.msys2.org/docs/environments/

M. Chinoune
--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Haowei Hsu
Hello, Qt Development Team.

Here are my installed mingw64-specific packages in the MINGW64 shell.
Run the command:

   - *pacman -Qs mingw-w64-x86_64*

See the *LOG-my-mingw64-installed-packages.txt*
Any idea what happened?
---
Haowei Hsu
hwhsu1231@vb-windows MINGW64 ~
$ pacman -Qs mingw-w64-x86_64
local/mingw-w64-x86_64-binutils 2.41-1 (mingw-w64-x86_64-toolchain)
A set of programs to assemble and manipulate binary and object files 
(mingw-w64)
local/mingw-w64-x86_64-brotli 1.0.9-6
Brotli compression library (mingw-w64)
local/mingw-w64-x86_64-bzip2 1.0.8-2
A high-quality data compression program (mingw-w64)
local/mingw-w64-x86_64-c-ares 1.19.1-1
C library that performs DNS requests and name resolves asynchronously 
(mingw-w64)
local/mingw-w64-x86_64-ca-certificates 20230311-1
Common CA certificates (mingw-w64)
local/mingw-w64-x86_64-clang 16.0.5-3
C language family frontend for LLVM (mingw-w64)
local/mingw-w64-x86_64-clang-tools-extra 16.0.5-3
Extra tools built using Clang's tooling APIs (mingw-w64)
local/mingw-w64-x86_64-cmake 3.27.3-1
A cross-platform open-source make system (mingw-w64)
local/mingw-w64-x86_64-crt-git 11.0.0.r124.ge89de847d-1 
(mingw-w64-x86_64-toolchain)
MinGW-w64 CRT for Windows
local/mingw-w64-x86_64-curl 8.2.1-1
Command line tool and library for transferring data with URLs (mingw-w64)
local/mingw-w64-x86_64-expat 2.5.0-1
An XML parser library (mingw-w64)
local/mingw-w64-x86_64-gcc 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
local/mingw-w64-x86_64-gcc-ada 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (Ada) for MinGW-w64
local/mingw-w64-x86_64-gcc-fortran 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (Fortran) for MinGW-w64
local/mingw-w64-x86_64-gcc-libgfortran 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (libgfortran) for MinGW-w64
local/mingw-w64-x86_64-gcc-libs 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (libraries) for MinGW-w64
local/mingw-w64-x86_64-gcc-objc 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
local/mingw-w64-x86_64-gdb 13.2-3 (mingw-w64-x86_64-toolchain)
GNU Debugger (mingw-w64)
local/mingw-w64-x86_64-gdb-multiarch 13.2-3 (mingw-w64-x86_64-toolchain)
GNU Debugger (supports all targets)
local/mingw-w64-x86_64-gettext 0.21.1-2
GNU internationalization library (mingw-w64)
local/mingw-w64-x86_64-gmp 6.3.0-1
A free library for arbitrary precision arithmetic (mingw-w64)
local/mingw-w64-x86_64-headers-git 11.0.0.r124.ge89de847d-1 
(mingw-w64-x86_64-toolchain)
MinGW-w64 headers for Windows
local/mingw-w64-x86_64-icu 73.2-1
International Components for Unicode library (mingw-w64)
local/mingw-w64-x86_64-isl 0.26-1
Library for manipulating sets and relations of integer points bounded by 
linear constraints (mingw-w64)
local/mingw-w64-x86_64-jansson 2.14-2
C library for encoding, decoding and manipulating JSON data (mingw-w64)
local/mingw-w64-x86_64-jemalloc 5.3.0-1
General-purpose scalable concurrent malloc implementation (mingw64)
local/mingw-w64-x86_64-jsoncpp 1.9.5-2
A C++ library for interacting with JSON (mingw-w64)
local/mingw-w64-x86_64-libarchive 3.7.1-1
Multi-format archive and compression library (mingw-w64)
local/mingw-w64-x86_64-libb2 0.98.1-2
C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions 
(mingw-w64)
local/mingw-w64-x86_64-libffi 3.4.4-1
A portable, high level programming interface to various calling conventions 
(mingw-w64)
local/mingw-w64-x86_64-libgccjit 13.2.0-2 (mingw-w64-x86_64-toolchain)
GNU Compiler Collection (libgccjit) for MinGW-w64
local/mingw-w64-x86_64-libiconv 1.17-3
Character encoding conversion library (mingw-w64)
local/mingw-w64-x86_64-libidn2 2.3.4-1
Implementation of the Stringprep, Punycode and IDNA specifications 
(mingw-w64)
local/mingw-w64-x86_64-libmangle-git 11.0.0.r124.ge89de847d-1 
(mingw-w64-x86_64-toolchain)
MinGW-w64 libmangle
local/mingw-w64-x86_64-libpsl 0.21.2-4
Public Suffix List library (mingw-w64)
local/mingw-w64-x86_64-libssh2 1.11.0-1
A library implementing the SSH2 protocol as defined by Internet Drafts 
(mingw-w64)
local/mingw-w64-x86_64-libsystre 1.0.1-4
Wrapper library around TRE that provides POSIX API (mingw-w64)
local/mingw-w64-x86_64-libtasn1 4.19.0-1
A library for Abstract Syntax Notation One (ASN.1) and Distinguish Encoding 
Rules (DER) manipulation (mingw-w64)
local/mingw-w64-x86_64-libtre-git r128.6fb7206-2
The approximate regex matching library and agrep command line tool 
(mingw-w64)
local/mingw-w64-x86_64-libunistring 1.1-1
Library for manipulating Unicode strings and C strings. (mingw-w64)
local/mingw-w64-x86_64-libuv 1.46.0-1
Cross-platform asynchronous I/O (mingw-w64)
local/mingw-w64-x86_64-libwinpthread-git 11.0.0.r124.ge89de847d-1 
(mingw-w64-x86_64-toolchain)

Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Haowei Hsu
Hello, Thiago.

That said, it's a good idea to install the mingw64-postgresql package
> instead
> and not depend on C:/Program Files.
>

I installed mingw-w64-x86_64-postgresql
 and tried
it again, but it still failed to build 6.6.0.

---
Haowei Hsu
hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ pacman -Qs mingw-w64-x86_64-postgresql

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ pacman -Ss mingw-w64-x86_64-postgresql
mingw64/mingw-w64-x86_64-postgresql 15.3-2
Libraries for use with PostgreSQL (mingw-w64)

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ pacman -S mingw-w64-x86_64-postgresql
resolving dependencies...
looking for conflicting packages...

Packages (4) mingw-w64-x86_64-icu-73.2-1  mingw-w64-x86_64-libxslt-1.1.38-1  
winpty-0.4.3-1  mingw-w64-x86_64-postgresql-15.3-2

Total Download Size:31.36 MiB
Total Installed Size:  167.24 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-x86_64-libxslt-1.1.38-1-any 364.1 KiB   340 
KiB/s 00:01 [#] 100%
 winpty-0.4.3-1-x86_64 500.5 KiB   321 
KiB/s 00:02 [#] 100%
 mingw-w64-x86_64-postgresql-15.3-2-any  8.3 MiB  4.23 
MiB/s 00:02 [#] 100%
 mingw-w64-x86_64-icu-73.2-1-any22.3 MiB  3.74 
MiB/s 00:06 [#] 100%
 Total (4/4)31.4 MiB  5.24 
MiB/s 00:06 [#] 100%
(4/4) checking keys in keyring  
   [#] 100%
(4/4) checking package integrity
   [#] 100%
(4/4) loading package files 
   [#] 100%
(4/4) checking for file conflicts   
   [#] 100%
(4/4) checking available disk space 
   [#] 100%
:: Processing package changes...
(1/4) installing mingw-w64-x86_64-icu   
   [#] 100%
(2/4) installing mingw-w64-x86_64-libxslt   
   [#] 100%
(3/4) installing winpty 
   [#] 100%
(4/4) installing mingw-w64-x86_64-postgresql
   [#] 100%

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ mkdir build && cd build

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build
$ mkdir mingw-release && cd mingw-release

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ ../../configure -release -developer-build -nomake examples -nomake tests -- 
-DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF
+ mkdir -p qtbase
+ cd qtbase
+ exec /c/Test/qt-everywhere-src-6.6.0/qtbase/configure -top-level -release 
-developer-build -nomake examples -nomake tests -- -DFEATURE_system_zlib=OFF 
-DFEATURE_zstd=OFF
-- Windows 10 SDK version:
'C:/msys64/mingw64/bin/cmake.exe' '-DFEATURE_system_zlib=OFF' 
'-DFEATURE_zstd=OFF' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' 
'-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' 
'-DCMAKE_BUILD_TYPE=Release' '-DINPUT_developer_build=yes' '-G' 'Ninja' 
'C:/Test/qt-everywhere-src-6.6.0'
-- The CXX compiler identification is GNU 13.2.0
-- The C compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/msys64/mingw64/bin/cc.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - 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: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies

Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون


على ٢٩/٠٣/٤٥ ‫٠٨:٣٧ م، كتب مهدي شينون:
libwinpthread.dll.a belongs to mingw-w64-libwinpthread-git package 
while librt.a belongs to msys-runtime-devel package (cygwin) which 
should be installed when building for MinGW-w64.




I mean msys-runtime-devel shouldn't be installed.

--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

  


على ٢٩/٠٣/٤٥
  ‫٠٨:٤٠ م، كتب Thiago Macieira:


  On Saturday, 14 October 2023 08:59:01 PDT مهدي شينون wrote:

  
Hi Haowei Hsu,


According the log posted by you, cmake is picking libraries outside of
MINGW64 environment i.e. from MSYS environment and `C:\Program Files\`
which are both not compatible with MinGW-w64.

  
  
Why wouldn't they be?



As I said in another message, cmake is
  picking some libraries from MSYS environment (Which is a fork of
  CygWin) which is no compatible with MinGW-w64.




  

The only one cmake says it found in Program Files is PostgreSQL:
-- [QtBase] Found PostgreSQL: C:/Program Files/PostgreSQL/14/lib/libpq.lib 
(found version "14.5")

libpq is a C API, so it is ABI-compatible with MinGW provided it's the 
same CRT of course. This is a .lib, so it's impossible to know if it's a 
static library or a DLL import (because Windows is stupid this way and Visual 
Studio makes it even worse), and it's likely trying to link the plugin will 
fail, but the problem happened before that point, so it can't be the root 
cause.

That said, it's a good idea to install the mingw64-postgresql package instead 
and not depend on C:/Program Files.


  
  

  

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Thiago Macieira
On Saturday, 14 October 2023 08:59:01 PDT مهدي شينون wrote:
> Hi Haowei Hsu,
> 
> 
> According the log posted by you, cmake is picking libraries outside of
> MINGW64 environment i.e. from MSYS environment and `C:\Program Files\`
> which are both not compatible with MinGW-w64.

Why wouldn't they be?

The only one cmake says it found in Program Files is PostgreSQL:
-- [QtBase] Found PostgreSQL: C:/Program Files/PostgreSQL/14/lib/libpq.lib 
(found version "14.5")

libpq is a C API, so it is ABI-compatible with MinGW provided it's the 
same CRT of course. This is a .lib, so it's impossible to know if it's a 
static library or a DLL import (because Windows is stupid this way and Visual 
Studio makes it even worse), and it's likely trying to link the plugin will 
fail, but the problem happened before that point, so it can't be the root 
cause.

That said, it's a good idea to install the mingw64-postgresql package instead 
and not depend on C:/Program Files.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering


smime.p7s
Description: S/MIME cryptographic signature
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون


على ٢٩/٠٣/٤٥ ‫٠٨:٢٦ م، كتب Thiago Macieira:

Anyway, the problem here is not Qt, but the environment, somehow. The symbol
"sem_wait" is defined in two libraries:

libpthread.dll.a(libwinpthread_1_dll_d000137.o):(.text+0x0): multiple
definition of `sem_wait
librt.a(t-msys_2_0_dll_d001304.o):(.text+0x0): first defined here


libwinpthread.dll.a belongs to mingw-w64-libwinpthread-git package while 
librt.a belongs to msys-runtime-devel package (cygwin) which should be 
installed when building for MinGW-w64.


--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Thiago Macieira
On Saturday, 14 October 2023 10:53:02 PDT Cristian Adam via Development wrote:
> You are trying to compile Qt on a configuration that Qt is not officially
> supporting, namely MSYS2.

MSYS2's MINGW64 works just fine. I was building using it up until yesterday 
(now I'm using UCRT64).

Anyway, the problem here is not Qt, but the environment, somehow. The symbol 
"sem_wait" is defined in two libraries:

libpthread.dll.a(libwinpthread_1_dll_d000137.o):(.text+0x0): multiple 
definition of `sem_wait
librt.a(t-msys_2_0_dll_d001304.o):(.text+0x0): first defined here

Both appear to be import libraries, so I don't know why the linker thinks 
there's a conflict.

I repeat that it works for me, but for Haowei it doesn't. I don't know why.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering


smime.p7s
Description: S/MIME cryptographic signature
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

Hi,


None of the patches is required to build qt6-base, It could build 
successfully without them.


Some of them are about renaming to avoid conflict with qt5-base, one to 
fix building PyQt6 another for PySide6 ...etc




على ٢٩/٠٣/٤٥ ‫٠٦:٥٣ م، كتب Cristian Adam via Development:

Hi,

You are trying to compile Qt on a configuration that Qt is not 
officially supporting, namely MSYS2.


At Supported Platforms | Qt 6.6 
 you can see that on 
Windows Qt supports building with the Visual C++ compiler and a MinGW 
toolchain. The MinGW toolchain that Qt uses is mentioned at MinGW - Qt 
Wiki .


If you want to build Qt with MSYS2 see Base Package: 
mingw-w64-qt6-base - MSYS2 Packages 
 for more 
information. There you can see that the MSYS2 project has a few 
patches that need to be applied on top.


Cheers,
Cristian.
Supported Platforms | Qt 6.6 


The platforms supported by Qt.
doc.qt.io



*From:* Development  on behalf of 
Haowei Hsu 

*Sent:* Saturday, October 14, 2023 16:59
*To:* Qt development mailing list 
*Subject:* Re: [Development] Failed to run configure.bat in qt/qt5 on 
MINGW64/MSYS2 shell?

Hello, Qt Development Team.

This time, I tried with *6.6.0* version, 
qt-everywhere-src-6.6.0.tar.xz 
,

but it still failed to build 'docs' target.

 1. *mkdir build && cd build*
 2. *mkdir mingw-release && cd mingw-release*
 3. *../../configure -release -developer-build -nomake examples
-nomake tests -- -DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF*
 4. *cmake --build . --target docs --parallel 4* *(failed)*

Since it is *the latest release version* for now, I wonder
whether it is a bug? Or did I miss something?

---
Haowei Hsu



--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

  
Hi,


None of the patches is required to build
  qt6-base, It could build successfully without them.
 Some of them are about renaming to avoid conflict with qt5-base,
  one to fix building PyQt6 another for PySide6 ...etc





على ٢٩/٠٣/٤٥
  ‫٠٦:٥٣ م، كتب Cristian Adam via Development:


  
  
  
Hi,
  

  
  
You are trying to compile Qt on a configuration that Qt is not
officially supporting, namely MSYS2.
  

  
  
At Supported Platforms | Qt 6.6 you
can see that on Windows Qt supports building with the Visual C++
compiler and a MinGW toolchain. The MinGW toolchain that Qt uses
is mentioned at MinGW
  - Qt Wiki.
  

  
  
If
  you want to build Qt with MSYS2 see Base Package: mingw-w64-qt6-base -
MSYS2 Packages for more information. There you can see
  that the MSYS2 project has a few patches that need to be
  applied on top.
  

  
  
Cheers,
  
  
Cristian.
  

  

  

  
Supported Platforms | Qt
  6.6
  
The platforms supported by Qt.
  
doc.qt.io

  

  

  
  

  
  
  From:
  Development  on
  behalf of Haowei Hsu 
  Sent: Saturday, October 14, 2023 16:59
  To: Qt development mailing list
  
  Subject: Re: [Development] Failed to run configure.bat
  in qt/qt5 on MINGW64/MSYS2 shell?
 
  
  

  Hello, Qt Development Team.


This time, I tried with 6.6.0
  version, 
qt-everywhere-src-6.6.0.tar.xz,
but it still failed to build 'docs' target.

  

  mkdir
build && cd build
  mkdir
mingw-release && cd mingw-release

../../configure -release
-developer-build -nomake examples -nomake tests --
-DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF
cmake --build . --target
docs --parallel 4 (failed)
  
  Since it is the latest
release version for now, I wonder
  whether it is a bug? Or did I miss something?
  
  
  ---
  Haowei Hsu

  
  


  

  
  
  

  

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Cristian Adam via Development
Hi,

You are trying to compile Qt on a configuration that Qt is not officially 
supporting, namely MSYS2.

At Supported Platforms | Qt 
6.6 you can see that on 
Windows Qt supports building with the Visual C++ compiler and a MinGW 
toolchain. The MinGW toolchain that Qt uses is mentioned at MinGW - Qt 
Wiki.

If you want to build Qt with MSYS2 see Base Package: mingw-w64-qt6-base - MSYS2 
Packages for more 
information. There you can see that the MSYS2 project has a few patches that 
need to be applied on top.

Cheers,
Cristian.
Supported Platforms | Qt 6.6
The platforms supported by Qt.
doc.qt.io


From: Development  on behalf of Haowei Hsu 

Sent: Saturday, October 14, 2023 16:59
To: Qt development mailing list 
Subject: Re: [Development] Failed to run configure.bat in qt/qt5 on 
MINGW64/MSYS2 shell?

Hello, Qt Development Team.

This time, I tried with 6.6.0 version, 
qt-everywhere-src-6.6.0.tar.xz,
but it still failed to build 'docs' target.

  1.  mkdir build && cd build
  2.  mkdir mingw-release && cd mingw-release
  3.  ../../configure -release -developer-build -nomake examples -nomake tests 
-- -DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF
  4.  cmake --build . --target docs --parallel 4 (failed)

Since it is the latest release version for now, I wonder
whether it is a bug? Or did I miss something?

---
Haowei Hsu
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


[Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread مهدي شينون

Hi Haowei Hsu,


According the log posted by you, cmake is picking libraries outside of 
MINGW64 environment i.e. from MSYS environment and `C:\Program Files\` 
which are both not compatible with MinGW-w64.



Q: Why don't you use the pre-built packages, do they miss something?


M. Chinoune

--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

2023-10-14 Thread Haowei Hsu
Hello, Qt Development Team.

This time, I tried with *6.6.0* version, qt-everywhere-src-6.6.0.tar.xz

,
but it still failed to build 'docs' target.

   1. *mkdir build && cd build*
   2. *mkdir mingw-release && cd mingw-release*
   3. *../../configure -release -developer-build -nomake examples -nomake
   tests -- -DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF*
   4. *cmake --build . --target docs --parallel 4* *(failed)*

Since it is *the latest release version* for now, I wonder
whether it is a bug? Or did I miss something?

---
Haowei Hsu

>
hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0
$ mkdir build && cd build

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build
$ mkdir mingw-release && cd mingw-release

hwhsu1231@vb-windows MINGW64 /c/Test/qt-everywhere-src-6.6.0/build/mingw-release
$ ../../configure -release -developer-build -nomake examples -nomake tests -- 
-DFEATURE_system_zlib=OFF -DFEATURE_zstd=OFF
+ mkdir -p qtbase
+ cd qtbase
+ exec /c/Test/qt-everywhere-src-6.6.0/qtbase/configure -top-level -release 
-developer-build -nomake examples -nomake tests -- -DFEATURE_system_zlib=OFF 
-DFEATURE_zstd=OFF
-- Windows 10 SDK version:
'C:/msys64/mingw64/bin/cmake.exe' '-DFEATURE_system_zlib=OFF' 
'-DFEATURE_zstd=OFF' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' 
'-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' 
'-DCMAKE_BUILD_TYPE=Release' '-DINPUT_developer_build=yes' '-G' 'Ninja' 
'C:/Test/qt-everywhere-src-6.6.0'
-- The CXX compiler identification is GNU 13.2.0
-- The C compiler identification is GNU 13.2.0
-- Found assembler: C:/msys64/mingw64/bin/cc.exe

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - 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: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies of submodule 'qtquicktimeline'
-- Checking dependencies of submodule 'qtquick3d'
-- Checking dependencies of submodule 'qtmultimedia'
-- Checking dependencies of submodule 'qt3d'
-- Checking dependencies of submodule 'qt5compat'
-- Checking dependencies of submodule 'qtactiveqt'
-- Checking dependencies of submodule 'qtcharts'
-- Checking dependencies of submodule 'qtcoap'
-- Checking dependencies of submodule 'qtconnectivity'
-- Checking dependencies of submodule 'qtdatavis3d'
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qthttpserver'
-- Checking dependencies of submodule 'qttools'
-- Checking dependencies of submodule 'qtserialport'
-- Checking dependencies of submodule 'qtpositioning'
-- Checking dependencies of submodule 'qtwebchannel'
-- Checking dependencies of submodule 'qtwebengine'
-- Checking dependencies of submodule 'qtdoc'
-- Checking dependencies of submodule 'qtgraphs'
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtlocation'
-- Checking dependencies of submodule 'qtlottie'
-- Checking dependencies of submodule 'qtmqtt'
-- Checking dependencies of submodule 'qtnetworkauth'
-- Checking dependencies of submodule 'qtopcua'
-- Checking dependencies of submodule 'qtquick3dphysics'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- Checking dependencies of submodule 'qtremoteobjects'
-- Checking dependencies of submodule 'qtscxml'
-- Checking dependencies of submodule 'qtsensors'
-- Checking dependencies of submodule 'qtserialbus'
-- Checking dependencies of submodule 'qtspeech'
-- Checking dependencies of submodule 'qttranslations'
-- Checking dependencies of submodule 'qtvirtualkeyboard'
-- Checking dependencies of submodule 'qtwayland'
-- Checking dependencies of submodule 'qtwebview'
-- Configuring submodule 'qtbase'
-- [QtBase] CMAKE_BUILD_TYPE was set to: 'Release'
-- [QtBase] Checking for feature set changes
-- [QtBase] CMAKE_STRIP (original): C:/msys64/mingw64/bin/strip.exe
-- [QtBase] Performing Test strip --keep-section
-- [QtBase] Performing Test strip --keep-section - TRUE
-- [QtBase] CMAKE_STRIP (used by Qt): 
C:/Test/qt-everywhere-src-6.6.0/build/mingw-release/qtbase/./bin/qt-internal-strip.bat
-- [QtBase] Building architecture extraction project with the following CMake 
arguments:
-DCMAKE_C_FLAGS_DEBUG=-g
-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
-DCMAKE_CXX_F