forked from rlancaste/stellarsolver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rlancaste#146 from rlancaste/supportingQT6
Supporting qt6
- Loading branch information
Showing
44 changed files
with
476 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
#This gets the directory of the script, but note that the script is in a subdirectory, so to get the Repo's directory, we need ../ | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../ | ||
|
||
#This installs the dependencies | ||
if [ -f /usr/lib/fedora-release ]; then | ||
sudo dnf -y install git cmake qt6 cfitsio-devel gsl-devel wcslib-devel | ||
else | ||
sudo apt -y install g++ git cmake qt6-base-dev libgl1-mesa-dev libcfitsio-dev libgsl-dev wcslib-dev | ||
fi | ||
|
||
#This makes and installs the library | ||
mkdir -p $DIR/build | ||
cd $DIR/build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QT5=Off -DBUILD_TESTER=Off $DIR | ||
make -j $(expr $(nproc) + 2) | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
#This gets the directory of the script, but note that the script is in a subdirectory, so to get the Repo's directory, we need ../ | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../ | ||
|
||
#This installs the dependencies | ||
if [ -f /usr/lib/fedora-release ]; then | ||
sudo dnf -y install git cmake qt6 cfitsio-devel gsl-devel wcslib-devel | ||
else | ||
sudo apt -y install g++ git cmake qt6-base-dev libgl1-mesa-dev libcfitsio-dev libgsl-dev wcslib-dev | ||
fi | ||
|
||
#This makes and installs the library | ||
mkdir -p $DIR/build | ||
cd $DIR/build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QT5=Off -DBUILD_TESTER=ON $DIR | ||
make -j $(expr $(nproc) + 2) | ||
sudo make install | ||
|
||
#This copies the icon into the pictures directory for the section below | ||
cp $DIR/tester/StellarSolverIcon.png $HOME/Pictures/ | ||
|
||
# This will create a shortcut on the desktop for launching StellarSolver | ||
################## | ||
cat >$HOME/Desktop/StellarSolverTester.desktop <<-EOF | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Terminal=false | ||
Icon[en_US]=$HOME/Pictures/StellarSolverIcon.png | ||
Icon=$HOME/Pictures/StellarSolverIcon.png | ||
Exec=/usr/bin/StellarSolverTester | ||
Name[en_US]=StellarSolverTester | ||
Name=StellarSolverTester | ||
EOF | ||
################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.