Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Could not plot with GNU/Octave on aarch64 machine
@ 2024-08-02  6:40 a44881212
  2024-08-02  8:00 ` dkwo
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: a44881212 @ 2024-08-02  6:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

New issue by a44881212 on void-packages repository

https://github.com/void-linux/void-packages/issues/51602

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.42_1 aarch64

### Package(s) Affected

octave-9.2.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

For example, when I plot a single point by `plot(0,0)` in octave-cli (on raspberry pi 5), it should pop-out figure window and returns nothing.

### Actual behaviour

For example, when I plot a single point by `plot(0,0)` in octave-cli (on raspberry pi 5), it returns 

"The FLTK graphics toolkit is not actively maintained and has a number of limitations that are unlikely to be fixed. The qt toolkit is recommended instead.", "Insufficient GL support", and "error: unable to plot due to insufficient OpenGL support". 

However, The plotting of octave is working correctly in raspberry pi offical OS (octave use qt toolkit). Both vedio driver are "vc4-kms-v3d", so I don't think that hardware is not support. What's wrong with that?

I also found that octave-gui could not launch, the error message is 

"octave: GUI features missing or disabled in this build"

I do not know whether plotting problem is related to this (I found "qt" is not exist in octave command `available_graphic_toolkits()` might related to built without Qt support).

### Steps to reproduce

1. Open octave CLI 2. plot with `plot(0,0)`

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Could not plot with GNU/Octave on aarch64 machine
  2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
@ 2024-08-02  8:00 ` dkwo
  2024-08-02 13:46 ` tornaria
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dkwo @ 2024-08-02  8:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/51602#issuecomment-2264802705

Comment:
This may be aarch64 (or crosscompile) specific. Perhaps adding the correct packages to `hostmakedepends` (maybe even switch to qt6 while you're at it) could fix it. See the excerpt from crosscompile (x86_64 -> aarch64) (not present in the native build):
```
checking for qcollectiongenerator... no
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
```
Btw, in case you're using pure wayland, it may be worth trying turning on xwayland. 
Doing that, the gui works fine for me on x86_64.
Without xwayland, it complains that x11 variable is not set, see https://savannah.gnu.org/bugs/?65251

cc @tornaria 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Could not plot with GNU/Octave on aarch64 machine
  2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
  2024-08-02  8:00 ` dkwo
@ 2024-08-02 13:46 ` tornaria
  2024-08-02 13:50 ` tornaria
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tornaria @ 2024-08-02 13:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/51602#issuecomment-2265439328

Comment:
Mmmm... perhaps we need to add `qt5-host-tools` to `hostmakedepends` so the package is properly cross-compiled.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Could not plot with GNU/Octave on aarch64 machine
  2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
  2024-08-02  8:00 ` dkwo
  2024-08-02 13:46 ` tornaria
@ 2024-08-02 13:50 ` tornaria
  2024-08-02 14:52 ` tornaria
  2024-08-25 17:50 ` [ISSUE] [CLOSED] " classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: tornaria @ 2024-08-02 13:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/51602#issuecomment-2265447208

Comment:
Something like this (untested):
```diff
--- a/srcpkgs/octave/template
+++ b/srcpkgs/octave/template
@@ -88,6 +88,9 @@ if [ -n "$CROSS_BUILD" ];then
        configure_args+=" ax_blas_integer_size=4"
 fi
 
+hostmakedepends+="
+ $(vopt_if gui qt5-host-tools)"
+
 makedepends+="
  $(vopt_if arpack arpack-ng-devel)
  $(vopt_if audio 'libsndfile-devel portaudio-devel')
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Could not plot with GNU/Octave on aarch64 machine
  2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
                   ` (2 preceding siblings ...)
  2024-08-02 13:50 ` tornaria
@ 2024-08-02 14:52 ` tornaria
  2024-08-25 17:50 ` [ISSUE] [CLOSED] " classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: tornaria @ 2024-08-02 14:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/51602#issuecomment-2265581814

Comment:
If someone can try #51607 as in:
 - cross-build for aarch64 on an x86 host
 - try the cross-built package on an aarch64 box
then please comment in the PR your result.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] Could not plot with GNU/Octave on aarch64 machine
  2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
                   ` (3 preceding siblings ...)
  2024-08-02 14:52 ` tornaria
@ 2024-08-25 17:50 ` classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2024-08-25 17:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

Closed issue by a44881212 on void-packages repository

https://github.com/void-linux/void-packages/issues/51602

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.42_1 aarch64

### Package(s) Affected

octave-9.2.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

For example, when I plot a single point by `plot(0,0)` in octave-cli (on raspberry pi 5), it should pop-out figure window and returns nothing.

### Actual behaviour

For example, when I plot a single point by `plot(0,0)` in octave-cli (on raspberry pi 5), it returns 

"The FLTK graphics toolkit is not actively maintained and has a number of limitations that are unlikely to be fixed. The qt toolkit is recommended instead.", "Insufficient GL support", and "error: unable to plot due to insufficient OpenGL support". 

However, The plotting of octave is working correctly in raspberry pi offical OS (octave use qt toolkit). Both vedio driver are "vc4-kms-v3d", so I don't think that hardware is not support. What's wrong with that?

I also found that octave-gui could not launch, the error message is 

"octave: GUI features missing or disabled in this build"

I do not know whether plotting problem is related to this (I found "qt" is not exist in octave command `available_graphic_toolkits()` might related to built without Qt support).

### Steps to reproduce

1. Open octave CLI 2. plot with `plot(0,0)`

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-25 17:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-02  6:40 [ISSUE] Could not plot with GNU/Octave on aarch64 machine a44881212
2024-08-02  8:00 ` dkwo
2024-08-02 13:46 ` tornaria
2024-08-02 13:50 ` tornaria
2024-08-02 14:52 ` tornaria
2024-08-25 17:50 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).