Bug 378588

Summary: Can't build labplot 2.4.0-kf5 on Chakra with Qt 5.8.0 and GCC 5.2.0
Product: [Applications] LabPlot2 Reporter: Jeff Huang <s8321414>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal CC: stefan.gerlach
Priority: NOR    
Version First Reported In: latest   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: build failed log

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