Bug 490797 - Build failed on Linux Mint 21.2 Cinnamon
Summary: Build failed on Linux Mint 21.2 Cinnamon
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-24 23:16 UTC by kbrown
Modified: 2025-05-27 07:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kbrown 2024-07-24 23:16:05 UTC
SUMMARY
Not really a bug but a compilation error which I managed to solve:

I compiled and installed the latest indi core, indi 3rdparty and stellarsolver from their respective git repos. I then pulled the latest kstars from the git repo as well and tried to rebuild kstars from scratch. However I was getting compilation errors like this:

In file included from .../kstars/kstars/indi/indicamera.cpp:7:
.../kstars/kstars/indi/indicamera.h:200:51: error: incomplete type ‘FITSData’ used in nested name specifier
  200 |         bool setFITSHeaders(const QList<FITSData::Record> &values);

A friend of mine did not encounter this problem but he is using a newer gcc. Mine is:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
and his was:
gcc version 14.1.0 (Ubuntu 14.1.0-5ubuntu1

The workaround to this problem was to add:
#include "fitsviewer/fitsdata.h"
at the beginning of kstars/indi/indicamera.h

This allowed me to compile kstars as expected.
Comment 1 Jasem Mutlaq 2025-05-27 07:38:33 UTC
Issue is fixed.