RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
problems Compiling RaceCapturePro firmware
Author Message
Reply with quote
Post problems Compiling RaceCapturePro firmware 
This is my first attempt at compiling the firmware, so, this is likely a first time user problem.

compiling: ../src/logger/loggerApi.c fails as MAJOR_REV, MINOR_REV and BUGFIX_REV are not defined.

what did I miss?

I can also see that I'm going to need to setup my system for cross compiling. Is there a handy list of dependencies that I should install before I start looking at the compile errors?

Thanks,
Rod.

View user's profile Send private message
Reply with quote
Post  
Running just the "make" command should handle all of the requirements needed for compiling the firmware.

There's a full how-to guide for compiling the firmware in the README.md : github.com/autosportlabs/RaceCapture-Pro_firmware

If you do run into an issue or identify a problem, I'd recommend opening an issue on the github repo so we can track it close to the source.

Thanks!


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
Thanks for the reply ... when I manage to identify the issue(s), I'll move this over to github as you suggest.

I first ran "make" which fails in the first file it tries to compile that references MAJOR_REV, MINOR_REV and BUGFIX_REV.

If I run with "make -i" I can see that I have a bunch more errors that will follow once I get that resolved.

If it's trying to install packages, do I need to run this as root?!? -- I'd prefer to install the needed packages as a separate step.

I have since identified that I was missing these cross compiler packages: *-arm-none-eabi for example.

Having installed these, it looks like most of my remaining errors are directly related to, or have cascaded from the *_REV defines that I seem to be missing.

View user's profile Send private message
Reply with quote
Post  
A little more digging and I have found this error "hidden" among the make output:

> fatal: Not a git repository (or any parent up to mount point /home)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

They don't cause make to halt, so I didn't notice them at first.

Perhaps when I figure out how to use git/github and properly connect to the repository, it will find my missing defines for me. I'll work on this again tomorrow.

Rod.

View user's profile Send private message
Reply with quote
Post  
I see what's happening. The revision numbers are pulled from the Git information. If you try to compile it outside of the context of the git repository, then this could happen.

You'll have to update the scripts to patch in the version number without needing the git context.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum