octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55883] Octave 5.1.0 fails to find QtOpenGL on


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55883] Octave 5.1.0 fails to find QtOpenGL on macOS
Date: Sat, 13 Apr 2019 21:09:34 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Follow-up Comment #13, bug #55883 (project octave):

For reference, here's how I'm building the default or 5.1.0 Octave on macOS
when building outside Homebrew:
https://github.com/apjanke/octave-BUILD/blob/master/configure_octave.sh. (When
I say "outside Homebrew", I mean that my Octave is not brewed; I'm still using
a Homebrew-installed Qt and other dependencies.)

I'm adding these flags to get it to pick up Qt properly:


brew_opt="$(brew --prefix)/opt"

# Qt 5.12 compatibility hack
export QCOLLECTIONGENERATOR="qhelpgenerator"

[...]

PATH="$brew_opt/qt/bin:$PATH"

[...]

LDFLAGS="$LDFLAGS -F${brew_opt}/qt/lib"
CPPFLAGS="$CPPFLAGS -I${brew_opt}/qt/include"

[...]

PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${brew_opt}/qt/lib/pkgconfig"


This looks very similar to the `-F ...` flag that @scpeters is using.

When building Octave 5.1.0 under Homebrew, I'm using this formula:
https://github.com/octave-app/homebrew-octave-app/blob/d662567fe5ce79ab9216bbf3a8aa1939aa8540e5/Formula/octave-octave-app%405.1.0.rb.
It is adding `-I` and `-F` flags, even though you're not "supposed to" need
those under Homebrew. I believe it (and possibly my configure script in
octave-BUILD) is also relying on a hack that the Homebrew qt formula is doing:
https://github.com/Homebrew/homebrew-core/blob/024e2639054c0c3ac487f433df905c96846670ec/Formula/qt.rb#L50-L58.
That hack exposes the framework files and pkg-config-referenced headers in
additional locations.

This whole Framework thing and the associated Homebrew hack might be why this
bug is only appearing on macOS; Linux and Windows don't have Frameworks.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55883>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]