Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Evalulate cmake NuttX wrapper #2

Closed
dagar opened this issue Jun 12, 2017 · 4 comments
Closed

Evalulate cmake NuttX wrapper #2

dagar opened this issue Jun 12, 2017 · 4 comments
Assignees

Comments

@dagar
Copy link
Member

dagar commented Jun 12, 2017

@davids5 FYI NuttX cmake wrapper is in the cmake branch here. https://github.com/PX4/PX4NuttX/tree/cmake

  • cmake wrapper for building each nuttx lib
  • copy NuttX to build directory as hard links
  • nuttx-patches moved into nuttx/ and apps/ commits
  • nuttx-configs moved into this repo under configs/
  • no more nuttx-export
  • nuttx and apps forks currently on bitbucket - https://bitbucket.org/account/user/px4/projects/NUT
    Being closer to upstream NuttX development might encourage more collaboration.

PX4 PR - PX4/PX4-Autopilot#7397

@lukegluke
Copy link

lukegluke commented Jun 13, 2017

Hi, @dagar

I'm really interesting in px4 nuttx to be closer to upstream NuttX.
I'm developing on Windows (yes, I know that this is not the good choice :) with help of corresponding px4 toolchain for windos. I've already many times successfully built px4 firmware and its modifications from master branch.
I've tried to build px4 firmware from your nuttx-cmake branch, but encountered on error:
failed to create symbolic link '[...absolute path...]/PX4Firmware/build_px4fmu-v4_default/NuttX/nuttx/PX4_Config.mk': No error
I'm not an expert in cmake but as I understand from searching cmake for windows doesn't support "-E create_symlink" command.
I understand that this is not popular OS for developing, but could you please correct this issue. I don't see whole picture, using copy instead of symlink will be suitable?
Many thanks in advance!

update: when I change symlinks to copy operations then in further building got:

make[6]: *** [board] Error 1
make[5]: *** [dirlinks] Error 2
make[4]: *** [dirlinks] Error 2
make[3]: *** [NuttX/nuttx/include/nuttx/version.h] Error 2
make[2]: *** [NuttX/CMakeFiles/nuttx_context.dir/all] Error 2
make[1]: *** [all] Error 2

@dagar
Copy link
Member Author

dagar commented Jun 13, 2017

@lukegluke thanks for testing. If this is a viable path forward we can do a pass to fix the windows issues. C

What do you think about using Windows 10 bash/ubuntu instead of the PX4 tools? I've found that to be faster and ultimately easier. Plus PX4 tools would no longer need to exist (it's frequently out of date).

@lukegluke
Copy link

Thanks for suggestions. I have Windows 7 and don't have plans to update to Win10. For now it's easier for me to use virtual machine with Ubuntu. Installing it right now.

@lukegluke
Copy link

@dagar
By the way, if suddenly useful, I build nuttx-cmake px4fmu-v2 on ubuntu through virtualbox both in bash and qt creator.
Also in Windows 10 there is only bash, so there will be no way to develop through IDE right?

If you will allow, I ask here: according to docs qt creator is only officially supported IDE (and I want to use it too), but in contrast with eclipse project when I open CMakeLists.txt in qt project looks "trimmed" - it doesn't show in project list many source, for example orb messages, ROMFS. I wonder why?
Thanks for info again.

@dagar dagar closed this as completed Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants