Re: Having problem building on macOS Mojave

classic Classic list List threaded Threaded
49 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
> On Dec 24, 2018, at 9:22 AM, Ben Abbott <[hidden email]> wrote:
>
>> On Dec 23, 2018, at 10:47 PM, katokateki <[hidden email]> wrote:
>>
>> On Sun, Dec 23, 2018 at 8:16 PM katokateki <[hidden email]> 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 <[hidden email]> wrote:
>>> On Dec 23, 2018, at 11:40 AM, katokateki <[hidden email]> wrote:
>>>
>>> On Sun, Dec 23, 2018 at 9:04 AM Ben Abbott <[hidden email]> wrote:
>>>> On Dec 23, 2018, at 11:15 AM, katokateki <[hidden email]> wrote:
>>>>
>>>> On Sun, Dec 23, 2018, 08:25 Ben Abbott <[hidden email]> wrote:
>>>>> On Dec 22, 2018, at 11:24 PM, katokateki <[hidden email]> 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





Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 24, 2018, at 10:29 AM, Ben Abbott <[hidden email]> wrote:

On Dec 24, 2018, at 9:22 AM, Ben Abbott <[hidden email]> wrote:

On Dec 23, 2018, at 10:47 PM, katokateki <[hidden email]> wrote:

On Sun, Dec 23, 2018 at 8:16 PM katokateki <[hidden email]> 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 <[hidden email]> wrote:
On Dec 23, 2018, at 11:40 AM, katokateki <[hidden email]> wrote:

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

On Sun, Dec 23, 2018, 08:25 Ben Abbott <[hidden email]> wrote:
On Dec 22, 2018, at 11:24 PM, katokateki <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 24, 2018, at 11:08 AM, Ben Abbott <[hidden email]> wrote:

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


I’ve modified the configure script. It now works with the Qt version supplied by homebrew (5.12.0).

Ben



homebrew_configure_octave_v8.sh (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap
On Dec 24, 2018, at 9:22 AM, Ben Abbott <[hidden email]> wrote:

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.,

 
Thanks for pointing it out, I didn't know about it until now, I hope I'm doing it correctly now. Any suggestions?
 
Back to the build problems, I’m using the taps below. Please check yours.

brew tap
dpo/openblas
homebrew/cask
homebrew/core
 
The reason I hadn't installed sundials27 was because I didn't have the dpo/openblas tap. I've installed it now and it's giving me this error:

configure: WARNING: SUNDIALS NVECTOR serial library not found.  Solvers ode15i and ode15s will be disabled.
configure: WARNING: SUNDIALS IDA library not found.  Solvers ode15i and ode15s will be disabled.

I'll try finding a solution if there already is for this issue, right now I'm focusing on other issues. Will update you if I can't find any solution.

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

I couldn't do it because I did not have qt 5.11.2 on my machine and my internet is too slow to download it right now as I'm in a hotel right now.

On Tue, Dec 25, 2018 at 7:37 AM Ben Abbott <[hidden email]> wrote:
On Dec 24, 2018, at 11:08 AM, Ben Abbott <[hidden email]> wrote:

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


I’ve modified the configure script. It now works with the Qt version supplied by homebrew (5.12.0).

Ben


This worked! Although now I'm getting this:

configure: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI

I found a thread you started where you encountered this issue as well but I didn't find any solution there.
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
> On Dec 25, 2018, at 4:19 PM, Anadi Kashyap <[hidden email]> wrote:
>
>>> On Dec 24, 2018, at 9:22 AM, Ben Abbott <[hidden email]> wrote:
>>>
>>> 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.,
>>>
>  
> Thanks for pointing it out, I didn't know about it until now, I hope I'm doing it correctly now. Any suggestions?
>  
>>> Back to the build problems, I’m using the taps below. Please check yours.
>>>
>>> brew tap
>>> dpo/openblas
>>> homebrew/cask
>>> homebrew/core
>  
> The reason I hadn't installed sundials27 was because I didn't have the dpo/openblas tap. I've installed it now and it's giving me this error:
>
> configure: WARNING: SUNDIALS NVECTOR serial library not found.  Solvers ode15i and ode15s will be disabled.
> configure: WARNING: SUNDIALS IDA library not found.  Solvers ode15i and ode15s will be disabled.
>
> I'll try finding a solution if there already is for this issue, right now I'm focusing on other issues. Will update you if I can't find any solution.
>
> 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
>
> I couldn't do it because I did not have qt 5.11.2 on my machine and my internet is too slow to download it right now as I'm in a hotel right now.
>
> On Tue, Dec 25, 2018 at 7:37 AM Ben Abbott <[hidden email]> wrote:
>> On Dec 24, 2018, at 11:08 AM, Ben Abbott <[hidden email]> wrote:
>>
>> 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
>>
>
> I’ve modified the configure script. It now works with the Qt version supplied by homebrew (5.12.0).
>
> Ben
>
>
> This worked! Although now I'm getting this:
>
> configure: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI
>
> I found a thread you started where you encountered this issue as well but I didn't find any solution there.

Please confirm you’re running the new script. It should include the part below. The “-F…” indicates that frameworks should be used. The warning you’re seeing was resolved when I switched to frameworks and included QT_CPPFLAGS in CPPFLAGS and QT_LDFLAGS in LDFLAGS.

brew switch qt5 5.12.0
QCOLLECTIONGENERATOR=qhelpgenerator
export QCOLLECTIONGENERATOR
QT_CPPFLAGS="-I/usr/local/opt/qt/include"
export QT_CPPFLAGS
QT_LDFLAGS="-F/usr/local/opt/qt/lib"
export QT_LDFLAGS

The easiest way to confirm is to edit config.log and search on "Qt LDFLAGS” (case-sensitive), and examine the Qt related lines. Mine are below.

  Qt CPPFLAGS:                   -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers
  Qt LDFLAGS:                    -F/usr/local/Cellar/qt/5.12.0/lib
  Qt GUI libraries:              -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtXml -framework QtCore  -lqscintilla2_qt5
  Qt OpenGL libraries:           -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore
  Qt moc:                        moc
  Qt uic:                        uic
  Qt rcc:                        rcc
  Qt lrelease:                   lrelease
  Qt qcollectiongenerator:       qhelpgenerator
  Qt qhelpgenerator:             qhelpgenerator
 
Ben



Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 2:22 PM Ben Abbott <[hidden email]> wrote:

Please confirm you’re running the new script. It should include the part below. The “-F…” indicates that frameworks should be used. The warning you’re seeing was resolved when I switched to frameworks and included QT_CPPFLAGS in CPPFLAGS and QT_LDFLAGS in LDFLAGS.

brew switch qt5 5.12.0
QCOLLECTIONGENERATOR=qhelpgenerator
export QCOLLECTIONGENERATOR
QT_CPPFLAGS="-I/usr/local/opt/qt/include"
export QT_CPPFLAGS
QT_LDFLAGS="-F/usr/local/opt/qt/lib"
export QT_LDFLAGS

The easiest way to confirm is to edit config.log and search on "Qt LDFLAGS” (case-sensitive), and examine the Qt related lines. Mine are below.

  Qt CPPFLAGS:                   -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers
  Qt LDFLAGS:                    -F/usr/local/Cellar/qt/5.12.0/lib
  Qt GUI libraries:              -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtXml -framework QtCore  -lqscintilla2_qt5
  Qt OpenGL libraries:           -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore
  Qt moc:                        moc
  Qt uic:                        uic
  Qt rcc:                        rcc
  Qt lrelease:                   lrelease
  Qt qcollectiongenerator:       qhelpgenerator
  Qt qhelpgenerator:             qhelpgenerator

Ben



I checked and I'm using the same one as your's:
QT_LDFLAGS="-F/usr/local/opt/qt/lib"

This is from config.log that I found to be interesting:

configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
In file included from /usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/QAbstractItemModel:1:
/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/qabstractitemmodel.h:43:10: fatal error: 'QtCore/qvariant.h' file not found
|         #include <QAbstractItemModel>
|         class item_model : public QAbstractItemModel
|           item_model (QObject *parent = 0) : QAbstractItemModel (parent) {}
configure:74619: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI
configure:83175: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI 

Any idea why qvariant.h wasn't found?
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 25, 2018, at 6:09 PM, Anadi Kashyap <[hidden email]> wrote:

On Tue, Dec 25, 2018 at 2:22 PM Ben Abbott <[hidden email]> wrote:

Please confirm you’re running the new script. It should include the part below. The “-F…” indicates that frameworks should be used. The warning you’re seeing was resolved when I switched to frameworks and included QT_CPPFLAGS in CPPFLAGS and QT_LDFLAGS in LDFLAGS.

brew switch qt5 5.12.0
QCOLLECTIONGENERATOR=qhelpgenerator
export QCOLLECTIONGENERATOR
QT_CPPFLAGS="-I/usr/local/opt/qt/include"
export QT_CPPFLAGS
QT_LDFLAGS="-F/usr/local/opt/qt/lib"
export QT_LDFLAGS

The easiest way to confirm is to edit config.log and search on "Qt LDFLAGS” (case-sensitive), and examine the Qt related lines. Mine are below.

  Qt CPPFLAGS:                   -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers
  Qt LDFLAGS:                    -F/usr/local/Cellar/qt/5.12.0/lib
  Qt GUI libraries:              -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtXml -framework QtCore  -lqscintilla2_qt5
  Qt OpenGL libraries:           -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore
  Qt moc:                        moc
  Qt uic:                        uic
  Qt rcc:                        rcc
  Qt lrelease:                   lrelease
  Qt qcollectiongenerator:       qhelpgenerator
  Qt qhelpgenerator:             qhelpgenerator

Ben

I checked and I'm using the same one as your's:
QT_LDFLAGS="-F/usr/local/opt/qt/lib"

This is from config.log that I found to be interesting:

configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
In file included from /usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/QAbstractItemModel:1:
/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/qabstractitemmodel.h:43:10: fatal error: 'QtCore/qvariant.h' file not found
|         #include <QAbstractItemModel>
|         class item_model : public QAbstractItemModel
|           item_model (QObject *parent = 0) : QAbstractItemModel (parent) {}
configure:74619: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI
configure:83175: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI 

Any idea why qvariant.h wasn't found?

My test, and the one before it,  looks like …

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O2 -D_THREAD_SAFE -pthread  -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5
configure:72994: $? = 0
configure:73010: result: yes

You can see that both "-I/usr/local/opt/qt/include" and the "-F/usr/local/opt/qt/lib" are present in the check for munmap and QAbstractItemModel::beginResetModel. Please confirm each are present in your check for munmap.

Ben




Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 5:08 PM Ben Abbott <[hidden email]> wrote:

My test, and the one before it,  looks like …

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O2 -D_THREAD_SAFE -pthread  -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5
configure:72994: $? = 0
configure:73010: result: yes

You can see that both "-I/usr/local/opt/qt/include" and the "-F/usr/local/opt/qt/lib" are present in the check for munmap and QAbstractItemModel::beginResetModel. Please confirm each are present in your check for munmap.

Ben

My test looks like this:

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O0 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
ld: warning: directory not found for option '-L/usr/local/opt/texinfo/lib'
ld: warning: directory not found for option '-L/usr/local/opt/sundials27/lib'
ld: warning: directory not found for option '-L/usr/local/opt/zlib/lib'
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O0 -D_THREAD_SAFE -pthread  -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5 

"-I/usr/local/opt/qt/include" not being present in neither munmap nor QAbstractItemModel::beginResetModel. What does this mean?
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 25, 2018, at 22:00, Anadi Kashyap <[hidden email]> wrote:



On Tue, Dec 25, 2018 at 5:08 PM Ben Abbott <[hidden email]> wrote:

My test, and the one before it,  looks like …

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O2 -D_THREAD_SAFE -pthread  -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5
configure:72994: $? = 0
configure:73010: result: yes

You can see that both "-I/usr/local/opt/qt/include" and the "-F/usr/local/opt/qt/lib" are present in the check for munmap and QAbstractItemModel::beginResetModel. Please confirm each are present in your check for munmap.

Ben

My test looks like this:

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O0 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
ld: warning: directory not found for option '-L/usr/local/opt/texinfo/lib'
ld: warning: directory not found for option '-L/usr/local/opt/sundials27/lib'
ld: warning: directory not found for option '-L/usr/local/opt/zlib/lib'
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O0 -D_THREAD_SAFE -pthread  -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5 

"-I/usr/local/opt/qt/include" not being present in neither munmap nor QAbstractItemModel::beginResetModel. What does this mean?

The good news is that there is no big mystery. One the include path is added, the build should be successful.

It appears that the QT include path was not added to QT_CPPFLAGS, or  QT_CPPFLAGS was not included in CPPFLAGS.

Please send me the configure script you’re using. Perhaps it got mangled some how.

Ben
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 7:45 PM Ben Abbott <[hidden email]> wrote:

The good news is that there is no big mystery. One the include path is added, the build should be successful.

It appears that the QT include path was not added to QT_CPPFLAGS, or  QT_CPPFLAGS was not included in CPPFLAGS.

Please send me the configure script you’re using. Perhaps it got mangled some how.

Ben

I did change a couple of values to make it work, and I was not exactly sure about the changes I made except that it avoided the errors.

export JAVA_HOME="$(/usr/libexec/java_home -v 11)"
Notice the -v 11, my system didn't have 9 and I couldn't find it so it kept giving me errors.

The other change I did was:

PREFIX="/usr/local/$(whoami)/octave"
../configure \

instead of:

 PREFIX="/usr/local/$(whoami)/octave"
 ../sources/configure \

Again, couldn't find the directory so I corrected(?) it. 

I'm attaching the script as you asked.

homebrew_configure_octave_v5.sh (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 25, 2018, at 10:29 PM, Anadi Kashyap <[hidden email]> wrote:

On Tue, Dec 25, 2018 at 7:45 PM Ben Abbott <[hidden email]> wrote:

The good news is that there is no big mystery. One the include path is added, the build should be successful.

It appears that the QT include path was not added to QT_CPPFLAGS, or  QT_CPPFLAGS was not included in CPPFLAGS.

Please send me the configure script you’re using. Perhaps it got mangled some how.

Ben

I did change a couple of values to make it work, and I was not exactly sure about the changes I made except that it avoided the errors.

export JAVA_HOME="$(/usr/libexec/java_home -v 11)"
Notice the -v 11, my system didn't have 9 and I couldn't find it so it kept giving me errors.

The other change I did was:

PREFIX="/usr/local/$(whoami)/octave"
../configure \

instead of:

 PREFIX="/usr/local/$(whoami)/octave"
 ../sources/configure \

Again, couldn't find the directory so I corrected(?) it. 

I'm attaching the script as you asked.
<homebrew_configure_octave_v5.sh>

The v5 version does not set the include path for Qt for the test programs. Hence, it will not work. Actually this may be a bug. I expect the QT_CPPFLAGS and QT_LDFLAGS should be used when compiling Qt related routines. In any event, please use v8 (attached again).

The changes you made shouldn’t be a problem. Feel free to make the same changes to v8, or just add the lines below to v5.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Ben



homebrew_configure_octave_v8.sh (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 8:20 PM Ben Abbott <[hidden email]> wrote:
<homebrew_configure_octave_v5.sh>

The v5 version does not set the include path for Qt for the test programs. Hence, it will not work. Actually this may be a bug. I expect the QT_CPPFLAGS and QT_LDFLAGS should be used when compiling Qt related routines. In any event, please use v8 (attached again).

The changes you made shouldn’t be a problem. Feel free to make the same changes to v8, or just add the lines below to v5.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Ben


Actually, I had added the changes you did in v8 to your v5, sorry, the name is misleading. Even then I added the two lines to my v5 and same error. Please check the script, it's quite different from your own v5. Sorry for the confusion. 
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 25, 2018, at 23:00, Anadi Kashyap <[hidden email]> wrote:

On Tue, Dec 25, 2018 at 8:20 PM Ben Abbott <[hidden email]> wrote:
<homebrew_configure_octave_v5.sh>

The v5 version does not set the include path for Qt for the test programs. Hence, it will not work. Actually this may be a bug. I expect the QT_CPPFLAGS and QT_LDFLAGS should be used when compiling Qt related routines. In any event, please use v8 (attached again).

The changes you made shouldn’t be a problem. Feel free to make the same changes to v8, or just add the lines below to v5.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Ben


Actually, I had added the changes you did in v8 to your v5, sorry, the name is misleading. Even then I added the two lines to my v5 and same error. Please check the script, it's quite different from your own v5. Sorry for the confusion. 

I’ve looked it over. It does not include the lines below.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Please add then it the location used in v8.

Ben
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 8:37 PM Ben Abbott <[hidden email]> wrote:

I’ve looked it over. It does not include the lines below.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Please add then it the location used in v8.

Ben

You're right, my bad, in the process to just look at the difference and update manually, I overlooked it. Thanks a lot. I'll report back with the results.
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 8:43 PM Anadi Kashyap <[hidden email]> wrote:


On Tue, Dec 25, 2018 at 8:37 PM Ben Abbott <[hidden email]> wrote:

I’ve looked it over. It does not include the lines below.

LDFLAGS="$LDFLAGS $QT_LDFLAGS"
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"

Please add then it the location used in v8.

Ben

You're right, my bad, in the process to just look at the difference and update manually, I overlooked it. Thanks a lot. I'll report back with the results.

Fixed, thanks a lot! Now I can focus on the sundials warnings.
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap


On Tue, Dec 25, 2018 at 8:52 PM Anadi Kashyap <[hidden email]> wrote:
Fixed, thanks a lot! Now I can focus on the sundials warnings.
 
Okay I fixed this:

configure: WARNING: SUNDIALS NVECTOR serial library not found. Solvers ode15i and ode15s will be disabled. 
configure: WARNING: SUNDIALS IDA library not found. Solvers ode15i and ode15s will be disabled.

I noticed the name wasn't sundials27 but sundials@2.7 in my opt directory.

CPPFLAGS="$CPPFLAGS -I/usr/local/opt/sundials@2.7/include"
LDFLAGS="$LDFLAGS -L/usr/local/opt/sundials@2.7/lib"

This fixed the issue.
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

apjanke-floss
In reply to this post by bpabbott
Oops; sent this email to just Ben. Re-sending to entire list.

On 12/23/18 9:29 PM, Ben Abbott wrote:

>
> 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
>

Hi Ben,

Sorry for the slow response here. Holidays.

Homebrew doesn't do much special with its Qt builds; this might be a
regression in Qt 5.12 itself. I'll look in to it.

Homebrew's Octave formula now checks for Java 1.8, not Java 1.6. Are you
using an old
formula, maybe? And it's only "recommended", so you can disable it with
`--without-java`.

A note on building on macOS: if you want to do it all through Homebrew
so it sets up your paths and environment variables, you can use the
octave-head-test formula I put together:

brew tap octave-app/octave-app-bases
brew install --HEAD octave-head-test

That will install from the head of the "default" branch, linking up with
all the necessary Homebrew-installed dependencies. (And this formula
avoids the lengthy custom builds of Qt etc that Octave.app itself does.)

It does slightly hack mkoctfile to reduce the number of linker flags
passed. We can disable that if you want.

I'm also getting missing:qcollectiongenerator.

   Build Octave Qt GUI:                  no (missing:qcollectiongenerator)
   JIT compiler for loops:               no
   Build Java interface:                 yes
   Build static libraries:               no


My build on macOS is currently breaking due to a seemingly unrelated
gnuplot issue.

/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'voronoi', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'triplot', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'griddata', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'convhull', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'delaunay', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "geometryimages ('doc/interpreter/', 'inpolygon', 'eps');"
/bin/sh run-octave --norc --silent --no-history --path
/private/tmp/octave-head-test-20181225-28908-1yuz1ng/doc/interpreter/
--eval "interpimages ('doc/interpreter/', 'interpft', 'eps');"
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/voronoi.eps] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [doc/interpreter/triplot.eps] Error 1
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/griddata.eps] Error 1
make[2]: *** [doc/interpreter/convhull.eps] Error 1
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/delaunay.eps] Error 1
make[2]: *** [doc/interpreter/inpolygon.eps] Error 1
error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/interpft.eps] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Full build logs: https://gist.github.com/7cd7d50075a86572db9e05ee4e1c7e59

Cheers,
Andrew

Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

apjanke-floss

On 12/25/18 7:13 PM, Andrew Janke wrote:
>
> I'm also getting missing:qcollectiongenerator.
>
>    Build Octave Qt GUI:                  no (missing:qcollectiongenerator)
>    JIT compiler for loops:               no
>    Build Java interface:                 yes
>    Build static libraries:               no
>

Aha: Qt 5.12 removed qcollectiongenerator and replaced it with
qhelpgenerator.

 From qttools/dist/changes-5.12.0 in the Qt repo:

  - Merged qcollectiongenerator tool into the qhelpgenerator tool.

I checked, and qhelpgenerator is present in the Homebrew distribution of
Qt 5.12.

Looks like Octave's build will need to be updated for Qt 5.12
compatibility. Sigh.

Cheers,
Andrew

Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

Anadi Kashyap
In reply to this post by Anadi Kashyap


On Tue, Dec 25, 2018 at 11:25 PM Anadi Kashyap <[hidden email]> wrote:


On Tue, Dec 25, 2018 at 8:52 PM Anadi Kashyap <[hidden email]> wrote:
Fixed, thanks a lot! Now I can focus on the sundials warnings.
 
Okay I fixed this:

configure: WARNING: SUNDIALS NVECTOR serial library not found. Solvers ode15i and ode15s will be disabled. 
configure: WARNING: SUNDIALS IDA library not found. Solvers ode15i and ode15s will be disabled.

I noticed the name wasn't sundials27 but sundials@2.7 in my opt directory.

CPPFLAGS="$CPPFLAGS -I/usr/local/opt/sundials@2.7/include"
LDFLAGS="$LDFLAGS -L/usr/local/opt/sundials@2.7/lib"

This fixed the issue.

Proceeded to build with the script you provided for make and got this in the end:

error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/voronoi.eps] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2 
Reply | Threaded
Open this post in threaded view
|

Re: Having problem building on macOS Mojave

bpabbott
Administrator
On Dec 26, 2018, at 11:07, Anadi Kashyap <[hidden email]> wrote:



On Tue, Dec 25, 2018 at 11:25 PM Anadi Kashyap <[hidden email]> wrote:


On Tue, Dec 25, 2018 at 8:52 PM Anadi Kashyap <[hidden email]> wrote:
Fixed, thanks a lot! Now I can focus on the sundials warnings.
 
Okay I fixed this:

configure: WARNING: SUNDIALS NVECTOR serial library not found. Solvers ode15i and ode15s will be disabled. 
configure: WARNING: SUNDIALS IDA library not found. Solvers ode15i and ode15s will be disabled.

I noticed the name wasn't sundials27 but sundials@2.7 in my opt directory.

CPPFLAGS="$CPPFLAGS -I/usr/local/opt/sundials@2.7/include"
LDFLAGS="$LDFLAGS -L/usr/local/opt/sundials@2.7/lib"

This fixed the issue.

Proceeded to build with the script you provided for make and got this in the end:

error: __gnuplot_get_var__: Can not make FIFO (Function not implemented)
make[2]: *** [doc/interpreter/voronoi.eps] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2 

That’s a bug related to macOS and GNUPLOT. If Qt configured ok the build should use the Qt for graphics.

Please run by “./run-octave —gui” and let us know what happens? ... gui or error?

Ben
123