Hello everyone,
I'm just getting started with Ring, and I'm having some problems on macOS.
Build from Source failedI tried to build Ring from the source files. I got numerous warnings during the build process (often indicating that deprecated functions are being used), but no error messages.
Unfortunately, I got an error message when I subsequently called "$ ring rnote.ring".
Error message:
sudo ring rnote.ring
Library File : libringqt.dylib
Line 8 Error (R38) : Runtime Error in loading the dynamic library
In loadlib() In function loadlibfile() in file /Users/myuser/ring/libraries/guilib/loadlibfile.ring
called from line 11 in file rnote.ring
I then used the " ready to use" package "Binary release for macOS 64 bit" from the home page and it worked.
Missing fontsWhen I start Ring Notepad with:
$ ring rnote.ring
I get the following message:
qt.qpa.fonts: Populating font family aliases took 159 ms. Replace uses of missing font family "Consolas" with one that exists to avoid this cost.
The error message indicates that when starting the Ring application (specifically with rnote), the Qt framework is trying to use the font "Consolas", but it is not available or correctly installed on your system. The lack of this font causes Qt to take extra time to find and assign replacement fonts, which delays the launch of the application.
I was able to fix this message with:
Download the Consolas font from
http://www.fontpalace.com/font-details/Consolas/Open Finder and navigate to Downloads directory
Double click the Consolas.ttf file
A dialog box appears displaying the details about the font
Click Install font button
The same applies to font family "Roboto".
If both fonts are installed, the message disappears.
Displaylink Crash Ring NotepadI have an environment with two external monitors controlled by Displaylink Manager. I was able to identify Displaylink as the cause of sporadic, but frequent, crashes of Ring Notepad and other applications. Unfortunately, even a driver update did not bring any improvement. The only remedy was to connect it directly to my Macbook Pro.
Research has shown that other users with different applications and development tools also have problems with Displaylink. I suspect that the issues are caused by the implementation of the Displaylink display as a large virtual desktop and that the resolution for the rendering/display functions leads to the issues. There may be a solution for QT.
Can't Center WindowFurthermore, in connection with the virtual desktop across two to three monitors, my issue may be that I was unable to center a window on the primary display. Vertical centering worked, but horizontal centering did not. The window was always displayed at the far-right edge of the screen.
I was able to solve it like this (code excerpt):
// center the window
// create a new desktop widget
oDesktop = new qDesktopWidget()
// get the available geometry of the main window
geo=oDesktop.availableGeometry(oMainWindow)
see "width: " + geo.width() + nl
see "height: " + geo.height() + nl
// calculate the new ceter position of the main window
nNewX = ( geo.width() - oMainWindow.width() ) / 2
nNewY = ( geo.height() - oMainWindow.height() ) / 2
// set the new position of the main window
oMainWindow.move(nNewX, nNewY)
// show the main window
oMainWindow.show()
Technical data of my environment
macOS Sonoma 14.2.1 (Intel)
Ring 1.19 For macOS (64bit)
Maybe these are useful suggestions to improve the quality or help other users who have similar issues.
Greetings
Stefan