I've been following this thread remotely and it's awesome to see the progress. I think all of my pull requests have been integrated into the mainline so you shouldn't need to use my branch anymore (as mentioned earlier). I have a fix for the Debug mode crash which I'll post once I get my backup laptop working (beer on MBP keyboard = death).
Once we come up with a reliable build configuration I'd like to set up a Travis CI job to keep things running and upload nightly builds to S3 so everyone can have fresh OSX/MacOS builds without suffering through 6 hour Qt builds (!).
That sounds excellent! Yes, if you look at the updated directions, i am using the current kstars git instead of yours now. Mainly we are using your excellent instructions for the preparations with the environment variables.
As of right now I have kstars, indi, ekos, and gsc working on my system. I havent tested xplanet or astrometry with os x yet. There are still a few bugs, the biggest being the download new data problem.
And yes, not having to build every time would be awesome! Your assistance is most welcome!
Akarsh, enjoy your trip!
Rob, thanks for your update on the instructions. I want to add that I also had to export the directories as described by Sean before building libindi for it to find the homebrew qt5 installation. Maybe you also have a manual installation of qt5 so it works for you without the exports. In addition, I had to install cmake using homebrew before everything else. So maybe it would be good to move all the homebrew stuff to the top of the instructions. I would also add "brew install pkgconfig" there as I needed that for kstars to detect indi.
You could also add the changes to the qt5 formula I had to follow to make it build using homebrew in case someone wants to try before this is fixed officially.
I will also try to build kstars and indi on macos 10.12 again if I can, so for now you could also add a remark that the instructions are only tested on 10.11 yet.
Also, thanks for the gsc instructions! I haven't tried them yet.
And Sean, thanks for your initial work! It would indeed be great if the whole process could be eased in the end. As most of the dependencies are installed using homebrew already, maybe it would be possible to also make indi and kstars available through homebrew somehow in the end? I have absolutely no experience with that however and homebrew doesn't seem that reliable on recent versions of OS X.
No, you are right, when I installed libindi from source, I definitely used the exports because otherwise, it doesn't know where things are. I believe I already had cmake on my mac, and I don't remember installing pkgconfig, but I do see both of them in my home-brew /usr/local/cellar directory so I don't know when I did that, so you might be right on that too. I just added all this to the instructions. Please take a look at them again.
I think that should be easy to follow, well done! Just to save the reader some searching, you could add the directory of the qt5 formula which is a bit hard to find:
I have yet to try gsc (and astrometry.net), but from your instructions, I don't see a reason why it shouldn't work.
I just want to say that the qt5 issue seems to be fixed now so installing qt5 with homebrew should work without the patch from before. I actually had to undo the patch manually because homebrew keeps user-made changes to formulas between updates.
Unfortunately, I still have no luck building libindi on macos 10.12 because the cmake files searching for libnova and libusb don't seem to work. I made cmake find them by giving the directories manually to the command, but when trying to build libindi afterwards, it fails because it doesn't find libnova with the 'include <libnova.h>' statements for example.
Another issue I encountered is, that starting drivers locally from Ekos (with the 'Mode: local' setting) doesn't work. It gives a pop-up error message:
Driver indi_simulator_telescope was not found on the system. Please make sure the package that provides the 'indi_simulator_telescope' binary is installed
although I set the indi server and drivers directories to /usr/local/bin/indiserver and /usr/local/share/indi and the files in question seem to be right there.
So we can probably remove the section about patching the qt5, and just go back to installing it with home-brew?
The problems you stated with building libindi, were those problems just with OS10.12, or were you unable to build libindi on 10.11 too? I was able to successfully build libindi, but had some trouble with the 3rd party drivers. That is all now working on my system.
For the local mode, was that just on 10.12, or does that include 10.11 too? My setup is the same as yours on 10.11 I think and my local mode works fine.
Note, if you cannot get the local mode to work, for now you can use the Cloudmakers indiserver app and run that "remotely" on the same computer. But hopefully yours can work locally.
I haven't been working on this problem for a little while because it was working on my system now and I turned my attention to learning some C++ and improving the fits viewer. My changes are not available yet but they will be soon (a couple of weeks I think?). I have added panning with a left button mouse drag, using trackpad gestures like pinch and two fingered panning for zooming and panning the image file, keeping the zooming focused on the point you intend instead of going to the upper left hand corner all the time, optional gridlines and crosshairs for overlaying your image, and a mouse mode for centering your telescope on a point you click in the image. These are all currently working fairly well on my Mac and Linux machines, but there are still some minor kinks that need to be worked out. Hopefully will be soon.
The problems you brought up are really important though because the first priority is to get it installed on your computer, extra features would come second to that. Please let me know anything you can about the problem.
yes, the step of patching qt5 is not necessary anymore. I installed qt5 with homebrew on 10.11 and 10.12 and it works without the patch (but usually takes more than two hours to build).
The problems with building libindi only occur on 10.12. On 10.11, I have libindi and Kstars running, but with described the issues.
On 10.11, indiserver seems to work fine (only tried the simulator yet) when started from the command line and then connecting with Ekos to localhost with the 'remote' setting. But starting the drivers with the 'local' setting gives the mentioned error.
Great to hear you are working on the native controls! That's really one important thing for using KStars with a Macbook.
In the past month I have made a bunch of contributions to KStars code that is being released very very shortly in Version 2.7 which should make it work much better on OS X. I added trackpad support, fixed the windows going to the back behind the main window, fixed the icons problems, and fixed the Download New Data. . . window not working problem. I wrote up a part of a blog post that Jasem is going to post soon when he releases version 2.7 which should explain all the stuff that I did to make it work on OS X. There are still some bugs most likely, but most of the bugs have gone away.
No installer yet. . .but it is improving. The emerge tool has shown some promise. I successfully used it to compile a working KStars on OS X and the Instructions for this would be much shorter that the other instructions I wrote before.