Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openboard on Ubuntu MATE 16.04 LTS (Raspberry Pi) #98

Closed
Jayce08 opened this issue Sep 2, 2017 · 13 comments
Closed

Openboard on Ubuntu MATE 16.04 LTS (Raspberry Pi) #98

Jayce08 opened this issue Sep 2, 2017 · 13 comments

Comments

@Jayce08
Copy link

Jayce08 commented Sep 2, 2017

Does this work on Ubuntu MATE 16.04 LTS (Raspberry PI). I want to confirm as I saw websites that listed Openboard as debian package.

@watsaig
Copy link
Contributor

watsaig commented Sep 17, 2017

Hi,
Sorry for the late reply. It does work on 16.04, but the packages are compiled for 64 bit architectures. You would need to build OpenBoard yourself to get it working on the Pi (which has an ARM processor).

If you're up to the challenge, this page may help: https://github.com/OpenBoard-org/OpenBoard/wiki/Install#linux

And please report back if you get it to work, you're not the first to ask about this so I'm sure others would appreciate a solution!

@mehmetaksakal
Copy link

I've done this and can confirm it works. It's as easy as installing all the qt libraries and running the build scripts.

@mehmetaksakal
Copy link

mehmetaksakal commented Sep 25, 2017

So here's the step-by-step on how-to build OpenBoard on Armbian, Raspbian or an Ubuntu variant. Before we push forward it's essential to understand that this process is resource intensive. All the system components will be utilized 100% during an extended period of time, the process will take several hours and depends heavily on the speed and quality of your SD card. Make sure your board is cooled adequately and that you're using a fast SD card from a premium brand (no cheap knock offs). read/write errors and overheating can cause the result to be corrupted (i.e. unexplained crashes).

If you know how, I recommend you use a cross-compiler, but if you knew howto use a cross-compiler you probably wouldn't be here. So here we go.

  1. Setup your Linux distro on the device, if you need help doing this ask Google. Frankly if you do not know how-to correctly setup a distro already, maybe building OpenBoard from source is not for you yet.

IMPORTANT! If your compiler stops with an internal error it could mean one of two things.

  • You're running out of memory. Setup a swapfile and rerun the build script, if you need help doing this ask Google. Unless you are compiling on a board which has generous amounts of RAM I recommend you setup a large swapfile.
  • You have a crappy SD card (told you to use a good one).
  1. First lets create a working directory.
cd ~
mkdir openboard
cd openboard
  1. Setup our build environment. Not sure if all these are needed but it's what I used.
sudo apt-get install build-essential libfontconfig1 mesa-common-dev libglu1-mesa-dev
sudo apt-get install qttools5-dev qtcreator qtdeclarative5-dev qt5-default libqt5multimediawidgets5 qtmultimedia5-dev libqt5webkit5 libqt5webkit5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-dev qtscript5-dev libqt5svg5 libqt5svg5-dev libqt5sensors5 libqt5sensors5-dev qtpositioning5-dev libqt5websockets5 libqt5websockets5-dev libqt5multimedia5-plugins qt3d-assimpsceneparser-plugin qt3d-gltfsceneparser-plugin qt3d5-dev
sudo apt-get install libmotif-common libmotif-dev libpaper-dev libpaper-utils zip
sudo apt-get install libssl1.0-dev

IMPORTANT! Currently there's a bug preventing compiling against the latest libssl (1.1.0f3 at the time of writing) libraries. For the time being make sure you're using libssl 1.0.2. On Raspbian this can be done by installing "libssl1.0-dev" and not "libssl-dev", if you have libssl-dev installed remove it. People calling in from the future, please first check the status of this issue.

  1. Clone the OpenBoard repositories
git clone https://github.com/OpenBoard-org/OpenBoard.git
git clone https://github.com/OpenBoard-org/OpenBoard-Importer.git
git clone https://github.com/OpenBoard-org/OpenBoard-ThirdParty.git
  1. Build the 3th party libraries, instructions can be found here, which are.
cd OpenBoard-ThirdParty
cd freetype
qmake freetype.pro -spec linux-g++
make
cd ..

cd quazip
qmake quazip.pro -spec linux-g++
make
cd ..

cd xpdf/xpdf-3.04
./configure --with-freetype2-library="../../freetype/lib/linux" --with-freetype2-includes="../../freetype/freetype-2.6.1/include"
cd ..
qmake xpdf.pro -spec linux-g++
make
cd ../../

  1. Modify the build script so it points to the correct directory

cd OpenBoard/release_scripts/linux/

and run this command

qtchooser -print-env

this will printout the QT env variables, the QTTOOLDIR should look like this:

QTTOOLDIR="/usr/lib/arm-linux-gnueabihf/qt5/bin"

Copy the path minus the "/bin" at the end. Then edit build.sh:

nano ./build.sh

Change the line QT_PATH to reflect your envoirement, should look something like this:

QT_PATH="/usr/lib/arm-linux-gnueabihf/qt5"

  1. Run the build script using "./build.sh" and after the the packaging script "./package.sh".

Happy boarding!

@watsaig watsaig changed the title Openboard on Ubuntu MATE 16.04 LTS Openboard on Ubuntu MATE 16.04 LTS (Raspberry Pi) Sep 26, 2017
@mehmetaksakal
Copy link

mehmetaksakal commented Sep 26, 2017

And here's the deb package built on Raspbian Stretch 9.

uname -a
Linux raspberrypi 4.9.41+ #1023 Tue Aug 8 15:47:12 BST 2017 armv6l GNU/Linux
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
qmake -version
QMake version 3.0
Using Qt version 5.7.1 in /usr/lib/arm-linux-gnueabihf

Built on 26 september 2017:

  • first build, limited testing.

@mehmetaksakal
Copy link

For people using some other SBC, here's the deb package built on Ubuntu Xenial 16.04.3 and QT 5.5.1

uname -a
Linux orangepione 3.4.113-sun8i #18 SMP PREEMPT Thu Jun 15 02:16:06 CEST 2017 armv7l armv7l armv7l GNU/Linux
cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
qmake -version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/arm-linux-gnueabihf

Built on 27 september 2017:

  • first build, limited testing.

@mehmetaksakal
Copy link

mehmetaksakal commented Sep 29, 2017

I have many of these board so if these two packages aren't giving you love then post you device and distro details here and I'll look into it IF and WHEN I have the time. If by some luck I do not own your device, you might think about sponsoring me one so I can look into it.

@nephx
Copy link

nephx commented Dec 13, 2017

Do you have by any chance a package for a Raspberry Pi 3 (armhf?) running Raspian? I want to use this one as on onboard computer for a Promethean AcivePanel. I have not build any packages on a Pi before so I was glad to find your message here...

@nephx
Copy link

nephx commented Dec 17, 2017

I tried to build opentable myself on the raspberry and everything workes fine up to generating the package. This is the output:

root@raspberrypi:/home/pi/openboard/OpenBoard/release_scripts/linux# ./package.sh
-->  Copying product directory and resources:
	
-->  Copying importer:
 
-->  Stripping importer and main executable:
	
-->  Copying Qt translations:
	
-->  Generating control files for package:
	
dpkg-query: package 'libpaper1' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libx11-6' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5webkit5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5svg5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5multimediawidgets5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5printsupport5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5widgets5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5multimedia5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5gui5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5xmlpatterns5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5network5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5xml5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5script5' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libqt5core5a' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libgles2-mesa' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libgomp1' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'libgcc-6-dev' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
-->  Building package:
	
dpkg-deb: error: parsing file 'debianPackage/DEBIAN/control' near line 10 package 'openboard:armv7l':
 'Depends' field, reference to 'libpaper1': error in version: version string is empty
-->  OpenBoard:
	Package built

It says "Package build" but it is nowhere to be found...

@nazamov
Copy link

nazamov commented Oct 9, 2018

Hello everyone!
I need to Open board deb package built on Ubuntu Xenial 16.04.3 and QT 5.5.1,
but now in this location https://1drv.ms/u/s!AidUxeS_WEG9-HSRCzK211x65peC it unavailable.
https://github.com/mehmetaksakal do have that?
If yes, please give me link.
Thank you very much!

@nazamov
Copy link

nazamov commented Oct 9, 2018

I just tryed to build it, but raspberi crashed while building :((

@mehmetaksakal
Copy link

mehmetaksakal commented Oct 10, 2018

@nephx Look here: #102

@nazamov The link is up and still working, please check your internet connection or provider.

I compiled with the latest version of Raspbian Jessie (fully updated) and the latest release of OpenBoard using the instructions provided above and it still works as described. Seeing as it is a rPi and a clean Raspbian setup you can replicate is easily.

Note, compiling will take about a day, so it could be you should just wait longer. If you're having problems with your board I suggest looking into the logs and try resolving those before trying to compile.

@nazamov
Copy link

nazamov commented Oct 19, 2018

Hello!
@mehmetaksakal thanks for answer and comment , but in this link https://1drv.ms/u/s!AidUxeS_WEG9-HSRCzK211x65peC OneDrive says me: This item may be missing or unavailable, or you don't have permission to see that :(.
I fixed all bugs, but after 15-20 hour compiling it shows me unclear error :(.
Аfter correcting the error, I need to wait another 15-20 hours and that is very bad.
What will you advise me?
Thanks!!!

@ferekin
Copy link

ferekin commented Dec 21, 2018

Any chance of another upload for the Raspbian compiled version? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants