FREEWING-JP / Build-Fritzing-1.0.0-Windows-script

Build Fritzing 1.0.2 Windows script
http://www.neko.ne.jp/~freewing/software/build_fritzing_100_windows/
GNU General Public License v3.0
26 stars 6 forks source link

Failed building quazip-1.4 Qt is installed of a different drive F: #21

Open NonaSuomy opened 1 month ago

NonaSuomy commented 1 month ago
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:75 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt6" with any of
  the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "F:/00_fritzing/quazip-1.4/build64/CMakeFiles/CMakeOutput.log".
.
===
failed
===

F:/00_fritzing/quazip-1.4/build64/CMakeFiles/CMakeOutput.log

The system is: Windows - 10.0.22631 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:  
Build flags: 
Id flags:  

The output was:
0
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2024-05-07 12:34:17 PM.
Project "F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
  CompilerIdC.vcxproj -> F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.68

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "F:/00_fritzing/quazip-1.4/build64/CMakeFiles/3.20.2/CompilerIdC/CompilerIdC.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:  
Build flags: 
Id flags:  

The output was:
0
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2024-05-07 12:34:18 PM.
Project "F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
  CompilerIdCXX.vcxproj -> F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "F:\00_fritzing\quazip-1.4\build64\CMakeFiles\3.20.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.66

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "F:/00_fritzing/quazip-1.4/build64/CMakeFiles/3.20.2/CompilerIdCXX/CompilerIdCXX.exe"

Detecting C compiler ABI info compiled with the following output:
Change Dir: F:/00_fritzing/quazip-1.4/build64/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_0b60e.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30154 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.
  CMakeCCompilerABI.c
  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_0b60e.dir\Debug\\" /Fd"cmTC_0b60e.dir\Debug\vc142.pdb" /external:W1 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.20\Modules\CMakeCCompilerABI.c"
  cmTC_0b60e.vcxproj -> F:\00_fritzing\quazip-1.4\build64\CMakeFiles\CMakeTmp\Debug\cmTC_0b60e.exe

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: F:/00_fritzing/quazip-1.4/build64/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_89463.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30154 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.
  CMakeCXXCompilerABI.cpp
  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_89463.dir\Debug\\" /Fd"cmTC_89463.dir\Debug\vc142.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.20\Modules\CMakeCXXCompilerABI.cpp"
  cmTC_89463.vcxproj -> F:\00_fritzing\quazip-1.4\build64\CMakeFiles\CMakeTmp\Debug\cmTC_89463.exe

03_Install_Qt_653.bat

if exist "F:\Qt\6.5.3\msvc2019_64" exit
echo qt-unified-windows-x64-4.6.1-online.exe --root F:\Qt ^^>>qt_inst.bat

07_Build_Library.bat

set Qt6_DIR=F:\Qt\6.5.3\msvc2019_64

13_Build_phoenix_pro_with_Qt.bat

call F:\Qt\6.5.3\msvc2019_64\bin\qtenv2.bat
F:/Qt/6.5.3/msvc2019_64/bin/qmake.exe phoenix.pro ^
F:/Qt/Tools/QtCreator/bin/jom/jom.exe qmake_all
F:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Release

17_1st_Build_Patts_DB_file.bat

Fritzing.exe - System Error
The code execution cannot proceed because Qt6PrintSupport.dll was not found. Reinstalling the program may fix this problem.

Qt6SvgWidgets.dll
Qt6Widgets.dll
Qt6Svg.dll

15_Copy_Fritzing_requirement_DLL_file.bat

copy F:\Qt\6.5.3\msvc2019_64\bin\Qt6Core5Compat.dll .\release64

16_Copy_Qt_Requirement_DLL_file.bat

F:\Qt\6.5.3\msvc2019_64\bin\windeployqt6.exe Fritzing.exe

Can you add something to be able to relocated Qt directories?

Also more checks if parts of the batch process have already been run in the past to skip everything:

skip boost compile if already compiled...
Would you like to replace the existing file:
  Path:     .\PortableGit\etc\pki\ca-trust\extracted\pem\objsign-ca-bundle.pem
  Size:     0 bytes
  Modified: 2023-08-30 05:46:48
with the file from archive:
  Path:     etc\pki\ca-trust\extracted\pem\objsign-ca-bundle.pem
  Size:     0 bytes
  Modified: 2023-08-30 05:46:48
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?
Would you like to replace the existing file:
  Path:     .\Spice64_dll\share\ngspice\scripts\spinit
  Size:     1125 bytes (2 KiB)
  Modified: 2023-01-30 11:07:12
with the file from archive:
  Path:     Spice64_dll\share\ngspice\scripts\spinit
  Size:     1125 bytes (2 KiB)
  Modified: 2023-01-30 11:07:12
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?
Overwrite F:\00_fritzing\openssl-3.0.12\bin\c_rehash.pl (Yes/No/All)?
Overwrite F:\00_fritzing\quazip-6.5.3-1.4\include\quazip\ioapi.h (Yes/No/All)?
Overwrite F:\00_fritzing\quazip-6.5.3-1.4\build64\Release\quazip1-qt6.dll (Yes/No/All)?
Overwrite F:\00_fritzing\quazip-6.5.3-1.4\build64\Release\bzip2.lib (Yes/No/All)?

If Fritzing_102.zip already exists (had some error prior above) it doesn't know it is there and doesn't recreate it.

After deleting it it worked!

image

Thank you for all your work figuring out that process!

FREEWING-JP commented 4 weeks ago

It is not intended to be executed on anything other than the C drive . Try C: drive with Sandbox .

NonaSuomy commented 3 weeks ago

Well it worked with all the changes above that I stated. QT is so massive it won't fit on C: for me so it works on another drive added to the system if you make changes. Would just have to have a variable export there instead of hard coding it. Then just add the variable to your first script so people can change it.

I pointed out all the positions that would need to be changed above to make it work.

How do you do that with Sandbox never heard of this.

FREEWING-JP commented 3 weeks ago

I welcome pull requests for its improvements .