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

Compiling on arm #7

Open
thearkadia opened this issue May 10, 2019 · 20 comments
Open

Compiling on arm #7

thearkadia opened this issue May 10, 2019 · 20 comments

Comments

@thearkadia
Copy link

thearkadia commented May 10, 2019

I'm compiling telephant on arm with go version go1.8 linux/arm

when doing go get -u -v I get:


github.com/therecipe/qt/quickcontrols2
../../therecipe/qt/quickcontrols2/quickcontrols2.cpp:9:22: fatal error: QByteArray: No such file or directory
 #include <QByteArray>
                      ^
compilation terminated.
github.com/muesli/telephant/accounts/mastodon
# github.com/therecipe/qt/core
../../therecipe/qt/core/core.cpp:9:30: fatal error: QAbstractAnimation: No such file or directory
 #include <QAbstractAnimation>
                              ^
compilation terminated.
@muesli
Copy link
Owner

muesli commented May 10, 2019

Sounds like you haven't installed the Qt dependencies - or at least it couldn't find them.

@CryptKid
Copy link

This doesn't seem to be arm-specific, I'm experiencing the same issue building it inside a docker container running all the steps listed in README and installing golang-go and git, could you @muesli please add the Qt dependency installation instruction to README?

@muesli
Copy link
Owner

muesli commented May 10, 2019

@CryptKid Sadly that's a very distribution-specific thing. The Qt bindings have a bit of information regarding the Qt installation on their Wiki:

https://github.com/therecipe/qt/wiki/Installation-on-Linux

@muesli
Copy link
Owner

muesli commented May 10, 2019

Alternatively, you can try building the entire thing in a Docker container itself:

$GOPATH/bin/qtdeploy -docker build linux

Obviously you'd still need the Qt5 libraries at run-time (no the -dev packages though!). Last but not least, you could even try a static build within Docker, which should also resolve that "issue".

@thearkadia
Copy link
Author

thearkadia commented May 10, 2019 via email

@muesli
Copy link
Owner

muesli commented May 10, 2019

@thearkadia Just use your distro's Qt5 packages.

@thearkadia
Copy link
Author

thearkadia commented May 10, 2019 via email

@muesli
Copy link
Owner

muesli commented May 10, 2019

@thearkadia That very much depends on the distribution you use. I could probably provide it for Arch & Ubuntu, but beyond that it's tough to maintain and verify those lists.

Obviously packaged versions of Telephant will make this less of an issue in the future.

@thearkadia
Copy link
Author

thearkadia commented May 10, 2019 via email

@muesli
Copy link
Owner

muesli commented May 10, 2019

@thearkadia The official bindings wiki recommends sudo apt-get -y install libqt*5-dev qt*5-dev even though that seems a bit excessive for me. Will have to verify.

Then set your $QT_PKG_CONFIG to true and follow the README.

@thearkadia
Copy link
Author

thearkadia commented May 11, 2019 via email

@muesli
Copy link
Owner

muesli commented May 11, 2019

That's simply an environment variable.

export QT_PKG_CONFIG=true

I'm just looking into another build issue with Ubuntu/Debian based distros, though. May or may not be related.

@muesli
Copy link
Owner

muesli commented May 12, 2019

I've just updated the README with build instructions for Ubuntu that I just ran through in a VM myself. Hope this helps!

@thearkadia
Copy link
Author

thearkadia commented May 12, 2019

there's another issue with compiling on arm =\

package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

here's the full output if you want to see it https://pastebin.com/1kATPcsi

@therecipe
Copy link

@thearkadia math/bits is a new package that was added in Go 1.9, I think you will probably just need to update your Go installation for this to work.

@muesli
Copy link
Owner

muesli commented May 14, 2019

Thanks @therecipe. I shall bump the Go requirement in the README to reflect that.

@thearkadia
Copy link
Author

@muesli great. Will you include instructions to install the right version of Go on ubuntu? It's not in the repos so its more of a process

@thearkadia
Copy link
Author

@muesli installing the dependencies in the readme and the running the rpi build i get this

libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
Error retrieving lists: Get /api/v1/lists: unsupported protocol scheme ""
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
QQmlApplicationEngine failed to load component
qrc:/qml/telephant.qml:2 module "QtQuick.Controls" version 2.5 is not installed

@muesli
Copy link
Owner

muesli commented Jun 2, 2019

Is this the RPi3 build I uploaded to the 0.1pre release, or something you've built yourself?

@thearkadia
Copy link
Author

thearkadia commented Jun 2, 2019 via email

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

No branches or pull requests

4 participants