summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 12:13:44 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 12:13:44 (GMT)
commitea574b6181da119e170a14614dcb58b991970a37 (patch)
tree544c1c0fa0048b3450d7d455e5d25c1b3c52b847
parent194102eac605c1f6bc27cedf182dbff2c9421732 (diff)
Make it compile on Android
-rw-r--r--CMakeLists.txt2
-rw-r--r--kstars/fitsviewer/fitsdata.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e9beaaf..5bb1e79 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,8 +27,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Android)
set(ANDROID TRUE)
endif()
-add_definitions(-DQT_QML_DEBUG)
-
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
diff --git a/kstars/fitsviewer/fitsdata.cpp b/kstars/fitsviewer/fitsdata.cpp
index 97f24ac..95973ec 100644
--- a/kstars/fitsviewer/fitsdata.cpp
+++ b/kstars/fitsviewer/fitsdata.cpp
@@ -194,7 +194,7 @@ bool FITSData::loadFITS (const QString &inFilename, bool silent)
break;
case -32:
data_type = TFLOAT;
- stats.bytesPerPixel = sizeof(float_t);
+ stats.bytesPerPixel = sizeof(float);
break;
case 64:
data_type = TLONGLONG;
@@ -202,7 +202,7 @@ bool FITSData::loadFITS (const QString &inFilename, bool silent)
break;
case -64:
data_type = TDOUBLE;
- stats.bytesPerPixel = sizeof(double_t);
+ stats.bytesPerPixel = sizeof(double);
default:
errMessage = i18n("Bit depth %1 is not supported.", stats.bitpix);
#ifndef KSTARS_LITE