Closed embetrix closed 2 years ago
I have built it successfully on Debian 11 with the following:
#!/bin/bash
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtdeclarative5-dev qtmultimedia5-dev libqt5multimedia5-plugins \
libqt5xmlpatterns5-dev libqt5bluetooth5 qtconnectivity5-dev libqt5charts5 libqt5serialport5 \
qml-module-qtquick2 qml-module-qtquick-layouts qml-module-qtquick-dialogs qml-module-qtquick-controls2 \
qml-module-qtquick-extras qml-module-qtquick-window2 qml-module-qtmultimedia qml-module-qt-labs-settings \
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-platform qml-module-qtbluetooth qml-module-qtcharts \
qml-module-qtgraphicaleffects
sudo apt install build-essential protobuf-compiler libusb-1.0-0-dev libssl-dev openssl libglib2.0-dev \
libboost-dev libudev-dev libtag1-dev libprotobuf-dev libgstreamer1.0-dev gstreamer1.0-plugins-base-apps \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa libgstreamer-plugins-base1.0-dev \
gstreamer1.0-pulseaudio libfaad-dev libfftw3-dev librtlsdr-dev libairspy-dev libusb-1.0-0-dev mesa-common-dev \
libglu1-mesa-dev zlib1g-dev portaudio19-dev libsndfile1-dev libsamplerate0-dev ofono ofono-dev \
pulseaudio bluez bluez-obexd pulseaudio-module-bluetooth qtconnectivity5-dev qtquickcontrols2-5-dev \
qml-module-qtbluetooth libkf5bluezqt-dev qml-module-org-kde-bluezqt qtbase5-private-dev libcanberra-dev \
libqt5charts5 libqt5charts5-dev qml-module-qtcharts libqt5serialport5-dev \
libgconf2-dev libpulse-dev libmp3lame-dev libsoapysdr-dev libmpg123-dev
sudo apt install automake git alsa-utils
git clone git://git.kernel.org/pub/scm/network/ofono/phonesim.git
cd phonesim
./bootstrap-configure
make -j5 && sudo make install
cd ..
git clone --recursive https://github.com/viktorgino/headunit-desktop.git
cd headunit-desktop
protoc --proto_path=modules/android-auto/headunit/hu/ --cpp_out=modules/android-auto/headunit/hu/generated.x64/ modules/android-auto/headunit/hu/hu.proto
mkdir build && cd build
qmake PREFIX=~/hud ../headunit-desktop.pro
make -j5 && sudo make install
cd ../../
@aselafernando are these steps any different from the Wiki page?
@viktorgino on Debian 11 the package qt5-default doesn't exist, it has been replaced with the 3 qtbase5-dev qtchooser qt5-qmake. Likewise ofono-phonesim doesn't exist anymore. However you can get the sources to compile and add it it in.
@aselafernando amazing thanks I've updated the build instructions. I'm also adding the setup instructions for Raspbian Lite so everything works as it needs to
I get the following build error:
I installed before all the packages dependencies on ubuntu 20.04 and run