×

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

Bi-monthly release with minor bug fixes and improvements

Kstars 3.5.0 OSx

  • Posts: 180
  • Thank you received: 16

Replied by AirBourn on topic Kstars 3.5.0 OSx

What version of Qt? What OSX Deployment target? Could you post the build-env output or the file itself for my comparison?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Environment Variables Set.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
DIR                      is [/Users/bryan/Development/KStars-INDI-Mac-Dev/scripts]
QT_PATH                  is [/Users/bryan/Development/Qt/5.15.1/clang_64]
SDK_PATH                 is [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk]
TOP_FOLDER               is [/Users/bryan/Development/KStars-INDI-Mac-Dev]
SRC_FOLDER               is [/Users/bryan/Development/KStars-INDI-Mac-Dev/src]
FORKED_SRC_FOLDER        is [/Users/bryan/Development/KStars-INDI-Mac-Dev/src-forked]
BUILD_FOLDER             is [/Users/bryan/Development/KStars-INDI-Mac-Dev/build]
DEV_ROOT                 is [/Users/bryan/Development/KStars-INDI-Mac-Dev/ASTRO-ROOT]
sourceKStarsApp          is [/Applications/KStars.app]
KStarsApp                is []
sourceINDIWebManagerApp  is [/Applications/INDIWebManagerApp.app]
INDIWebManagerApp        is []
QT_PATH                  is [/Users/bryan/Development/Qt/5.15.1/clang_64]
GETTEXT_PATH             is [/usr/local/opt/gettext]
PREFIX_PATH              is [/Users/bryan/Development/Qt/5.15.1/clang_64;/Users/bryan/Development/KStars-INDI-Mac-Dev/ASTRO-ROOT;/usr/local/opt/gettext]
PATH                     is [/Users/bryan/Development/KStars-INDI-Mac-Dev/ASTRO-ROOT/bin:/Contents/MacOS/astrometry/bin:/Contents/MacOS/xplanet/bin:/Users/bryan/Development/Qt/5.15.1/clang_64/bin:/usr/local/opt/gettext/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS]
OSX Deployment target    is [10.13]
Using INDI Repo: https://github.com/indilib/indi.git
Using 3rd Party Repo: https://github.com/indilib/indi-3rdparty.git
Using KStars Repo: https://github.com/KDE/kstars.git
Using Web Manager Repo: https://github.com/rlancaste/INDIWebManagerApp.git
3 years 4 months ago #63299

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic Kstars 3.5.0 OSx

Hopefully this helps.
~/Projects/KStars-INDI-Mac-Dev/scripts/setup.sh -r
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Environment Variables Set.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
DIR                      is [/Users/jerry/Projects/KStars-INDI-Mac-Dev/scripts]
TOP_FOLDER               is [/Volumes/Data_Raid]
SRC_FOLDER               is [/Volumes/Data_Raid/src]
FORKED_SRC_FOLDER        is [/Volumes/Data_Raid/src-forked]
BUILD_FOLDER             is [/Volumes/Data_Raid/build]
DEV_ROOT                 is [/Volumes/Data_Raid/ASTRO-ROOT]
sourceKStarsApp          is [/Applications/KStars.app]
KStarsApp                is []
sourceINDIWebManagerApp  is [/Applications/INDIWebManagerApp.app]
INDIWebManagerApp        is []
QT_PATH                  is [/Users/jerry/Qt/5.15.2/clang_64]
GETTEXT_PATH             is [/usr/local/opt/gettext]
PREFIX_PATH              is [/Users/jerry/Qt/5.15.2/clang_64;/Volumes/Data_Raid/ASTRO-ROOT;/usr/local/opt/gettext]
PATH                     is [/Volumes/Data_Raid/ASTRO-ROOT/bin:/Contents/MacOS/astrometry/bin:/Contents/MacOS/xplanet/bin:/Users/jerry/Qt/5.15.2/clang_64/bin:/usr/local/opt/gettext/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin]
OSX Deployment target    is [10.13]
Using INDI Repo: https://github.com/indilib/indi.git
Using 3rd Party Repo: https://github.com/indilib/indi-3rdparty.git
Using forked KStars Repo: https://invent.kde.org/jblackns/kstars.git
Using Web Manager Repo: https://github.com/rlancaste/INDIWebManagerApp.git
 
REMOVE_ALL         = Yep
BUILD_XCODE        = Nope
BUILD_OFFLINE      = Nope
BUILD_TRANSLATIONS = Nope
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ This will use an existing KStars App to setup a Development Environment for KStars and INDI on your Mac that does not depend on Craft or Homebrew.  It assumes the KStars app bundle is at /Applications/KStars.app.  It will place the development directory at the location specified.  It will use QT Located in your home directory.  Edit this script if that is incorrect.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 years 4 months ago #63300

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

I would not recommend building with the -x option (the Xcode build) at the moment. I've been working really hard on the other build and I haven't gotten a chance to do any testing of that since I made all these changes. I think it should still work, since I have been carefully trying to preserve that while making these other changes, but we should get this build working first. There also are crazier issues with Xcode like code signing issues that you will run into. We don't need code signing since you are building it on your computer to run on your computer, but it still causes issues. I think all that works with the changes I made last year, but again, I haven't tested it since we made all these changes recently for Big Sur.
3 years 4 months ago #63302

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

  • Posts: 180
  • Thank you received: 16

Replied by AirBourn on topic Kstars 3.5.0 OSx


Yeah, agreed. I'm not trying to build from an XCode project at all - just trying to get this one to build correctly. I only mentioned XCode because I had to fix the XCode install to get the right SDK, that's all.

And thanks Jerry - I see a couple of differences.
3 years 4 months ago #63304

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

  • Posts: 180
  • Thank you received: 16

Replied by AirBourn on topic Kstars 3.5.0 OSx

Well, interestingly enough, I installed Qt 5.15.2 versus Qt 5.15.1 and it worked. I would have bet against that... :unsure:
(However, I also did a git pull and got new versions of the scripts, too - Looks like Rob's last commit for "Adding StellarSolver to the list of programs that can be built" fixed it for me.)

Anyway, I now have a build environment that works!
3 years 4 months ago #63307

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

Ok just making sure. On that note though, today I did do some work on the Xcode build. Mainly making an Xcode project is important for testing purposes, such as using the leak detection, code analysis, and memory analysis tools. I would mainly recommend using QT Creator for actual coding.
3 years 4 months ago #63308

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

Awesome! And now you have access to my new StellarSolver program as well.
3 years 4 months ago #63309

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

For Coding in QT Creator, please pay close attention to the comments I made on the REPO instructions. I have tried to put on there all the issues that I have had and how to fix them. And if you ever break the build, such as if you accidentally delete the App bundle or something else, you can always, delete the build folder, rerun the script and get back in business.
The following user(s) said Thank You: AirBourn
3 years 4 months ago #63310

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

Ok I think the Xcode build now works very well, as long as you set your code signing identify as specified in my readme. I just ran some KStars and StellarSolver tests and it works.
The following user(s) said Thank You: AirBourn
3 years 4 months ago #63312

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

  • Posts: 180
  • Thank you received: 16

Replied by AirBourn on topic Kstars 3.5.0 OSx

So I've been running the built version 3.5.0 here with the simulators (haven't connected to my StellarMate rig yet), and I notice that there are no sounds? I normally get sounds when a new image pops up in the FITS viewer, and that beeping heartbeat when guiding, that kind of thing. I get them with the app from the DMG, but not from the build. What's missing?
3 years 4 months ago #63314

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

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Kstars 3.5.0 OSx

So the answer to this is slightly complicated. The sounds in KStars come from a library called Phonon (the VLC based version), which was originally supposed to be a cross platform sound system. But I found it to be incredibly hard to build the vlc backend for it on OSX. A couple of years ago, I managed to get it built after several hours of hard work, but the changes I had to make were in a number of different places in libraries owned by different people. I very carefully saved the binaries, and now in the DMG build I just copy them in from a zip file. The sounds do work just fine in the distributed version of KStars, but not in the development versions. So you might ask, why don't we just copy them in to the app bundle here, wouldn't they work here too? Well yes, it does work, I tried it, but the issue is that the phonon files I am referring to reside in the plugins in the app bundle, but since everyone is using a different version of QT, the plugins on your system might be different, so really we should be using the plugins directory from QT, not an internal plugins directory in the app bundle. There could potentially be issues or conflicts with file versions if we do that. So you might think, well what if we copied it into the plugins folder on the user's system in QT? Well I don't think I should copy files into people's QT directory from my script first, but also, the libraries in the vlc folder and the phonon backend are linked to the libraries in the app bundle. I am not sure they would work in the QT directory. Maybe with a bunch of work they could.

So it's complicated. And from my perspective, I am a volunteer working on a hobby project, this isn't my full time job, and just getting KStars to work on OS X in the first place and then to keep it working and fix all the issues that pop up is difficult enough. And this year I just decided to develop a cross platform plate solving library called StellarSolver. These things do take a lot of time, but they are really interesting and they do make a difference in the world, so I do have to pick my battles. The sound issue is not really at the top of my list. But other folks like yourself helping out would greatly help the cause and allow more of these sorts of issues along with many others to get fixed. That is one really big reason that the KStars-INDI-Mac-Dev Repo has been a priority of mine, so that I can get new folks started and helping out. Because we all benefit from this open source collaboration that we are undertaking here. Last year, I got somebody started coding on KStars and INDI using this repo and he started small and then started working on bigger projects. He is now one of our main contributors, though he did decide to move to coding for KStars on Linux because of the challenges on OS X, but he hasn't stopped, and thats the important part! I am hoping though, to get this repo to a state where it is good enough that people enjoy using it just as much.
3 years 4 months ago #63315

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

  • Posts: 180
  • Thank you received: 16

Replied by AirBourn on topic Kstars 3.5.0 OSx

OK - great - just wanted to make sure that was expected behavior, and not an issue with the build itself. Are there good docs on the Qt build process I can peruse? Although I have years and years of MacOS experience, I know nothing about Qt.
3 years 4 months ago #63328

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

Time to create page: 0.383 seconds