Closed HenriqueCSJ closed 7 years ago
Hi Henrique,
The "fix" would be to open the file
/home/henrique/avogadro-master/libavogadro/src/extensions/symmetry/libmsym/src/orbital.c
go to line 70 and change from:
char *d = (signbit(m) == 1 ? "-" : "+");
to:
char *d = (signbit((float) m) == 1 ? "-" : "+");
and do the same change in line 76.
After this, i hope it will compile. However I don't know if it will break any functionality from avogadro. The Admin should tell us.
I don't know that code very well, but casting to float would seem the simplest fix. The libmsym source is imported, and not something developed by us but simply used as a library.
Thank you guys, the fix worked and at a later stage suffered from the bug reported in https://github.com/cryos/avogadro/issues/833 (the fix proposed there worked).
Do you want me to submit a patch for this issue?
Please, submit a patch, yes. If you can check the libmsym project too, that would be ideal: https://github.com/mcodev31/libmsym
Unfortunately my compilation is not working properly. I'm unable to get MOs when oppening any ORCA output. Here are the messages I get in my terminal:
[henrique@localhost ~] $ avogadro12
"Avogadro version: 1.2.0 Git:
LibAvogadro version: 1.1.1 Git: "
Locale: "pt_BR"
System has OpenGL support.
About to test OpenGL capabilities.
OpenGL capabilities found:
Double Buffering.
Direct Rendering.
Antialiasing.
In a build directory - loading alternative...
QStackedLayout::setCurrentWidget: Widget 0x1a06e50 not contained in stack
dev warning: Extension "GAMESS" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Orbitals" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Python Terminal" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Vibration" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Example Python Extension" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
HOMO at: -1
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: cHRM: invalid chromaticities
read 1 molecules.
Old molecule deleted...
No matching basis set file found: "/home/henrique/Quantum/ORCA/Benz/Benzene.out"
HOMO at: -1
Hi Henrique,
First, your terminal says you are linking your avogadro 1.2 to a 1.1.1 library version. This may cause problems. Did you try to install the avogadro 1.1.1 first? Maybe from the Fedora repository? I think you should uninstall both and then compile the avogadro 1.2 version and check if it links to the 1.2 library.
Second, ORCA does not write the basis sets and molecular orbitals to the output by default. Be sure that you are asking for this in your input file.
Hi, @rfkspada You're right, I had Avogadro 1.1 from the repos installed. After uninstalling a did a rebuild from scratch. Now whenever I open any ORCA output it just crashes (but opens small molecules, like water, of CH4). Here is the terminal output:
[henrique@localhost ~] $ avogadro12
"Avogadro version: 1.2.0 Git:
LibAvogadro version: 1.2.0 Git: "
Locale: "pt_BR"
Libavogadro translations not found.
System has OpenGL support.
About to test OpenGL capabilities.
OpenGL capabilities found:
Double Buffering.
Direct Rendering.
Antialiasing.
In a build directory - loading alternative...
Loading plugins: "/home/henrique/bin/avogadro/build/bin/../lib"
Searching for plugins in "/home/henrique/bin/avogadro/build/lib"
"libavogadro_OpenQube.so" failed to load. "The file '/home/henrique/bin/avogadro/build/lib/libavogadro_OpenQube.so.0.1.0' is not a valid Qt plugin."
"libavogadro_OpenQube.so.0" failed to load. "The file '/home/henrique/bin/avogadro/build/lib/libavogadro_OpenQube.so.0.1.0' is not a valid Qt plugin."
"libavogadro_OpenQube.so.0.1.0" failed to load. "The file '/home/henrique/bin/avogadro/build/lib/libavogadro_OpenQube.so.0.1.0' is not a valid Qt plugin."
Settings are missing for the next engines: ()
QStackedLayout::setCurrentWidget: Widget 0x24349f0 not contained in stack
dev warning: Extension "GAMESS" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Orbitals" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
Could not find python module...
dev warning: Extension "Python Terminal" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
dev warning: Extension "Vibration" is using a deprecated DockWidget loading method. See Extension::dockWidgets() documentation.
HOMO at: -1
GLWidget initialisation...
GLWidget initialised...
createObjects()
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: cHRM: invalid chromaticities
read 1 molecules.
Old molecule deleted...
File "/home/henrique/Quantum/ORCA/Benz/Benzene.out" opened.
Segmentation fault (imagem do núcleo gravada)
I have created a patch to fix that problem in orbital.c Here is the patch: https://gist.github.com/LonelySpooky/6871935dbff4ac57a0414f4c0c27eb96#file-libmsymfloat-patch
I'm going through old bugs - I believe this was resolved, correct?
I'm going through old bugs - I believe this was resolved, correct?
I can confirm.
Thanks - glad it works now! :-)
Builds of Avogadro 1.2 are failing in Fedora 24. Here is the error message: