Jump to content

Qt Conan package troubleshooting: Difference between revisions

From Qt Wiki
Iieklund (talk | contribs)
Created page with "Here you can find causes for commonly encountered issues with Conan * '''*** No rule to make target 'hdb', needed by 'all-local'.''' ** When compiling Qt from sources (qtbase..."
 
Iieklund (talk | contribs)
No edit summary
Line 1: Line 1:
Here you can find causes for commonly encountered issues with Conan
Here you can find causes for commonly encountered issues with Conan


* '''*** No rule to make target 'hdb', needed by 'all-local'.'''
*'''*** No rule to make target 'hdb', needed by 'all-local'.'''
** When compiling Qt from sources (qtbase more specifically) and you have enabled ICU (e.g. qtbase:icu=True in the --profile used) the build recipe of the ICU attempts to read 'TARGET' environment variable and if that happens to contain a value the ICU recipe does not accept it will throw an error:<syntaxhighlight lang="bash">
**When compiling Qt from sources (qtbase more specifically) and you have enabled '''ICU''' (e.g. qtbase:icu=True in the --profile used) the build recipe of the ICU attempts to read 'TARGET' environment variable and if that happens to contain a value the ICU recipe does not accept it will throw an error:<syntaxhighlight lang="bash">
errors: logfile attached
errors: logfile attached
make[1]: *** No rule to make target 'hdb', needed by 'all-local'. Stop.
make[1]: *** No rule to make target 'hdb', needed by 'all-local'. Stop.
Line 9: Line 9:
ERROR: icu/56.1@qt/everywhere: Error in build() method, line 156
ERROR: icu/56.1@qt/everywhere: Error in build() method, line 156
</syntaxhighlight>
</syntaxhighlight>
** Fix: <syntaxhighlight lang="bash">
**Fix:
$ unset TARGET
***$ unset TARGET <br />
</syntaxhighlight>
*'''Connection issues with the default conan-center remote (not hosted by Qt)'''
**Unable to connect to conancenter=<nowiki>https://center.conan.io</nowiki>
** ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by ResponseError('too many 502 error responses')). [Remote: conancenter]
** Fix:
*** If you do not need any packages from the conan-center you can disable it temporarily by: $ conan remote disable conancenter

Revision as of 07:50, 24 February 2022

Here you can find causes for commonly encountered issues with Conan

  • *** No rule to make target 'hdb', needed by 'all-local'.
    • When compiling Qt from sources (qtbase more specifically) and you have enabled ICU (e.g. qtbase:icu=True in the --profile used) the build recipe of the ICU attempts to read 'TARGET' environment variable and if that happens to contain a value the ICU recipe does not accept it will throw an error:
      errors: logfile attached
      make[1]: *** No rule to make target 'hdb', needed by 'all-local'. Stop.
      make: *** [Makefile:143: all-recursive] Error
      
      ERROR: icu/56.1@qt/everywhere: Error in build() method, line 156
      
    • Fix:
      • $ unset TARGET
  • Connection issues with the default conan-center remote (not hosted by Qt)
    • Unable to connect to conancenter=https://center.conan.io
    • ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by ResponseError('too many 502 error responses')). [Remote: conancenter]
    • Fix:
      • If you do not need any packages from the conan-center you can disable it temporarily by: $ conan remote disable conancenter