octave-maintainers
[Top][All Lists]
Advanced

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

Re: Having problem building on macOS Mojave


From: Ben Abbott
Subject: Re: Having problem building on macOS Mojave
Date: Mon, 24 Dec 2018 11:08:21 +0800

On Dec 24, 2018, at 10:29 AM, Ben Abbott <address@hidden> wrote:

On Dec 24, 2018, at 9:22 AM, Ben Abbott <address@hidden> wrote:

On Dec 23, 2018, at 10:47 PM, katokateki <address@hidden> wrote:

On Sun, Dec 23, 2018 at 8:16 PM katokateki <address@hidden> wrote:
I ran the scripts, took me a while to fix some issues but yes, it fixed the readline issue.
When I ran configure, I got this at the end:
<pre style='color:#000000;background:#ffffff;'>configure<span style='color:#808030; '>:</span> WARNING<span style='color:#808030; '>:</span> FreeType library not found<span style='color:#800000; font-weight:bold; '>.</span>  OpenGL graphics will not be fully functional<span style='color:#800000; font-weight:bold; '>.</span>
configure<span style='color:#808030; '>:</span> WARNING<span style='color:#808030; '>:</span> Qt libraries not found<span style='color:#800080; '>;</span> disabling Qt GUI
configure<span style='color:#808030; '>:</span> WARNING<span style='color:#808030; '>:</span> SUNDIALS IDA library does not include the IDADENSE linear solver, ode15i and ode15s will be disabled
configure<span style='color:#808030; '>:</span> WARNING<span style='color:#808030; '>:</span> SUNDIALS IDA library not configured with IDAKLU, ode15i and ode15s will not support the sparse Jacobian feature
configure<span style='color:#808030; '>:</span> WARNING<span style='color:#808030; '>:</span> ARPACK not found<span style='color:#800000; font-weight:bold; '>.</span>  The eigs <span style='color:#800000; font-weight:bold; '>function</span> will be disabled<span style='color:#800000; font-weight:bold; '>.</span>
configure<span style='color:#808030; '>:</span>
configure<span style='color:#808030; '>:</span> NOTE<span style='color:#808030; '>:</span> Libraries or auxiliary programs may be skipped <span style='color:#800000; font-weight:bold; '>if</span> they are not found
configure<span style='color:#808030; '>:</span> NOTE<span style='color:#808030; '>:</span> OR <span style='color:#800000; font-weight:bold; '>if</span> they are missing required features on your system<span style='color:#800000; font-weight:bold; '>.</span>
</pre>
<!--Created using ToHtml.com on 2018-12-23 14:40:47 UTC -->

I did some research and from your own thread from Jan of this year I think it's safe to ignore the FreeType library warning. But the rest, I don't know how to resolve. I tried searching, but not much help. And if the patch you mentioned in the script:
patch -p1 < ../octave-qt_wait_on_worker_thread-DEBUG1-djs2018oct19.patch (the QT patch)
patch -p1 $@ < ../open_kEClIYyW.patch
I don't know how to use it, where do I find the .patch file? Sorry, I'm really new to this, and I really appreciate your help until now.
Thanks

On Sun, Dec 23, 2018 at 3:08 PM Ben Abbott <address@hidden> wrote:
On Dec 23, 2018, at 11:40 AM, katokateki <address@hidden> wrote:

On Sun, Dec 23, 2018 at 9:04 AM Ben Abbott <address@hidden> wrote:
On Dec 23, 2018, at 11:15 AM, katokateki <address@hidden> wrote:

On Sun, Dec 23, 2018, 08:25 Ben Abbott <address@hidden> wrote:
On Dec 22, 2018, at 11:24 PM, katokateki <address@hidden> wrote:

Hi everyone, I'm new to open source and just tried to build Octave on my MacOS Mojave 10.14, I ran the configure script and installed the dependencies that I got an error for. But I'm stuck on this: "checking for rl_set_keyboard_input_timeout in -lreadline... no
configure: WARNING: I need GNU Readline 4.2 or later". I installed readline as told in the macOS building guide in the wiki but it still doesn't work. Can someone please help me out here?

When i make && sudo make readline, it gives me a warning saying I might need to run ldconfig. I googled and found it's not a command on mac, so I tried "sudo update_dyld_shared_cache -force" which gave me a bunch of errors initially but ran after that. I used -force because without that, it just showed errors and terminated. Still no works :(

Any help would be appreciated

Most macOS users have migrated to using the homebrew package manager to satisfy Octave’s dependencies and to build Octave.

Before going further, can you tell us more about how you’ve install the dependencies? For dependencies, the wiki includes instructions on using (1) Homebrew package manager, (2) MacPorts package manager, (3) Fink package manager, and (3) manual installation. Which approach did you use?

I’ve used Fink and MacPorts in the past, but as their maintenance has decreased and homebrew’s had increased, I’ve switched to homebrew.

Ben

Ben,
Thanks for the reply. I've used Homebrew to get the other dependencies, but doing a "brew install readline" gives "Warning: readline 7.0.5 is already installed and up-to-date
To reinstall...". I'm pretty sure I did reinstall and it didn't help so I proceeded to install it manually, you know what happened after that...

By the way, I hadn't "uninstalled" readline before installing it manually, so could this be an issue?

Thanks for your reply

I have a local script to configure and a second script to make. I’ve attached them. The configure script includes some comments describing what I did to satisfy the dependencies, including readline.

There are two bugs for macOS. I can provide the two patches needed once the configure/make scripts are working appropriately.

Ben

Thanks a lot, I'll try it out.

I really appreciate this help and I hope I can start contributing soon :)

The two patches for macOS are attached to the bug reports below.

https://savannah.gnu.org/bugs/?50025

https://savannah.gnu.org/bugs/?55268

If you’re looking for something to work on, either of these are good candidates. Another possibility is to fix the mkoctfile for macOS. Carlo maybe working on this already.

Ben


sorry tried formatting code to look better, failed

configure: WARNING: FreeType library not found.  OpenGL graphics will not be fully functional.
configure: WARNING: Qt libraries not found; disabling Qt GUI
configure: WARNING: SUNDIALS IDA library does not include the IDADENSE linear solver, ode15i and ode15s will be disabled
configure: WARNING: SUNDIALS IDA library not configured with IDAKLU, ode15i and ode15s will not support the sparse Jacobian feature
configure: WARNING: ARPACK not found.  The eigs function will be disabled.
configure:
configure: NOTE: Libraries or auxiliary programs may be skipped if they are not found
configure: NOTE: OR if they are missing required features on your system.


A couple of mail-list pointers.

1) We try to restrict posts to text only (no html).
2) Please reply at the bottom (bottom posting) so that the many mail-list archives can be read from top to bottom.,

Back to the build problems, I’m using the taps below. Please check yours.

brew tap
dpo/openblas
homebrew/cask
homebrew/core

I’ve not update homebrew in a few weeks. It is possible something has changed on that end (happens more often than you’d think). I’ll update, try a fresh build, and report back.

Ben

My configure ends with ...

Build Octave Qt GUI:                  no (missing:qcollectiongenerator)
 JIT compiler for loops:               no
 Build Java interface:                 yes
 Build static libraries:               no
 Build shared libraries:               yes
 Dynamic Linking API:                  dlopen
 Include support for GNU readline:     yes
 64-bit array dims and indexing:       yes
 64-bit BLAS array dims and indexing:  no
 OpenMP SMP multithreading:            no
 Truncate intermediate FP results:     yes
 Build cross tools:                    no
 Build docs:                           yes

configure: WARNING: Your installation of Qt version 5 appears incomplete or broken in some way.  Fix that or use --with-qt=VER to use another version.
configure: WARNING: one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI
configure:
configure: NOTE: Libraries or auxiliary programs may be skipped if they are not found
configure: NOTE: OR if they are missing required features on your system.

Notice that the configure script includes the notes below.

—————————
# Start with Octave to fulfill most dependencies
brew install octave
brew uninstall octave
# Use Sundails27 instead of Sundials
brew unlink sundials
brew install sundials27
# Add qscintilla2
brew install qscintilla2
# Use Homebrew's texinfo
brew install texinfo
# Use Homebrew's bison
brew install bison
—————————

Your sundials warning/errors may be due to not unliking “sundials” and not installing “sundials27”

Regarding Qt,,this dependency is satisfied by “brew install octave”. I get an error installing Octave due to a check for Java 1.6, which is optional for Octave, but homebrew treats it like a requirement.

Above you’ll see my qt is missing:qcollectiongenerator. There looks to be a regression with homebrew’s qt5 (I was able to compile octave an hour ago, but am not able to after updating homebrew and upgrading its ports).

I’m adding Sebastian/Adrew t the cc-list. They each have more expertise with homebrew than I.

Sebastial/Andrew,

Using qt5 from homebrew is resulting in missing:qcollectiongenerator. Do either of you have a solution for that?

Ben

homebrew’s current qt is 5.12. Which does not include qcollectiongenerator in /usr/local/Cellar/qt/5.12.0/bin

The older qt 5.11.2 does include qcollectiongeneratore in /usr/local/Cellar/qt/5.11.2/bin

Switching back to 5.11.2 worked for me.

  brew switch qt5 5.11.2

My configure now ends with the result below.

  Build Octave Qt GUI:                  yes (version: 5)
  JIT compiler for loops:               no
  Build Java interface:                 yes
  Build static libraries:               no
  Build shared libraries:               yes
  Dynamic Linking API:                  dlopen
  Include support for GNU readline:     yes
  64-bit array dims and indexing:       yes
  64-bit BLAS array dims and indexing:  no
  OpenMP SMP multithreading:            no
  Truncate intermediate FP results:     yes
  Build cross tools:                    no
  Build docs:                           yes

Ben



reply via email to

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