How to create a Qt environment on Raspbian lite (cannot create a cross-compile environment)

Asked 2 years ago, Updated 2 years ago, 155 views

Thank you for your help.

http://wiki.qt.io/Raspberry_Pi_Beginners_Guide

I am trying to create a Qt Embedded environment on Raspberry Pi3 (raspbian lite) by referring to this.

Download the cross-compilation toolchain:

wget https://www.dropbox.com/s/sl919ly0q79m1e6/gcc-4.7-linaro-rpi-gnueabihf.tbz
(or at http://de.sourceforge.jp/projects/sfnet_rfidmonitor/downloads/crosscompilation-resources/gcc-4.7-linaro-rpi-gnueabihf.tbz)
tar-xf gcc-4.7-linaro-rpi-gnueabihf.tbz

This tbz file stopped unzipping with the tar command.

error

$tar-xf gcc-4.7-linaro-rpi-gnueabihf.tbz 
bzip2 —(stdin) is not a bzip2 file.
tar —Child returned status 2
tar:Error is not recoverable:exiting now

Could someone teach me how to thaw it?

raspberry-pi qt raspbian qt5

2022-09-30 21:23

1 Answers

The first URL (Dropbox person) is 404.
I think the second URL (the SourceForge person) is also the URL that returns the HTML page when you get it.
Either way, I suspect that the wget object is HTML, not an archive file.
file gcc-4.7-linaro-rpi-gnueabihf.tbz and cat-vgcc-4.7-linaro-rpi-gnueabihf.tbz.

As a countermeasure, if you access SourceForge with a browser, you will find a URL for downloading, so you might want to wget.
For example, https://osdn.net/frs/g_redir.php?m=netix&f=%2Frfidmonitor%2Fcrosscompilation-resources%2Fgcc-4.7-linaro-rpi-gnueabihf.tbz.
The URL contains & and must be quoted when passing to wget.

(Personally, I don't know the URL, so I don't want to list the commands that can be copied, but I don't use them as links.As it is the contents of the wiki, I think it is necessary to work with the inside out.)


2022-09-30 21:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.