# Building PingViewer from source

**URL:** <https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132>\
**Category:** Ping Viewer\
**Created:** [July 9, 2021, 4:25am UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132 "2021-07-09T04:25:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hc-robotics](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@hc-robotics](https://discuss.bluerobotics.com/u/hc-robotics)\
**Post date:** [July 9, 2021, 4:25am UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132/1 "2021-07-09T04:25:08Z")

</div>

Hi there,

I would like to run the PingViewer software on my Raspberry Pi 4 for my Ping360 sensor. Understand that that default installation executables do not support ARM architectures, hence the Pingviewer software will need to be compiled through Qt and the pingviewer source codes directly.

Following the build instructions on the [documentation](https://docs.bluerobotics.com/ping-viewer/build-instructions.html), I am unable to complete the qmake install steps:

```auto
qmake ../ping-viewer

```

Additionally, building the pingviewer from Qt is not possible as the repository seems to be missing the pingviewer.pro files. (From a recent commit)

May I know if there is an alternative for using Pingviewer on a Raspberry Pi-4? If not, would appreciate some advice on how I should proceed with building Pingviewer from source.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [July 9, 2021, 5:12am UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132/2 "2021-07-09T05:12:53Z")

</div>

Hi @hc-robotics, welcome to the forum! 🙂

In our [latest Ping Viewer release](https://discuss.bluerobotics.com/t/new-ping-viewer-version-v2-2-is-available/10016) we changed from using qmake to cmake, but it seems like our build documentation hasn’t been updated to reflect that. @patrickelectric should be able to provide updated build instructions, but if this is urgent then you should be able to `git checkout` a commit from before the cmake change and build that with qmake.

From a quick look at the [ping-viewer commit history](https://github.com/bluerobotics/ping-viewer/commits/master) it seems like `a36979d` is the latest commit from before cmake changes were introduced, but it may be necessary to try an earlier one, and I haven’t tried building PingViewer on RPi so can’t guarantee it will work at all. Would recommend waiting for Patrick if possible 🙂

I’ve just added an issue on GitHub to update our Ping Viewer build docs:

> <https://github.com/bluerobotics/ping-viewer/issues/985#issue-940425479>
>
> Current build instructions use qmake, which is no longer supported. 
> 
> @patrick…electric could you update them to display the relevant info for building with cmake instead? :-)
> 
> This was brought up in \[this forum post\](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132)

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [July 13, 2021, 10:54am UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132/3 "2021-07-13T10:54:53Z")

</div>

@hc-robotics, just following up on this, Patrick has added a [PR for cmake instructions](https://github.com/bluerobotics/ping-viewer/pull/986/files) which provides basic instructions, although they still need a couple of changes to be easier to follow for everyone.

The overview is that building PingViewer now uses Qt5.15 instead of Qt5.12, and cmake instead of qmake. You might be able to run the new build instructions successfully, but if you’d prefer you can wait until they’re finalised and merged into the official documentation (likely in the next few days) 🙂

---

<div class="post-metadata">

**Author:** ![hc-robotics](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@hc-robotics](https://discuss.bluerobotics.com/u/hc-robotics)\
**Post date:** [July 13, 2021, 1:53pm UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132/4 "2021-07-13T13:53:21Z")

</div>

Hi @EliotBR , thanks for the follow up on this.

As the version of Qt I’m running is 5.12, I looked through the commit history checked out the commit 3a0cec3 (which should be the last commit prior to PingViewer being updated to 5.15). After installing some additional qt submodules, I was able to build and run the PingViewer on my RPi4, successfully interfacing it with my Ping360 sonar.

Will look out for the new build instructions and likely upgrade to Qt5.15 then! 🙂

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [July 23, 2021, 7:51am UTC](https://discuss.bluerobotics.com/t/building-pingviewer-from-source/10132/5 "2021-07-23T07:51:22Z")

</div>

The [build instructions](https://docs.bluerobotics.com/ping-viewer/build-instructions/) documentation is updated to cmake and Qt5.15 now, so you should be able to use those to build the latest version of PingViewer. Let us know if you run into any issues.

If the new instructions work for you, please mark this comment as the solution 🙂
