Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-24 Thread Thiago Macieira
On Wednesday, 23 August 2023 22:17:26 PDT Haowei Hsu wrote: > However, if we currently can't improve windres.exe, is there another way to > improve Qt itself? Yes: don't put software in paths with spaces or other shell-special characters. I've been fighting this problem while working on Qt for

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-23 Thread Thiago Macieira
On Wednesday, 23 August 2023 06:03:24 PDT Alexandru Croitor via Development wrote: > Looking at the log, it appears that mingw's windres.exe can't handle spaces > in paths passed to -I? > > -I "C:/Program Files/PostgreSQL/14/include" > > cc1.exe: fatal error: Files/PostgreSQL/14/include: No

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-23 Thread Alexandru Croitor via Development
Hi, Looking at the log, it appears that mingw's windres.exe can't handle spaces in paths passed to -I? -I "C:/Program Files/PostgreSQL/14/include" cc1.exe: fatal error: Files/PostgreSQL/14/include: No such file or directory compilation terminated. In any case, you can work around it by either

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-23 Thread Haowei Hsu
Oops! I forgot to add one step in the above commands. There should be: - *git checkout 6.2.4* between the Step 3 and Step 4. Therefore, it should be: 1. *chdir /d D:\Repo\tmp* 2. *git clone https://github.com/qt/qt5.git qt-6.2.4* 3. *chdir

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-22 Thread Tor Arne Vestbø via Development
If the goal here is to build documentation, I recommend installing Qt from the installer, and then doing a local build with e.g.: cd ~/build/qt/6.x-doc && ~/dev/qt/configure -developer-build -nomake examples -nomake tests -no-warnings-are-errors -submodules qtbase,qtdoc -qt-host-path

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-22 Thread Thiago Macieira
On Monday, 21 August 2023 23:34:17 PDT Kai Köhne via Development wrote: > cmake --build . --parallel 4 --target qminimal qsqlite As suggested before, I recommend building all of qtbase first. If you're insisting on the top-level build, then: ninja qtbase/all -- Thiago Macieira -

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-22 Thread Kai Köhne via Development
> I followed what you said, build qminimal manually. > However, after that, it still failed to build docs target. Like I said in a previous mail, you need qminimal and qsqlite (at least if you don't use latest dev). So make this: cmake --build . --parallel 4 --target qminimal qsqlite cmake

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-21 Thread Thiago Macieira
On Monday, 21 August 2023 08:01:20 PDT Haowei Hsu wrote: > does *`configure.bat`* default to including all the submodules? Yes. Which means it isn't tested and there are often problems you need to fix yourself before you reach your goal. Right now, I have to exclude qtgrpc from the build

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-21 Thread Haowei Hsu
Hello, Cristian. There's something I'd like to confirm first. If I run *`configure.bat`* without adding either *`-submodules`* or *`-skip`*, for instance: *..\..\configure.bat -release -developer-build -nomake examples -nomake tests -- -DCMAKE_PREFIX_PATH=D:/Repo/tmp/libclang

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-21 Thread Cristian Adam via Development
Hi, For some reason you don't get the minimal plugin built: qt.qpa.plugin: Could not find the Qt platform plugin "minimal" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-21 Thread Paul Wicking via Development
> On 20 Aug 2023, at 20:36, Thiago Macieira wrote: > > The top-level build is finicky and only supported as a convenience. It breaks > often because it's not what the CI uses. Please compile and build each module > only, unless you plan on helping fix those issues. So my suggestion is that

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-20 Thread Thiago Macieira
On Sunday, 20 August 2023 12:25:25 PDT Haowei Hsu wrote: > Hello, Thiago. > > Could you please stop screenshotting text? > > Your images have text that is way too small and I can't copy & paste from it > > to search for the string in the sources to find out what may be happening. > > If the

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-20 Thread Haowei Hsu
Hello, Thiago. Could you please stop screenshotting text? Your images have text that is way too small and I can't copy & paste from it > to search for the string in the sources to find out what may be happening. If the screenshots are too small for you to see, you can click/download the

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-20 Thread Thiago Macieira
On Sunday, 20 August 2023 07:25:57 PDT Haowei Hsu wrote: > However, new errors showed up: > > [image: image.png] Could you please stop screenshotting text? Your images have text that is way too small and I can't copy & paste from it to search for the string in the sources to find out what may

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-20 Thread Cristian Adam via Development
Hi, I mean just use the link that I've provided. "niXman" MinGW builds are the ones that we always used to build Qt. choco uses packages are were not tested by any us and might not work. The link you provided with the 11.2.0 version used a MinGW from winlibs.com. I know

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-19 Thread Thiago Macieira
On Saturday, 19 August 2023 15:25:26 MDT Cristian Adam via Development wrote: > So choco is not the right way to install the needed MinGW compiler to build > Qt. I use MSYS2 and use its MinGW64 (with GCC 13.1) and it can compile qtbase just fine. I don't compile other modules on Windows because

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-19 Thread Haowei Hsu
Hello, Cristian. Not only the MinGW 12.2.0 choco package have the 106395 – [12 regression] > [mingw] "redeclared without dllimport attribute: previous dllimport > ignored" on C++ friend since r12-299-ga0fdff3cf33f72 (gnu.org) > bug, but it

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-19 Thread Cristian Adam via Development
Hi, I never tried the "Ninja Multi-Config" generator with LLVM, no idea if that's even supported. I only use the "Ninja" generator, with a Release configuration, and a --prefix​ for the installation. My previous MinGW installation has: C:\Projects\llvm-project\install-mingw\lib\cmake $ tree

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-18 Thread Thiago Macieira
On Friday, 18 August 2023 07:16:13 PDT Cristian Adam via Development wrote: > Right, you've hit now [QTBUG-108391] Prebuilt clang packages provided by Qt > contains hardcoded library path - Qt Bug > Tracker I suggest you then download the LLVM sources

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-18 Thread Cristian Adam via Development
Hi, Right, you've hit now [QTBUG-108391] Prebuilt clang packages provided by Qt contains hardcoded library path - Qt Bug Tracker I have a workaround there. As it turns out we haven't managed to make a new Qt LLVM release with the change suggested

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-18 Thread Jani Heikkinen via Development
Hi! The documentation is a bit misleading; you can't install those packages from Qt Online Installer. You can download those packages from http://download.qt.io/development_releases/prebuilt/libclang/qt and those are the same which are used for building the Qt binaries in the online installer.

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Cristian Adam via Development
On 17-Aug-23 17:08, Haowei Hsu wrote: Hello, Alexandru. I have already installed LLVM on my Windows computer using the LLVM-xxx-win64.exe installer downloaded from LLVM's GitHub. From the installation results, it does indeed

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Alexandru Croitor via Development
The log told you WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. You need to have a prebuilt libclang. From https://wiki.qt.io/Building_Qt_Documentation#Building_Qt_6_Documentation and

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Kai Köhne via Development
> so running > $ ninja qdoc qtattributionsscanner > qhelpgenerator. > should hopefully be sufficient Actually both are dependencies of the doc target. And since https://codereview.qt-project.org/c/qt/qttools/+/494893, just running configure cmake --build . docs should be enough. If you're

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Alexandru Croitor via Development
Hi, In documentation that you linked, it's written that you will need qdoc, qtattributionsscanner and possibly qhelpgenerator. so running $ ninja qdoc qtattributionsscanner qhelpgenerator. should hopefully be sufficient > On 17. Aug 2023, at 10:17, Haowei Hsu wrote: > > Hello, Alexandru.

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Haowei Hsu
Hello, Alexandru. Thank you for your reply. In that case, I have another question to ask: - *Which module should I build before building the Qt documentation?* Since I only want to build the Qt documentation, I hope to minimize other unnecessary build steps. According to the Qt Wiki

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-17 Thread Alexandru Croitor via Development
Hi, You can't use Qt 6.3.2 to build documentation of Qt 6.5 / 6.6 / 6.7 / dev. Mixing versions like that is not supported. The configure log even tells you that, but you passed -DQT_NO_PACKAGE_VERSION_CHECK=TRUE anyway. You need a Qt 6.5 build to build documentation for Qt 6.5. You need a Qt

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-14 Thread Edward Welbourne via Development
Haowei Hsu (14 August 2023 13:27) wrote: > The reason why I run vcvarsall.bat is to let CMake find MSVC compilers. Understandable, just not given by README.md > As for init-repository, I didn't see its instructions in README.md [...] > Where is it? https://github.com/qt/qt5/blob/dev/README.git

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-14 Thread Haowei Hsu
Hello, Edward. These instructions do not appear in README.md; it contains, for example, > no mention of vcvarsall.bat and its instructions for updating quite > explicitly mention running init-repository. See README.git for the > details of how to clone and set up an initial checkout of Qt. Note

Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

2023-08-14 Thread Edward Welbourne via Development
Haowei Hsu (13 August 2023 14:08) wrote: > Recently, I tried to configure the qt/qt5 > repository. The following commands are what I use to configure the > project according to its README.md: > > 1. git clone --recursive https://github.com/qt/qt5.git > 2. chdir qt5