[Solved]Compile: Freecad Pyside2 error on Debian

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
f3nix
Posts: 346
Joined: Sat May 30, 2015 11:58 am

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by f3nix »

kkremitzki wrote: Tue Feb 11, 2020 7:32 am pyside2-uic and pyside2-rcc and now just uic and rcc, and you have to add a flag to get the previous Python generation behavior.
Hi.
Could you please write which flag are we supposed to use? I do not see it in the Debian's provided rcc.

Code: Select all

f3nix@bigspider:~$ rcc --help
Usage: /usr/lib/qt5/bin/rcc [options] inputs
Qt Resource Compiler version 5.12.5

Options:
  -h, --help                 Displays this help.
  -v, --version              Displays version information.
  -o, --output <file>        Write output to <file> rather than stdout.
  -t, --temp <file>          Use temporary <file> for big resources.
  --name <name>              Create an external initialization function with
                             <name>.
  --root <path>              Prefix resource access path with root path.
  --compress <level>         Compress input files by <level>.
  --no-compress              Disable all compression.
  --threshold <level>        Threshold to consider compressing files.
  --binary                   Output a binary file for use as a dynamic
                             resource.
  --pass <number>            Pass number for big resources
  --namespace                Turn off namespace macros.
  --verbose                  Enable verbose mode.
  --list                     Only list .qrc file entries, do not generate code.
  --list-mapping             Only output a mapping of resource paths to file
                             system paths defined in the .qrc file, do not
                             generate code.
  --project                  Output a resource file containing all files from
                             the current directory.
  --format-version <number>  The RCC format version to write

Arguments:
  inputs                     Input files (*.qrc).
Whereas with Qt 5.14 version we get the -g option (not in Debian).

Code: Select all

Usage: ./rcc [options] inputs
Qt Resource Compiler version 5.14.1

Options:
  -h, --help                            Displays help on commandline options.
  --help-all                            Displays help including Qt specific
                                        options.
  -v, --version                         Displays version information.
  -o, --output <file>                   Write output to <file> rather than
                                        stdout.
  -t, --temp <file>                     Use temporary <file> for big resources.
  --name <name>                         Create an external initialization
                                        function with <name>.
  --root <path>                         Prefix resource access path with root
                                        path.
  --compress-algo <algo>                Compress input files using algorithm
                                        <algo> ([zlib], none).
  --compress <level>                    Compress input files by <level>.
  --no-compress                         Disable all compression. Same as
                                        --compress-algo=none.
  --threshold <level>                   Threshold to consider compressing
                                        files.
  --binary                              Output a binary file for use as a
                                        dynamic resource.
  -g, --generator <cpp|python|python2>  Select generator.
  --pass <number>                       Pass number for big resources
  --namespace                           Turn off namespace macros.
  --verbose                             Enable verbose mode.
  --list                                Only list .qrc file entries, do not
                                        generate code.
  --list-mapping                        Only output a mapping of resource paths
                                        to file system paths defined in the .qrc
                                        file, do not generate code.
  -d, --depfile <file>                  Write a depfile with the .qrc
                                        dependencies to <file>.
  --project                             Output a resource file containing all
                                        files from the current directory.
  --format-version <number>             The RCC format version to write

Arguments:
  inputs                                Input files (*.qrc).
Thanks.

Cheers,
Mateusz
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by kkremitzki »

Yes, this is exactly the problem, because we are using an old Qt version as far as I could tell the flag should be there but isn't.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply