Cross Compile on Windows For Ubuntu (BeagleV)

Hi All,

I have beagleV that is running with ubuntu image. I want to develop cpp application on windows and compile and debug it for beagleV with using cross compile. Which toolchain should i use for it? (I want to use eclipse IDE)

Best Regards.

Will you be offended if I tell you the best way to do that?

I am waiting your suggestion with great excitement.

Best way without any headache is do it directly on the board. I don’t have the BeagleV, however do assume they have a debian desktop for that board. The multicore boards have enough horse power to run an IDE. For a long time I used Geany (simple, stable and effective) and did remote builds via bash scripts. It worked very well but was not integrated with git well enough for my needs.

Running Debian or even Ubuntu LTS version is the best way to go on the host side. Much of this now depends on your needs that are dependent upon the complexity of your project. Eclipse and CCS are fine if you like fiddle farting around all day. If you need to get serious look into Clion (c/c++) or Pycharm (python). Both versions are tightly integrated with git, that is an extremely important tool when developing software. Also, both can handle remote builds. If you are building a gui app with GTK its best to do the bulk of the work on your host and randomly test it on your target. Those packages are big and consume resources, your host will build it in a fraction of the time.

Bottom line, a native Deb or Ubuntu box is the best choice for a host dev machine. Configure your IDE for remote builds, it builds it on the target using resources of the target.

1 Like

Bottom line, a native Deb or Ubuntu box is the best choice for a host dev machine.

Yep and yep…

Seth

1 Like

you will need a riscv64 cross compiler
search engine returned this,

i don’t run windows any longer, so setup is out of my knowledge base.

Right…or if you use Debian, you can install it via apt.

gcc-riscv64-linux-gnu g++-riscv64-linux-gnu is a good bet too for the Debian distro building…

Seth

P.S. Also, there was something called OpenSBI but I am not sure it is still available… This is for the Ahead, right? Not the Fire?

update here to my findings

So, you do not need OpenSBI or the Ahead rhetoric. Okay…

You are using the Fire from what I see. Please wait for others to help in this manner. I am not 100% sure I can break and make right now with the Fire. I have tried various tasks but have come up short due to my lack of usage. I got mixed up in the arm64 boards recently. Anyway, I hope some people will be of some service.

If you’re really determined to compile off-board, you can always take inspiration
from Robert’s containers, like what you see here.

If it can compile the kernel, I’m sure it can compile whatever you throw at it.

Hi all,

(By the way, i am using BeagleV fire. I forgat to mention)

Thanks all for your informative answers. For beaglebone black i was using gnu arm compiler and eclipse (remote system explorer) for remote development. It was also nice for debug. Because of that i want to set same environment for BeagleV fire. The project that we want to develop on the beaglebone V is big project, i mean there is lots of static library that we are implementing because of that we need capable ide for debugging and compiling. If you ask that why you need to use windows, answer is little bit weird because of the company IT department policy (unlogical restrictions) :face_with_symbols_over_mouth:They are pushing us to use windows for development. If i summarize my needs, it will be as fallow

  1. development pc → windows
  2. target machine-> beaglebone V polar fire
  3. I need to find risc-V toolchain for cross platform (Development will be held on windows)
  4. C++ will be used

I found that lately → https://xpack-dev-tools.github.io/
I will check deeply and inform you.

If you find any solution for my need, i will be happy.

Best Regards.