Kukkimonsuta / rpi-buildqt

Guide for cross compiling QT 5.8 with piomxtextures for raspberry pi
MIT License
45 stars 24 forks source link

1_download.sh uses -C option on git command but git doesn't recognize it. #2

Closed travfrog closed 7 years ago

travfrog commented 7 years ago

I changed it to -c (lower case) and that worked.

Kukkimonsuta commented 7 years ago

-c and -C are not equivalent, see https://www.kernel.org/pub/software/scm/git/docs/#_options

What git version do you have? -C should be available since 1.8.5

Alternative to the block using -C would be

        pushd $2
        git clean -dfx
        git reset --hard
        git pull
        popd
travfrog commented 7 years ago

Ah, i see. My version is 1.7.9.5. After updating to 2.11 it works fine. Thank you.

travfrog commented 7 years ago

Thanks for getting back to me Lukas. I've managed to get to 3.0. The build completes but the configuration test loses its mind. Any thoughts? (the odd characters are being displayed)

Thank you in advance.

my g++ version is g++ (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3

Running configuration tests... Checking for gold linker...

ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

On Thu, Mar 16, 2017 at 12:00 PM, Lukáš Novotný notifications@github.com wrote:

-c and -C are not equivalent, see https://www.kernel.org/pub/ software/scm/git/docs/#_options

What git version do you have? -C should be available since 1.8.5

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kukkimonsuta/rpi-buildqt/issues/2#issuecomment-287104553, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB5xNEA5sl2akhBQsTvvt9mPjV6jK0Dks5rmVy5gaJpZM4MfgZy .

Kukkimonsuta commented 7 years ago

Version of your g++ should be irrelevant since we are using precompiled toolchain downloaded and patched in 1_download.sh.

Are you running the script 3.0_build_qtbase.sh or ./configure / make manually?

travfrog commented 7 years ago

Running the scripts.

The only variables I modified in env.sh is the IP address of the Pi.

On Thu, Mar 16, 2017 at 1:25 PM, Lukáš Novotný notifications@github.com wrote:

Version of your g++ should be irrelevant since we are using precompiled toolchain downloaded and patched in 1_download.sh.

Are you running the script 3.0_build_qtbase.sh or ./configure / make manually?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Kukkimonsuta/rpi-buildqt/issues/2#issuecomment-287131175, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB5xBsryktgAIK6C5lly2DX8XiUT0h_ks5rmXCTgaJpZM4MfgZy .

Kukkimonsuta commented 7 years ago

Maybe re-check that 2_sync.sh successfully copied all files from the pi /lib, /usr/include, /usr/lib, /opt/vc to sysroot, but other than that I'm sorry, I don't know.

travfrog commented 7 years ago

Okay, well thanks for looking into it for me. Congrats on getting it to work. Many people have spent many days. I'm already on day 3 and no closer.

Regards, Richard

On Thu, Mar 16, 2017 at 1:44 PM, Lukáš Novotný notifications@github.com wrote:

Maybe re-check that 2_sync.sh successfully copied all files from the pi /lib, /usr/include, /usr/lib, /opt/vc to sysroot, but other than that I'm sorry, I don't know.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Kukkimonsuta/rpi-buildqt/issues/2#issuecomment-287137084, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB5xLrBSwYFkZ327ByQIhN8ehbHXUWaks5rmXUbgaJpZM4MfgZy .

Kukkimonsuta commented 7 years ago

I understand the pain, it took me few days to get it running too. Would it help you if I published binaries built on and for ubuntu 16.04 x64 and rpi3?

travfrog commented 7 years ago

It would help. I think my problem is my Linux distro is a VM on my Windows laptop and it's way out of date - like 12.04. I suspect that's where I'm falling down. I have a new machine waiting to be set up so I'll get 16.04 on it and try again.

Actually, my friend just succeeded and he's using 16.04 - I guess that answers that.

So what are you intending on doing with your Qt based Pi?

On Thu, Mar 16, 2017 at 2:18 PM, Lukáš Novotný notifications@github.com wrote:

I understand the pain, it took me few days to get it running too. Would it help you if I published binaries built on and for ubuntu 16.04 x64 and rpi3?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Kukkimonsuta/rpi-buildqt/issues/2#issuecomment-287147026, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB5xFOT6gBsg2P6M9Hetn4xToTAt-HWks5rmXzxgaJpZM4MfgZy .

Kukkimonsuta commented 7 years ago

https://github.com/Kukkimonsuta/rpi-buildqt/releases/tag/20170317

I'm not sure if it's gonna be of any help since it's built for different ubuntu version, but it's worth a shot. Glad to hear your friend successfully built it.

We were doing experiments with video playback on some devices including rpi for one of our customers, but can't tell the specifics :)

travfrog commented 7 years ago

Haha, understood. Thanks for the binary and good luck.

On Mar 17, 2017 11:08 AM, "Lukáš Novotný" notifications@github.com wrote:

https://github.com/Kukkimonsuta/rpi-buildqt/releases/tag/20170317

I'm not sure if it's gonna be of any help since it's built for different ubuntu version, but it's worth a shot. Glad to hear your friend successfully built it.

We were doing experiments with video playback on some devices including rpi for one of our customers, but can't tell the specifics :)

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Kukkimonsuta/rpi-buildqt/issues/2#issuecomment-287380441, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB5xGN_llXWEBh6CSCIfh1z4qPQ3ulOks5rmqICgaJpZM4MfgZy .