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

Cross-compile issue #123

Open
ArosPrince opened this issue May 18, 2021 · 6 comments
Open

Cross-compile issue #123

ArosPrince opened this issue May 18, 2021 · 6 comments

Comments

@ArosPrince
Copy link

Hi, I am sorry if this is a dumb question but even after several hours I wasn't able to figure out what's wrong.

In the guide to crosscompile on Ubuntu, in step 2.2, one is supposed to run some git config commands after calling gclient sync

The problem is that it says it is not a git directory:

~/Workspace/webrtc$ git config branch.autosetupmerge always
fatal: not in a git directory

...which is right as far as I can tell.

Could it be there is some step left out in the cross-compile guide?

Thanks

@adgbu
Copy link

adgbu commented May 20, 2021

I have not built rpi-webrtc-streamer yet, but I did manage to cross compile WebRTC on Ubuntu x64 for Raspberry OS ARMv7 target.

Comparing my own notes to README_building.md step 2.2.

After

$ fetch --nohooks --no-history webrtc

If you are on Linux and fetching the code for the first time, then you need to run:

$ cd src
$ ./build/install-build-deps.sh

After that I continued like this.

$ git checkout master
$ git pull origin master
$ gclient sync

Then prepare for build according to GN Quickstart guide
https://gn.googlesource.com/gn/+/master/docs/quick_start.md

I hope that helps. I'm also new to these tools.

@ArosPrince
Copy link
Author

Thanks. Running install-build-deps.sh prior to those git commands indeed helped.

However, later on when calling
./build_rootfs.sh create yyyy-mm-dd-raspios-buster.img

(in my case it is 2021-03-04-...)

I get a lot of "permission denied":

image

Any more ideas what I may be doing wrong?

Thanks!

@adgbu
Copy link

adgbu commented May 24, 2021

Sorry, I haven't done it that way. I got the raspberry pi tools and compiler from
$ git clone https://github.com/raspberrypi/tools.git

Just an idea. Did you run a command with sudo when you were not supposed to? Then user root will own the files and you (normal user) will not have permissions to access those files.

@ArosPrince
Copy link
Author

Yes, you're right again...

I have created PR with the two fixes plus another typos I found:
#125

I am still not finished though, so there may be other issues.

Thanks!

@aphofstede
Copy link

Did you get this running on Ubuntu x64? We plan to crosscompile for arm64 but I'm a bit concerned about MMAL support: raspberrypi/userland#688

@ArosPrince
Copy link
Author

If you're asking me... Then yes, I used the exact way described. I.e. I compiled on x64 Ubuntu (running in Hyper-V) using these steps: https://github.com/kclyu/rpi-webrtc-streamer/blob/master/README_building.md

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

3 participants