Opened 2 years ago
Closed 2 years ago
#65821 closed defect (fixed)
qtimageformats ports: error: use of undeclared identifier 'pow'
Reported by: | chrstphrchvz (Christopher Chavez) | Owned by: | chrstphrchvz (Christopher Chavez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | qt53-qtimageformats qt55-qtimageformats qt56-qtimageformats qt57-qtimageformats qt58-qtimageformats qt59-qtimageformats qt511-qtimageformats qt513-qtimageformats |
Description
A missing #include <math.h>
causes the build to fail for some OS versions:
qjp2handler.cpp:847:41: error: use of undeclared identifier 'pow' const double jasperRate = minRate + pow((double(quality) / double(maxQuality)), 2) * maxRate;
Already fixed upstream since 5.15: https://invent.kde.org/qt/qt/qtimageformats/-/commit/704868db61be. I can likely propose to fix this in affected ports soon.
Change History (2)
comment:1 Changed 2 years ago by chrstphrchvz (Christopher Chavez)
comment:2 Changed 2 years ago by chrstphrchvz (Christopher Chavez)
Owner: | set to chrstphrchvz |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
PR opened: https://github.com/macports/macports-ports/pull/16083