Bug 378588 - Can't build labplot 2.4.0-kf5 on Chakra with Qt 5.8.0 and GCC 5.2.0
Summary: Can't build labplot 2.4.0-kf5 on Chakra with Qt 5.8.0 and GCC 5.2.0
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (other bugs)
Version First Reported In: latest
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-09 13:38 UTC by Jeff Huang
Modified: 2017-04-28 20:52 UTC (History)
1 user (show)

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


Attachments
build failed log (52.44 KB, text/x-log)
2017-04-09 13:38 UTC, Jeff Huang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Huang 2017-04-09 13:38:42 UTC
Created attachment 104930 [details]
build failed log

I got error message in build.log when I'm building labplot-kf5 2.4.0 on Chakra.
Comment 1 Alexander Semke 2017-04-09 16:07:22 UTC
Hi Jeff,

thanks for reporting this. I cannot reproduce this problem with GCC 5.3. This must be a compiler setting and/or how Qt was build. I'll check this.

As a quick solution, does it help for you if you replace updatedKeyword.comment.toLatin1() by updatedKeyword.comment.toLatin1().data() in line 1271 and replace constData() by data() in line 1339 in FITSFilter.cpp?
Comment 2 Jeff Huang 2017-04-10 01:19:01 UTC
(In reply to Alexander Semke from comment #1)
> Hi Jeff,
> 
> thanks for reporting this. I cannot reproduce this problem with GCC 5.3.
> This must be a compiler setting and/or how Qt was build. I'll check this.
> 
> As a quick solution, does it help for you if you replace
> updatedKeyword.comment.toLatin1() by
> updatedKeyword.comment.toLatin1().data() in line 1271 and replace
> constData() by data() in line 1339 in FITSFilter.cpp?

It is fixed now! build works fine :D