dwyl / learn-python

Learn how to program in python from scratch.
https://github.com/alephmelo/python-way
GNU General Public License v2.0
5 stars 0 forks source link

`Qt` #8

Open nelsonic opened 1 year ago

nelsonic commented 1 year ago

To resolve https://github.com/yorikvanhavre/BIM_Workbench/issues/108 I need to install and run Qt: https://www.qt.io/download-qt-installer-oss

After downloading the .app from qt.io:

image

macOS prompts us if we want to open the app:

image
nelsonic commented 1 year ago

Welcome to the Qt installer:

image

Had to register for an account:

image

Had to verify email address:

image

Then taken to a page with upsell:

image
nelsonic commented 1 year ago

Now I'm allowed to proceed:

image

Taking some time to doanload:

image

No thanks to usage stats:

image

The default appears to be "Custom Installation":

image

Asking the FreeCAD Devs what the required install is: https://github.com/yorikvanhavre/BIM_Workbench/issues/108#issuecomment-1506097830

nelsonic commented 1 year ago

Tried following the instructions for compiling on macOs: https://wiki.freecad.org/Compile_on_MacOS

got the following error:

==> Installing freecad/freecad/freecad@0.20.1 dependency: freecad/freecad/med-file
==> Patching
==> Applying hdf5-1.12.patch
patching file 'config/cmake_files/medMacros.cmake'
patching file 'src/ci/MEDfileCompatibility.c'
patching file 'src/hdfi/_MEDattributeNumWrByName.c'
patching file 'src/hdfi/_MEDattributeNumWr.c'
patching file 'src/hdfi/_MEDcheckAttributeStringFunc.c'
patching file 'src/hdfi/_MEDchecknSublinkFunc.c'
patching file 'src/hdfi/_MEDdatagroupExist.c'
patching file 'src/hdfi/_MEDdatasetExist.c'
patching file 'src/hdfi/_MEDfileCreate.c'
patching file 'src/hdfi/_MEDfileOpen.c'
patching file 'src/hdfi/_MEDlinkObjs.c'
patching file 'src/hdfi/_MEDmemFileOpen.c'
patching file 'src/hdfi/_MEDparFileCreate.c'
patching file 'src/hdfi/_MEDparFileOpen.c'
patching file 'tools/medimport/2.3.6/_MEDconvertStringDatasets.c'
==> cmake .. -DMEDFILE_BUILD_PYTHON=ON -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/hdf5/lib;/opt/homebrew/opt/gcc/lib -DCMAKE_INSTAL
==> make
Last 15 lines from /Users/n/Library/Logs/Homebrew/med-file@4.1.1/02.make:
make[1]: *** [python/CMakeFiles/_medfamily.dir/all] Error 2
[ 96%] Built target medimportengine
[ 96%] Linking C executable mdump4
cd /tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/tools/mdump && /opt/homebrew/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/mdump4.dir/link.txt --verbose=1
[ 96%] Linking C executable mdump2
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mdump4.dir/mdump4.c.o CMakeFiles/mdump4.dir/MED23meshIterators.c.o CMakeFiles/mdump4.dir/MED23fieldIterators.c.o -o mdump4  -Wl,-rpath,/tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/src ../../src/libmedC.11.1.1.dylib /opt/homebrew/opt/hdf5/lib/libhdf5.dylib /opt/homebrew/lib/libsz.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libz.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libdl.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libm.tbd
cd /tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/tools/mdump && /opt/homebrew/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/mdump2.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mdump2.dir/mdump2.c.o CMakeFiles/mdump2.dir/MED23meshIterators.c.o CMakeFiles/mdump2.dir/MED23fieldIterators.c.o -o mdump2  -Wl,-rpath,/tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/src ../../src/libmedC.11.1.1.dylib /opt/homebrew/opt/hdf5/lib/libhdf5.dylib /opt/homebrew/lib/libsz.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libz.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libdl.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libm.tbd
[ 96%] Linking C executable mdump3
cd /tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/tools/mdump && /opt/homebrew/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/mdump3.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mdump3.dir/mdump3.c.o CMakeFiles/mdump3.dir/MED23meshIterators.c.o CMakeFiles/mdump3.dir/MED23fieldIterators.c.o -o mdump3  -Wl,-rpath,/tmp/med-fileA4.1.1-20230413-31941-1i3rdjh/med-4.1.1_SRC/build/src ../../src/libmedC.11.1.1.dylib /opt/homebrew/opt/hdf5/lib/libhdf5.dylib /opt/homebrew/lib/libsz.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libz.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libdl.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libm.tbd
[ 96%] Built target mdump4
[ 96%] Built target mdump2
[ 96%] Built target mdump3
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/freecad/homebrew-freecad/issues

These open issues may also help:
installing 0.20.1 on Apple M1 (errors installing med-file@4.1.1) https://github.com/FreeCAD/homebrew-freecad/issues/374
nelsonic commented 1 year ago
image
nelsonic commented 1 year ago

Installation will use 32.38 GB of disk space ...

image

This is an insane amount of disk space!! 🤯 I have the space on my current mac. 🙄 But I will probably uninstall this when no longer needed because it's absurd! 👎

nelsonic commented 1 year ago

Downloading: ⏳

image
nelsonic commented 1 year ago

54 minutes remaining indeed ...

image

This will take forever to download!! ⏳

nelsonic commented 1 year ago

Issue: https://github.com/FreeCAD/homebrew-freecad/issues/374 still unresolved.

nelsonic commented 1 year ago

Eventually ...

image

The following README.txt popped up:

image

Welcome to Qt Creator:

image

I've quit it for now to focus on my work-work. But will attempt to run the BIM-workbench once the work week is done. ⏳

nelsonic commented 1 year ago

Based on this comment: https://github.com/yorikvanhavre/BIM_Workbench/issues/108#issuecomment-1506916418 I'm re-installing Qt Design Studio: image

But obvs it doesn't allow me to overwrite ... image

So created a subdirectory: image

nelsonic commented 1 year ago

But how do I open Qt after it's installed? 🤷‍♂️