×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Anyone Build KStars on Ubuntu?

  • Posts: 180
  • Thank you received: 16
Curious what IDE is popular and works well? What are the linux developers using? KDevelop?
Anyone have a baseline KStars template project they can share?

Can I run KDevelop on a remote (MacOS) machine with the code/build on a separate Ubuntu machine, or does KDevelop need to run on the build environment machine?
Last edit: 5 months 1 week ago by AirBourn. Reason: Added additional questions.
5 months 1 week ago #97356

Please Log in or Create an account to join the conversation.

  • Posts: 84
  • Thank you received: 28
I believe the general recommendation, and certainly mine, is to use Qt Creator for Qt applications such as KStars, and indeed the entire KDE suite.
However I have never done so on Mac. I use Qt Creator on Linux Mint which is based on Ubuntu.
5 months 1 week ago #97362

Please Log in or Create an account to join the conversation.

  • Posts: 1226
  • Thank you received: 566
FWIW, in my case I develop mostly on an Ubuntu 22.04 VM on a MacbookPro M2 (and test using simulators), but then really test and in general image using an intel miniPC running Ubuntu 22.04 that's connected to my telescope and my "real devices". When editing/debugging code on the VM I use QtCreator as my IDE. I could compile for the VM using QtCreator too, but it's just as simple to compile using cmake and make. Once I want to test on the miniPC, I push the code from my VM to a cloud gitlab server, transfer the code over to the miniPC (using git pull), compile using cmake and make, and usually run under gdb. Old school, I guess.
The following user(s) said Thank You: AirBourn
Last edit: 5 months 1 week ago by Hy Murveit.
5 months 1 week ago #97364

Please Log in or Create an account to join the conversation.

  • Posts: 180
  • Thank you received: 16
Thank you Hy - makes sense. What do you use for VM? So if you're using command-line cmake and make in your VM, what does QtCreator provide that any other good source code editor/organizer doesn't do?

So you actually compile on your miniPC? Why not push binaries from your VM? Do you need to compile on the miniPC just for gdb? I'm with ya on the old school! Tried and true!

Have you tried QtCreator for MacOS on the M2, editing source on the miniPC? Eliminating the need for two Ubuntu instances?
Last edit: 5 months 1 week ago by AirBourn.
5 months 1 week ago #97370

Please Log in or Create an account to join the conversation.

  • Posts: 1226
  • Thank you received: 566
I used VMWare Fusion on my MacbookPro, booting Ubuntu 22.04 onto a VM.

QtCreator provides auto-formatting, easy ways to find definitions of methods and variables, and to find other parts of the code that references those methods and variables. Just an IDE. I know Jasem and Wolfgang use the debugging facilities more than I do.

I compile on my miniPC because it's just as fast as compiling on my laptop (and I couldn't use the same binaries anyway). If I were running on an RPi (which takes an hour plus to compile KStars) I might consider figuring out how to cross-compile, but it takes 5-10 minutes to compile all of KStars from scratch on my miniPC, and a minute or two for a typical compile, so it's not a problem to compile directly on the miniPC.

I haven't tried QtCreator directly on the Mac. It's possible that John Evans or Rob Lancaster do that, you might want to ask them. I like working on Ubuntu--I've used Unix/Linux my entire coding life, so I'm happy doing that, and I don't see running an Ubuntu VM as an issue, I see it as a benefit. The Mac build is a bit tricky to set up--perhaps it's because I'm used to Linux--so I avoid that. When I do other coding-related things, I'll use the Ubuntu VM too. I'm not a Mac coder.

Hy
5 months 1 week ago #97371

Please Log in or Create an account to join the conversation.

  • Posts: 180
  • Thank you received: 16
I've got it working on a VM in UTM - I have a newer M1 Mini, and VMWare doesn't have Fusion released on the Apple silicon yet. I've got QtCreator building the project and can debug fine. I keep running out of disk space in the VM (especially after installing the GSC for the simulators!), and can't figure out a good way to configure the VM for more yet.
5 months 3 days ago #97445

Please Log in or Create an account to join the conversation.

  • Posts: 1226
  • Thank you received: 566
@AirBourn

You said:
VMWare doesn't have Fusion released on the Apple silicon yet.
Not so, I have been running VMWare Fusion on my MacbookPro M2 for at least 6 months.
Are you running Fusion 13? Looking on their webpage www.vmware.com/products/fusion/fusion-evaluation.html shows:
Fusion 13 supports Macs with either Intel or Apple silicon running macOS 12 and newer...
Hy
5 months 3 days ago #97446

Please Log in or Create an account to join the conversation.

  • Posts: 180
  • Thank you received: 16
You're absolutely right - my mistake. I meant to say VirtualBox, not Fusion. Do you compare Fusion to Parallels? I've owned both over the years, and am trying the latest Parallels now. Not sure UTM is going to cut it.
5 months 3 days ago #97447

Please Log in or Create an account to join the conversation.

Time to create page: 0.580 seconds