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

make px4fmu-v2_default does not work on Windows #9087

Closed
johnnyfisma opened this issue Mar 15, 2018 · 2 comments
Closed

make px4fmu-v2_default does not work on Windows #9087

johnnyfisma opened this issue Mar 15, 2018 · 2 comments

Comments

@johnnyfisma
Copy link

johnnyfisma commented Mar 15, 2018

Second time setting up a Windows machine to build. Having difficulty with

make px4fmu-v2_default

It built px4io-v2_default with no issues. Then, it had issues with MavLink it seems. Error was

src/modules/mavlink/CMakeFiles/git_mavlink_v2.dir/build.make:56 "target pattern contains no '%'

Googling this and looking at the build.make file, I found that line 56 had this:

src/modules/mavlink/CMakeFiles/git_mavlink_v2: src/modules/mavlink/git_init_C:_Firmware_git_Firmware_mavlink_include_mavlink_v2_0.stamp

and when I replaced the 'C:' with just 'C' it got past that line, but then failed on another with C:. So, for that file, I replaced all C:_ (and did 1 by 1 to watch out for issues) and this build worked no problem (I was a bit surprised the my changes stayed put as I thought it would auto-generate, but sometimes I'm lucky).

So, like I said, that got me through that build. I got the message

Linking CXX executable ../../nuttx_px4fmu-v2_default.elf

However, I then get a few issues with "ld.exe" that

address 0x81001e0 of nuttx_px4fmu-v2_default.elf section '__param" is not within region "flash"

This might be beyond my ability to figure out. Perhaps my need to change the size of my flash in the compiler/linker settings? Any help would be much appreciated.

Also, I'd be interested in helping make the above issues go away with the C:

If someone has ideas on how I can do it, I don't mind trying again. I am currently looking into abandoning Windows building, which is probably the recommended approach, but I think it is nice to continue to support all 3 main OSs if possible.

@johnnyfisma
Copy link
Author

Found an answer to my final question. Simpler than I expected. Found this link:

http://discuss.px4.io/t/px4-build-firmware-error/630/3

However, it still does seem that there is something wrong with the Cmake settings with that C: issue, and yes, everytime I clean, it results in that same error, but the fix seems like it works everytime, so should be okay.

@johnnyfisma
Copy link
Author

Closing this as I found the answer.

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

1 participant