Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to build on Ubuntu 16.04 #19

Open
Def2010 opened this issue Feb 11, 2021 · 1 comment
Open

Impossible to build on Ubuntu 16.04 #19

Def2010 opened this issue Feb 11, 2021 · 1 comment

Comments

@Def2010
Copy link

Def2010 commented Feb 11, 2021

  1. Cloning sources
  2. qmake && make:
    ...
    .../QtService/src/service/service.pro:45: Cannot find feature qdep
    Project ERROR: Failed to load qdep feature! Run 'qdep prfgen --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake' to create it.
    ...
    make: *** [sub-src-make_first] Error 2
  3. qdep prfgen --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    Traceback (most recent call last):
    File "/usr/local/bin/qdep", line 10, in
    sys.exit(main())
    File "/usr/local/lib/python3.5/dist-packages/qdep/internal/cli.py", line 163, in main
    prfgen(path.abspath(sys.argv[0]), res.qmake, res.dir)
    File "/usr/local/lib/python3.5/dist-packages/qdep/qdep.py", line 12, in prfgen
    qmake_res = sub_run([qmake, "-query", "QT_HOST_DATA"], check=True, stdout=subprocess.PIPE, encoding="UTF-8")
    File "/usr/local/lib/python3.5/dist-packages/qdep/internal/common.py", line 59, in sub_run
    return subprocess.run(*args, **kwargs)
    File "/usr/lib/python3.5/subprocess.py", line 693, in run
    with Popen(*popenargs, **kwargs) as process:
    TypeError: init() got an unexpected keyword argument 'encoding'
@Def2010
Copy link
Author

Def2010 commented Feb 11, 2021

If I remove ', encoding' from python scripts

  1. qdep prfgen --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    Generating PRF-File as: b'/usr/lib/x86_64-linux-gnu/qt5\n'/mkspecs/features/qdep.prf

(no errors or other output, file qdep.prf does not exists)
2. qmake & make
... Cannot find feature qdep
Project ERROR: Failed to load qdep feature! Run 'qdep prfgen --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake' to create it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant