Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with QValueAxis during compile #10

Closed
andregouws opened this issue Nov 8, 2019 · 35 comments
Closed

problem with QValueAxis during compile #10

andregouws opened this issue Nov 8, 2019 · 35 comments

Comments

@andregouws
Copy link

andregouws commented Nov 8, 2019

Debian stretch g++ 8 gcc 8

In both group_connectometry.cpp and nn_connectometry.cpp I get errors during compile when the attributes setTickType and setTickInterval are being set. e.g.

connectometry/group_connectometry.cpp: In member function ‘void group_connectometry::show_fdr_report()’:
connectometry/group_connectometry.cpp:169:60: error: ‘class QtCharts::QValueAxis’ has no member named ‘setTickType’; did you mean ‘setTickCount’?
((QValueAxis*)fdr_chart->axes(Qt::Horizontal).back())->setTickType(QValueAxis::TicksDynamic);
^~~~~~~~~~~
setTickCount
connectometry/group_connectometry.cpp:169:84: error: ‘TicksDynamic’ is not a member of ‘QtCharts::QValueAxis’
((QValueAxis*)fdr_chart->axes(Qt::Horizontal).back())->setTickType(QValueAxis::TicksDynamic);
^~~~~~~~~~~~

.. which ulitmately results in:

make: *** [Makefile:5051: group_connectometry.o] Error 1

I have worked around this by simply commenting out any lines in group_connectometry.cpp and nn_connectometry.cpp that make calls to setTickType and setTickInterval. The package then compiles and runs, but obviously this is not ideal.

Thanks for your help.

Andre'

@frankyeh
Copy link
Owner

frankyeh commented Nov 8, 2019 via email

@andregouws
Copy link
Author

I was getting QtCharts errors earlier in the compile process but thought I had resolved those - I stopped getting errors after successfully running:

sudo apt-get install libqt5charts5 libqt5charts5-dev

@frankyeh
Copy link
Owner

frankyeh commented Nov 8, 2019 via email

@andregouws
Copy link
Author

That'll be it - thanks Frank.

@frankyeh frankyeh closed this as completed Nov 8, 2019
@andregouws
Copy link
Author

For the record (and anyone else searching) - at this point in time Debian Stretch current libqt5charts5 and libqt5charts5-dev are at stable version 5.11.3 and 5.12 is only just in testing.

@frankyeh
Copy link
Owner

frankyeh commented Nov 8, 2019 via email

@unimusic
Copy link

Sorry, how do we upgrade our version of qtcharts to the right one?

@frankyeh
Copy link
Owner

frankyeh commented May 14, 2020 via email

@frankyeh
Copy link
Owner

frankyeh commented May 14, 2020 via email

@unimusic
Copy link

Sorry, I have Ubuntu 18.04. It looks like the Docker or Singularity options are for Mac. I'm not sure Qt above 5.9 is available for that in a stable release... is there a way to get around this? Sorry for the trouble!

@unimusic
Copy link

I'm attempting to install Qt 12 now. I'll update when it finishes, thanks!

@frankyeh
Copy link
Owner

frankyeh commented May 14, 2020 via email

@unimusic
Copy link

Oh, I didn't realize the container was cross platform. Singularity worked well. Thank you very much :)

@unimusic
Copy link

unimusic commented Jun 10, 2020

Hi Frank,

I am trying to visualize fibers, but get this error when running the module on singularity with Linux:

Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000', please create it with 0700 permissions.
process 26536: D-Bus library appears to be incorrectly set up; failed to read machine uuid: UUID file '/etc/machine-id' should contain a hex string of length 32, not length 0, with no other text
See the manual page for dbus-uuidgen to correct this issue.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 0, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize 0, samples 1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval -1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Falling back to using screens root_visual.
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
Could not initialize GLX
Aborted (core dumped)

Please advise. Thank you!

@frankyeh
Copy link
Owner

frankyeh commented Jun 10, 2020 via email

@unimusic
Copy link

I see. So there is not a way to visualize the fibers right now? Thanks!

@frankyeh
Copy link
Owner

frankyeh commented Jun 10, 2020 via email

@unimusic
Copy link

Okay I see. Thank you and please let me know if there's a solution.

@barbrakr
Copy link

Dear both,
Do you happen to know if there's a solution to this yet - I've seen a new QT version out - can that be used with dsistudio singularity?
Thanks,
Kind wishes,
Barbara

@frankyeh
Copy link
Owner

frankyeh commented Nov 25, 2020 via email

@barbrakr
Copy link

oh, great, thanks!

@barbrakr
Copy link

Oh - actually, I just tried it out - it results in a Nov 3rd build and when loading a fib.gz file I get this in the Terminal (repeatedly)
GL_INVALID_OPERATION
begin

@frankyeh
Copy link
Owner

frankyeh commented Nov 25, 2020 via email

@andregouws
Copy link
Author

andregouws commented Nov 25, 2020 via email

@frankyeh
Copy link
Owner

frankyeh commented Nov 25, 2020 via email

@andregouws
Copy link
Author

andregouws commented Nov 25, 2020 via email

@barbrakr
Copy link

Hi both,
Just found this repository that may do something for us... https://github.com/tashrifbillah/glxgears-containers - will check it out tomorrow!

@barbrakr
Copy link

Dear all, so we have tried something based on this: with cuda-drivers and the --nv flag
dsi_studio outputs this - not sure if this is some hint to some of you...
dsi_studio: symbol lookup error: /.singularity.d/libs/libGL.so.1: undefined symbol: _glapi_tls_Current

@frankyeh
Copy link
Owner

frankyeh commented Nov 27, 2020 via email

@andregouws
Copy link
Author

andregouws commented Dec 2, 2020 via email

@frankyeh
Copy link
Owner

frankyeh commented Dec 2, 2020 via email

@barbrakr
Copy link

barbrakr commented Dec 3, 2020

okay, so for my situation the solution was to delete the /.singularity.d/libs from LD_LIBRARY_PATH , so instead I made these dependent on the libraries from my remote host system.

@humkies
Copy link

humkies commented Mar 5, 2021

okay, so for my situation the solution was to delete the /.singularity.d/libs from LD_LIBRARY_PATH , so instead I made these dependent on the libraries from my remote host system.

Hello,
I am having the same issue as you were having. I would really appreciate if you can give more details on how you solved and error "GL_INVALID_OPERATION".
Thanks
Joshi

@araikes
Copy link

araikes commented Apr 2, 2021

@barbrakr I'd be curious how you accomplished this as well. I'm trying to do visualization on our HPC and get the GL_INVALID_OPERATION issue.

I can obviously do the visualization on my Windows machine, but I'm trying to keep everything contained to one location if I can.

@barbrakr
Copy link

barbrakr commented Apr 6, 2021

IT solved it for me on our system (see below).

I guess there may be a different fix for other systems. The container will not run without these adjustments on our end (sorry some comments are still in German):

#Kurz zum Hintergrund: Der Container läuft nicht so richtig. Ich habe jetzt alle Bibliotheken vom SCC bzw. ugpu in den Container verlinkt. Dann geht es. Das heißt, man hat 4 Zeilen, die man auf der Kommandozeile ausführen muss. Ich kann dir das gerne nochmal in einer ViKo zeigen/erklären. Das ganze zum laufen zu kriege ist aber relativ einfach:
#Zuerst ganz normal die Konsole öffnen und

#go to some directory with fib-files
cd /usr/users/nmri/projects/kreilkamp/TueEpiMonogen_anon/dsistudio_singularity_output

module purge #make sure no other modules
module load singularity

#Dann ein

export LD_LIBRARY_PATH=/cm/local/apps/cuda-driver/libs/current/lib64:/cm/local/apps/gcc/8.2.0/lib64:/usr/lib64/VirtualGL:/lib64

#Dann mit einer shell den Container starten mit
singularity shell --bind /lib64/,/usr/lib64/,/cm/local/apps/cuda-driver/libs/current/lib64/,/cm/local/apps/gcc/8.2.0,/etc/machine-id $HOME/dsistudio_latest.sif

#Danach befindest du dich mit deiner bash im Container jetzt einmal
export XDG_RUNTIME_DIR=/usr/users/$USER

#Beim starten der Shell fügt Singularity das Verzeichnis
#/.singularity.d/libsdem LD_LIBRARY_PATH
#hinzu.
#Das wollen wir wieder rückgangig machen mit einem

export LD_LIBRARY_PATH=/cm/local/apps/cuda-driver/libs/current/lib64:/cm/local/apps/gcc/8.2.0/lib64:/usr/lib64/VirtualGL:/lib64

#go and start dsi_studio
#dsi_studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants