bugGNU Octave - Bugs: bug #60486, Build cannot find Qhull libraries

 
 

bug #60486: Build cannot find Qhull libraries

Submitter:  None
Submitted:  Fri 30 Apr 2021 03:53:57 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Jon Dantzig Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.2.0
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 30 Apr 2021 05:36:01 PM UTC, comment #3: 

Thanks for the replies. I resolved this using homebrew as follows:

First, in /opt/homebrew/lib: ln -s ../Cellar/qhull/2020.2/lib/libqhullstatic.a libqhull.a

Then, uninstall and re-install from source:

brew uninstall octave
brew install -s octave

Works now.

Anonymous
Fri 30 Apr 2021 05:10:15 PM UTC, comment #2: 

For newer versions of Qhull, you'll need to build it with the "libqhull" argument or otherwise force the build system to build and install the deprecated shared library "libqhull" (instead of the new default "libqhull_r").

A future version of Octave will be able to make use of libqhull_r, but existing versions need the legacy libqhull library.

So this is not a bug, the error message is correct that Octave cannot find libqhull because your version of qhull doesn't install it by default.

See existing bug #60016 for progress on supporting libqhull_r.

Mike Miller <mtmiller>
Group Member
Fri 30 Apr 2021 04:11:48 PM UTC, comment #1: 

https://octave.discourse.group/t/how-to-build-octave-on-macos-from-scratch/1090/27

It looks like a known problem.

My guess is qhull in homebrew is
too new.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 30 Apr 2021 03:53:57 PM UTC, original submission:  

I installed octave-6.2.0 via homebrew on 2 different Macs. One running Mojave, the other Big Sur (latest). Installation has no problems, but Qhull is missing. This makes the function griddata fail.

I tried downloading source and compiling, but configure says hull libraries are missing, even though they are present in /usr/local/lib. Also fails if I specify that directory with the switch --with-qhull-libdir. Here is what is in /usr/local/Cellar/qhull/2020.2/lib/*qhull*:
cmake/                  libqhull_r.dylib@       libqhullstatic_r.a
libqhull_r.8.0.2.dylib  libqhullcpp.a           pkgconfig/
libqhull_r.8.0.dylib@   libqhullstatic.a

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by doronbehar
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-13 doronbehar Carbon-Copy- Added -email is unavailable-
    2021-04-30 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code