Code Monkey home page Code Monkey logo

build-fritzing-1.0.0-windows-script's Introduction

Build-Fritzing-1.0.3-Windows-script

Build Fritzing 1.0.3 Windows script

2023/11/18 Update Build Fritzing 1.0.1
2024/01/11 Update Build Fritzing 1.0.2 (Reconfirmed on 2024/05/05)
2024/07/14 Update Build Fritzing 1.0.3

* Open Command Prompt

bitsadmin /TRANSFER hoge https://raw.githubusercontent.com/FREEWING-JP/Build-Fritzing-1.0.0-Windows-script/main/00_Download_Script.bat %cd%\00_Download_Script.bat

00_Download_Script.bat

00_Execute_Script.bat

* Wait an hour

build-fritzing-1.0.0-windows-script's People

Contributors

freewing-jp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

build-fritzing-1.0.0-windows-script's Issues

BOOST AND NG SPICE FIX

ng spice version 40 does not exist, actual version is 42, fix "02_Download_Requirement_Files.bat" with this code

rem https://sourceforge.net/projects/ngspice/files/ng-spice-rework/42/
echo ngspice-42 ngspice Files
if not exist ngspice-42.tar.gz DownloadFile https://jaist.dl.sourceforge.net/project/ngspice/ng-spice-rework/42/ngspice-42.tar.gz ngspice-42.tar.gz

if not exist ngspice-42_dll_64.7z DownloadFile https://master.dl.sourceforge.net/project/ngspice/ng-spice-rework/42/ngspice-42_dll_64.7z ngspice-42_dll_64.7z

then add the following command to "05_Extract_Requirement_Files.bat" because make file in step 12 expects a folder named "ngspice-40".
change

tar -xf ngspice-40.tar.gz

into

tar -xf ngspice-42.tar.gz

paste the following command after "tar -xf ngspice-42.tar.gz"

ren ngspice-42 ngspice-40
ren ngspice-42_dll_64.7z ngspice-40_dll_64.7z

boost is not downloadable from the former link

change download string with this

if not exist boost_1_81_0.zip DownloadFile https://sourceforge.net/projects/boost/files/boost/1.81.0/boost_1_81_0.zip

Cannot change interface language

Your script works beautifully and quite smoothly.
Tested on Windows 10 on a virtual machine.
The problem I have after compiling is that Fritzing, in the "Edit" meni, then "Preferences", the drop-down menu for changing the interface language is missing.

Am I missing something during compilation or am I making some other mistake?

fritzingmissing_language

Script 07_Build_Library.bat Failed

I ran the script using the suggested method which is start the process by the bitsadmin command. On the execution of the 07_Build_Library.bat, I encounter error as below.

My build system is newly installed Windows 10 64bit.

07_Build_Library.bat

Waiting for  0 seconds, press CTRL+C to quit ...
The system cannot find the path specified.
Build Boost
Building Boost.Build engine
could not find "vswhere"
Call_If_Exists "Auxiliary\Build\vcvarsall.bat"  AMD64
###
### Using 'vc142' toolset.
###

C:\00_fritzing\boost_1_81_0\tools\build\src\engine>"cl" /nologo /MP /MT /TP /Feb2 /wd4996 /O2 /GL /EHsc   -DNDEBUG  builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filent.cpp filesys.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp /link kernel32.lib advapi32.lib user32.lib
'"cl"' is not recognized as an internal or external command,
operable program or batch file.

C:\00_fritzing\boost_1_81_0\tools\build\src\engine>dir *.exe
 Volume in drive C has no label.
 Volume Serial Number is 58AA-2BE7

 Directory of C:\00_fritzing\boost_1_81_0\tools\build\src\engine

File Not Found

Failed to build Boost.Build engine.

C:\00_fritzing\boost_1_81_0
'b2.exe' is not recognized as an internal or external command,
operable program or batch file.
.
===
failed
===

Waiting for  0 seconds, press CTRL+C to quit ...

07_Build_Library.bat

07_Build_Library.bat

Waiting for 0 seconds, press CTRL+C to quit ...

** Visual Studio 2019 Developer Command Prompt v16.11.35
** Copyright (c) 2021 Microsoft Corporation

Build Boost
'bootstrap.bat' is not recognized as an internal or external command,
operable program or batch file.
C:\00_fritzing\boost_1_81_0
'b2.exe' is not recognized as an internal or external command,
operable program or batch file.
.
failed
Waiting for 0 seconds, press CTRL+C to quit ...

Waiting for 0 seconds, press CTRL+C to quit ...

Waiting for 3 seconds, press CTRL+C to quit ...

My internet is working well and I have rerun this for like a hundred time and still spouting the same error

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

-- 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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.