[Solved] yocto Compile Error: ERROR: libtinyxml2-XXX do_fetch: Fetcher failure for URL

Yocto compilation, when changing the GIT address to the local server address in the BB file, there is a series of error prompts, the main idea of which is:

ERROR: libtinyxml2-XXX do_ fetch: Fetcher failure for URL:’ git://git @XXX/tinyxml2. git’. Unable to fetch URL from any source.

I can succeed in clone alone, but not in yocto. I guess it may be because there is no specified protocol and branch. Just add it.

Solution:

SRC_URI = ” git://git @XXX/tinyxml2.git “change to” git://git @XXX/tinyxml2.git;protocol=ssh;branch=master”

Yocto’s information is too few. It’s hard to check if there are problems. I share what I have encountered. I hope more people can share it, so that problems can be solved in the future.

Read More: