Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54200 closed defect (fixed)

octave @4.2.1_1 +qt5: fails to build due to compilation error in libgui/graphics/GLCanvas.cc

Reported by: maehne (Torsten Maehne) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: octave

Description

The qt5 variant of the octave port fails to build due to a compilation error in libgui/graphics/GLCanvas.cc:

$ sudo port -v install octave +qt5
[...]
  CXX      libgui/graphics/libgui_graphics_libgui_graphics_la-Figure.lo
  CXX      libgui/graphics/libgui_graphics_libgui_graphics_la-FigureWindow.lo
  CXX      libgui/graphics/libgui_graphics_libgui_graphics_la-GLCanvas.lo
libgui/graphics/GLCanvas.cc:33:10: fatal error: 'QApplication.h' file not found
#include <QApplication.h>
         ^
1 error generated.
make[2]: *** [libgui/graphics/libgui_graphics_libgui_graphics_la-GLCanvas.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-4.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-4.2.1'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-4.2.1'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-4.2.1" && /usr/bin/make -j2 -w all
Exit code: 2
Error: Failed to build octave: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port octave failed

The full log file is attached to this ticket.

Attachments (1)

main.log (1.3 MB) - added by maehne (Torsten Maehne) 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by maehne (Torsten Maehne)

Attachment: main.log added

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I can not reproduce this problem.
By any chance, are you using a case-sensitive file system?

comment:3 Changed 7 years ago by maehne (Torsten Maehne)

Yes, I do use a case-sensitive HFS+ file system on my MacBook Air running OS X El Capitan Version 10.11.6 (15G1510).

comment:4 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 77e4aee43d15dacd897cd8285bf6198b5786f159/macports-ports:

octave: fix patch for case-sensitive file systems

No revbump because port either builds correctly or not at all.
Fixes #54200

comment:5 Changed 7 years ago by maehne (Torsten Maehne)

Thanks a lot for the fix! The qt5 variant of octave builds now fine on my machine!

Note: See TracTickets for help on using tickets.