[MacPorts] #49423: Octave configure can't find Qt libraries in El Capitan

MacPorts noreply at macports.org
Wed Oct 28 04:57:57 PDT 2015


#49423: Octave configure can't find Qt libraries in El Capitan
----------------------------------+-------------------------
  Reporter:  hartman.jonathan2@…  |      Owner:  michaelld@…
      Type:  defect               |     Status:  new
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.3.4
Resolution:                       |   Keywords:
      Port:  octave               |
----------------------------------+-------------------------

Comment (by hartman.jonathan2@…):

 Replying to [comment:2 ryandesign@…]:
 > The qt4-mac port was recently reorganized. Some ports that use Qt
 (apparently including octave) will need to be revised. Adding the qt4 1.0
 portgroup would be the first step, and might be the only needed step.

 Well, the problem seems to be caused by Qt no longer being installed in
 the same directories that it used to be installed in and the Octave
 configure searches for it in the old directories. Copying the relevant .pc
 files into the old directory and creating symbolic links to the relevant
 binaries seems to of helped pkgconfig find where the Qt libraries are
 stored and where the required programs are respectively. Before installing
 Octave, I entered the following commands in the Bash shell:


 {{{
 sudo cp -R /opt/local/libexec/qt4/lib/pkgconfig/
 /opt/local/share/pkgconfig
 }}}

 and

 {{{
 sudo ln -s /opt/local/libexec/qt4/bin/* /opt/local/bin
 }}}

 The first command copies the .pc files from where qt4 is installed to a
 directory where pkg-config can find them and the second command creates
 symbolic links to the required binaries in a directory that is searched by
 the Octave configure script. Once these are typed in, then the Octave
 configure script finds the directory where Qt4 is installed and the gui
 compiles correctly if you type
 {{{
 sudo port install octave +atlas +gui
 }}}

 This is still a problem with the package though if it's searching for Qt
 in the wrong directories. I solved it by manually copying some files and
 creating symbolic links to the directories where the new qt4-mac port is
 installed. So, I think that this is still a bug that needs to be fixed.

-- 
Ticket URL: <https://trac.macports.org/ticket/49423#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list