Category Archives: How to Fix

goldendict: error while loading shared libraries: libQt5Svg.so.5

In Ubuntu system, use the tool goldendict

goldendict: error while loading shared libraries: libQt5Svg.so.5: cannot open shared object file: No such file or directory

The reason is that the environment variable is not set. Solution:

1 find the libqt5svg. So. 5 path./opt/Netease/Netease cloud music/LIBS/libqt5svg. So. 5

2/etc/LD. So. Conf.d add a file goldendict.conf, which reads as follows
/opt/Netease/Netease cloud music/LIBS

3 execute the command to update the dynamic link library sudo ldconfig

The following is the reference address:
QT error resolution: error while loading shared libraries: libxxx.so

Unity report error CS0619: ‘XRDevice.isPresent’ is obsolete

Unity error resolution error cs0619: ‘xrdevice. Ispresent’ is obsolete:

1. Problem description 2. Solution

1. Problem description

Assets\Battlehub\RTCommon\Scripts\RTEBase.cs(690,20): error CS0619: ‘XRDevice.isPresent’ is obsolete: ‘This is obsolete, and should no longer be used. Instead, find the active XRDisplaySubsystem and check that the running property is true (for details, see XRDevice.isPresent documentation).’

This error occurred when I was using unity’s runtimes editor plug-in, which probably means that the API has expired and needs to be modified.


2. Solutions

I checked the Internet and found no relevant information, so I went directly to unity’s API document according to the error message. After looking at it, I know that the previous interface can’t be used. Just rewrite it. Xrdevice.ispresent document. Just rewrite an inner class and call it again according to the document
add the following part to the code, and then modify the calling code.

internal static class ExampleUtil
{
    public static bool isPresent()
    {
        var xrDisplaySubsystems = new List<XRDisplaySubsystem>();
        SubsystemManager.GetInstances<XRDisplaySubsystem>(xrDisplaySubsystems);
        foreach (var xrDisplay in xrDisplaySubsystems)
        {
            if (xrDisplay.running)
            {
                return true;
            }
        }
        return false;
    }
}

Error: l6218e: undefined symbol appears when keil calls lib

1. Recently, when using MDK to generate lib, Keil failed to call lib, resulting in a lot of undefined problems

2. When generating lib with keil for testing, you can’t add the header file to the project.

        Delete all. H files, regenerate the Lib file, and call again. It is found that there will be no more problems such as error: l6218e: undefined symbol

Brew cask installation software prompt: error: unknown command: cask

Brew cask installation software prompt: error: unknown command: cask

problem

➜ /Users/test > brew cask install mounty
Error: Unknown command: cask

Brew cask installation software prompt: error: unknown command: cask

resolvent:

Use brew install -- cask mount

➜ /Users/test >brew install --cask mounty
Updating Homebrew...

Reference address: install software through brew cask on MAC prompt: error: unknown command: cask?

Some error occurred error: listen eaddinuse: address already in use 127.0.0.1:3000

In this case, the port is occupied
solution:
window + R open run input CMD open DOS command window

Input: netstat - ano view port

the red mark indicates that the port is occupied,

Enter the TCP number corresponding to taskkill/F/T/im in CMD to turn off the occupied port
and then NPM run serve can be run normally

error: ‘CLOCK_MONOTONIC‘ undeclared (first use in this function)

  Error message:

/home/xx/test/main.c: In function ‘main’:
/home/xx/test/main.c:37:21: error: storage size of ‘start’ isn’t known
   37 |     struct timespec start, end; //nanoseconds
      |                     ^~~~~
/home/xx/test/main.c:37:28: error: storage size of ‘end’ isn’t known
   37 |     struct timespec start, end; //nanoseconds
      |                            ^~~
/home/xx/test/main.c:43:5: warning: implicit declaration of function ‘clock_gettime’ [-Wimplicit-function-declaration]
   43 |     clock_gettime(CLOCK_MONOTONIC, &start);
      |     ^~~~~~~~~~~~~
/home/xx/test/main.c:43:19: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
   43 |     clock_gettime(CLOCK_MONOTONIC, &start);
      |                   ^~~~~~~~~~~~~~~
/home/xx/test/main.c:43:19: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/WBSM4.dir/build.make:63: CMakeFiles/xx.dir/test/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/xx.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Solution:

Add a compiler to the cmakelists.txt file:  

add_compile_options(-D_POSIX_C_SOURCE=199309L) 

Solution source [copyright infringement and deletion]:

c++ – error: ‘CLOCK_ MONOTONIC’ undeclared (first use in this function) – Stack Overflow

error: ‘CLOCK_ Mononic ‘undeclared problem solving_ Whahu 1989 column – CSDN blog

Error: The size of the connection buffer (131072) was not large enough

R language, carry out geo data mining and analysis, Download geo data online,

gset <- getGEO("GSE94994", GSEMatrix =TRUE, AnnotGPL=FALSE)

The following error is reported:

Found 1 file(s)
GSE94994_series_matrix.txt.gz
Using locally cached version: C:\Users\ENMONS~1\AppData\Local\Temp\Rtmpe27iLR/GSE94994_series_matrix.txt.gz
Error: The size of the connection buffer (131072) was not large enough
to fit a complete line:
  * Increase it by setting `Sys.setenv("VROOM_CONNECTION_SIZE")`

Rstido’s default link cache is 131072 bytes. After conversion, it is 131kb, 0.131mb

  But the size of the data you downloaded & gt; 131072 bytes, so we need to adjust the default connection cache for normal download

resolvent:

Sys.setenv("VROOM_CONNECTION_SIZE"=99999999)

  Code implementation:

> gset <- getGEO("GSE94994", GSEMatrix =TRUE, AnnotGPL=FALSE)
Found 1 file(s)
GSE94994_series_matrix.txt.gz
Using locally cached version: C:\Users\ENMONS~1\AppData\Local\Temp\Rtmpe27iLR/GSE94994_series_matrix.txt.gz
Error: The size of the connection buffer (111) was not large enough
to fit a complete line:
  * Increase it by setting `Sys.setenv("VROOM_CONNECTION_SIZE")`
> Sys.setenv("VROOM_CONNECTION_SIZE"=99999999)
> gset <- getGEO("GSE94994", GSEMatrix =TRUE, AnnotGPL=FALSE)
Found 1 file(s)
GSE94994_series_matrix.txt.gz
Using locally cached version: C:\Users\ENMONS~1\AppData\Local\Temp\Rtmpe27iLR/GSE94994_series_matrix.txt.gz
Rows: 18 Columns: 160                                                                                                         
 0s-- Column specification --------------------------------------------------------------------------------------------------------
Delimiter: "\t"
chr   (1): ID_REF
dbl (159): GSM2493904, GSM2493905, GSM2493906, GSM2493907, GSM2493908, GSM2493909, GSM2493910, GSM2493911, GSM2493912, GSM24...

i Use `spec()` to retrieve the full column specification for this data.
i Specify the column types or set `show_col_types = FALSE` to quiet this message.
Using locally cached version of GPL23075 found here:
C:\Users\ENMONS~1\AppData\Local\Temp\Rtmpe27iLR/GPL23075.soft