QHYCCD

Customer Service => QHYCCD Standard Software Q&A => Topic started by: xjustrunx on July 21, 2020, 11:26:49 PM

Title: TheSkyX keeps crushing with QHY 224c
Post by: xjustrunx on July 21, 2020, 11:26:49 PM
Hello, TheSkyX Pro on Mac OS keeps crushing every time I try to change the settings (adjust offset and gain).
Not sure what for, but there's software plugin of QHY SDK on the QHY website, is it just for developers?
I would really appreciate any help.
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: xjustrunx on July 22, 2020, 07:18:18 PM
When I try to load the script for a plug-in I get multiply "No such file or directory".
In SB forums supports said that the script fails because QHY hasn?t updated it and it tries to access the old plugin location.
Can you fix this please? It just keeps crashing crashing and has to be fixed.

Here's the script error for what it worth:

?cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libQHYCCDX2Plugin*: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/QHYCCD.ui: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt: No such file or directory?
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 22, 2020, 08:04:05 PM
Hi,
    I will test it on my side,please wait some time.And which version X2Camera plugin do you use?
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 22, 2020, 11:37:49 PM
Hi,
    Please try this plugin,and use sudo command when install.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: xjustrunx on July 22, 2020, 11:42:16 PM
Hi,
    Please try this plugin,and use sudo command when install.
Best Regards,
QinXiaoXu
Thanks a lot, I will try it out in a few days and let you know if it's worked!
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: xjustrunx on July 22, 2020, 11:46:00 PM
Also can you give me a little bit more detailed instructions how to install this one? If I just throw it into the terminal and try to run it with sudo +file name, it gives me "permission denied" error.
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 23, 2020, 03:50:42 AM
Hi,
    Go to the folder,just run "sudo ./install.sh" command,after that input the password,if no error message,its result is correct.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: xjustrunx on July 23, 2020, 09:03:56 AM
Same error:

Last login: Thu Jul 23 16:50:42 on ttys000
solarbeaver@MBP-SolarBeaver ~ % /Users/solarbeaver/Documents/Takahashi/SkyX/dsadad/MACOS_TheSkyX_Plugin_V20200626_0/install.sh sudo ./install.sh
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libQHYCCDX2Plugin*: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libusb-1.0.0.dylib: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/QHYCCD.ui: No such file or directory
cp: Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt: No such file or directory
solarbeaver@MBP-SolarBeaver ~ %
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 23, 2020, 07:53:00 PM
    Well,strange,do you have time to do a remote control?If you have time,we can do it today,if not,we can do it next week.My work time is Mon to Fri,9:00 am to 17:30 pm,I'm in Beijing.Now my time is 2020.7.24 8:50 Fri,and my email is qxx@qhyccd.com.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: rpineau on July 23, 2020, 09:55:02 PM
The 64 bit version  of TheSkyX for macOS (and the only one supported going forward) does not have the plugins in "/Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/" but in "/Applications/TheSkyX Professional Edition.app/Contents/PlugIns/" (assuming it was installed in /Applications).
Also your install code should use the proper way of looking up the install location of TheSkyX (mine is not in /Applications) : Look for TheSkyXInstallPath.txt ~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/
You should build a proper install package. I have made a lot of PlugIns and have installer package build script for all of them, so feel free to use them as exemple : https://github.com/rpineau/PegasusUPB/tree/master/installer (one example among many).
Ping me if you need some explanation about the scripts.
Expecting use to know how to run things from the terminal is not a great thing to do and doesn't provide a good experience for your users.

Rodolphe
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 26, 2020, 08:00:28 PM
The 64 bit version  of TheSkyX for macOS (and the only one supported going forward) does not have the plugins in "/Applications/TheSkyX Professional Edition.app/Contents/Resources/Common/PlugIns/" but in "/Applications/TheSkyX Professional Edition.app/Contents/PlugIns/" (assuming it was installed in /Applications).
Also your install code should use the proper way of looking up the install location of TheSkyX (mine is not in /Applications) : Look for TheSkyXInstallPath.txt ~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/
You should build a proper install package. I have made a lot of PlugIns and have installer package build script for all of them, so feel free to use them as exemple : https://github.com/rpineau/PegasusUPB/tree/master/installer (one example among many).
Ping me if you need some explanation about the scripts.
Expecting use to know how to run things from the terminal is not a great thing to do and doesn't provide a good experience for your users.

Rodolphe
Hi,
    Thanks for your feedback and advice,I will try it.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 28, 2020, 08:26:21 PM
Hi Rodolphe,
    I modified a srripts as your link,like this:
Code: [Select]
#!/bin/bash

TheSkyX_Install=~/Library/Application\ Support/Software\ Bisque/TheSkyX\ Professional\ Edition/TheSkyXInstallPath.txt
echo "TheSkyX_Install = $TheSkyX_Install"

if [ ! -f "$TheSkyX_Install" ]; then
    echo TheSkyXInstallPath.txt not found
    exit 1
fi


TheSkyX_Path=$(<"$TheSkyX_Install")
echo "Installing to $TheSkyX_Path"

if [ ! -d "$TheSkyX_Path" ]; then
    echo "Coudln't find TheSkyX application location"
    exit 1
fi

if [ -d "$TheSkyX_Path/PlugIns" ]; then
PLUGINS_DIR="$TheSkyX_Path/PlugIns"
elif [ -d "$TheSkyX_Path/Resources/Common/PlugIns64" ]; then
PLUGINS_DIR="$TheSkyX_Path/Resources/Common/PlugIns64"
else
PLUGINS_DIR="$TheSkyX_Path/Resources/Common/PlugIns"
fi

echo "Installing in $PLUGINS_DIR/CameraPlugIns/"

cp "./cameralist QHYCCD.txt" "$TheSkyX_Path/Resources/Common/Miscellaneous Files/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/QHYCCD.ui"
cp "./QHYCCD.ui" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/libQHYCCDX2Plugin.*"
cp "./libQHYCCDX2Plugin.dylib" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

rm -f "$PLUGINS_DIR/CameraPlugIns/libusb-1.0.*"
cp "./libusb-1.0.0.dylib" "$PLUGINS_DIR/CameraPlugIns/"
if [ "$?" -ne "0" ]; then exit 1; fi

app_owner=`/usr/bin/stat -n -f "%u" "$TheSkyX_Path" | xargs id -n -u`
if [ ! -z "$app_owner" ]; then
        chown $app_owner "$TheSkyX_Path/Resources/Common/Miscellaneous Files/cameralist QHYCCD.txt"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/QHYCCD.ui"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/libQHYCCDX2Plugin.dylib"
        chown $app_owner "$PLUGINS_DIR/CameraPlugIns/libusb-1.0.0.dylib"
fi
    Is it right?And I didn't use the /tmp path,just put files in same folder with script,is the /tmp path necessary?
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: rpineau on July 30, 2020, 05:32:38 PM
Yep that looks right.
Rodolphe
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on July 31, 2020, 02:07:57 AM
    OK,please try this plugin,and please let me know the result.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: rpineau on July 31, 2020, 01:48:09 PM
Ok, I tested the install.sh and it worked (I assume the firmwares HEX files are inside the plugin dynamic library)
So that's better :)
What about making an actual pkg installer (may be you don't have an Apple developer account and certificate ? ).
I'll try testing with my Polemaster latter.
Regards,
Rodolphe
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on August 02, 2020, 08:14:18 PM
    Well,a good news.
    And about dmg pkg,do you know how to do it for a plugin?I only know how to make dmg pkg for software,for example PoleMaster_Qt or EZCAP_Qt.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: rpineau on August 06, 2020, 06:04:35 PM
If you look at my sources (you were able to fins the script so I assume you know where to look) there are 2 script : build/sh that build and sign an installer package and build_notarize.sh that builds the package, sign it and get it notarize by apple automatically. That why I pointed you to these scripts as it does it all.

When I code, I compile with xcodebuld on the command line then go in m installer directory and run the build_notarize.sh from there. It then make a pkg file with the proper content from ../build/Release/ and the Scripts directory in installer.

You still need to export some variables :
app_id_signature : Should contain the name of the certificate to use in your keychain to sign the dylib
installer_signature : Should contain the name of the certificate to use in your keychain to sign the installer
AC_USERNAME : Should contain your apple id login

You also need to create a keychain password entry for app notarizing named AC_PASSWORD.
This password need to be generated on your apple id account ( https://appleid.apple.com/account/manage ) and go to "APP-SPECIFIC PASSWORDS" and generate a new password to store in AC_PASSWORD

Once you have this, the script automate the package build and notarization.
If you only want to sign the package, you can use build.sh but still need app_id_signature and installer_signature to be set. I'm not sure non notarize pkg will work in the future.
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: QinXiaoXu on August 06, 2020, 08:05:01 PM
Hi,
    Thanks for your information.I will let my colleague know it,Dr.Qiu has deliver this work that develop X2 camera plugins to Jan Soldan.
Best Regards,
QinXiaoXu
Title: Re: TheSkyX keeps crushing with QHY 224c
Post by: rpineau on August 08, 2020, 02:48:39 PM
Ok. Tell Jan he can contact me if needed (He might still have my email, if not he can PM me here).