Error:
Compilation failed; see the compiler error output for details
Solution:
Set the configuration of other Properties the same as the app package
Error:
Compilation failed; see the compiler error output for details
Solution:
Set the configuration of other Properties the same as the app package
Problem environment:
Microsoft Visual Studio Community 2022 (64-bit)
Windows SDK 10.0.19041.685
The problem is caused by an incorrect include directory set automatically by VS.
And the wrong path shown in the image above is provided by the macro $(UCRTContentRoot)
.
The value of this macro is taken from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10
the value of a registry key that may be set to the wrong value when installing some SDK-related packages:
To solve this problem, we can delete the wrong registry key and find the SDK installer to fix it:
or directly modify the value of the registry key to the correct path (eg: C:\Program Files (x86)\Windows Kits \10).
opencv problem:
./test1: error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object file: No such file or directory
This is the problem I have when executing test1
this file
error while loading shared libraries: indicates that there is a problem with the shared library.
Two methods are described below.
the first method
Check the dynamic library (shared library) configuration file
sudo gedit /etc/ld.so.conf
Make sure you have the first line of the path
and then update it
sudo ldconfig
The second method
Let’s first look at the shared library of this file that is executed
ldd test1
We can see that there are several libraries that cannot be found
Then we use the locate
command to locate these libraries
Install the locate command
sudo apt install mlocate
Locate the missing libraries in turn
locate libopencv_highgui.so.3.4
The path is found, then we add the path
Go to the dynamic library configuration folder
cd /etc/ld.so.conf.d
Create a new .conf file, name it whatever you want
You can also add it to the original file without creating a new one.
I create a new opencv.conf file here
sudo vim opencv.conf
It seems that there is no need to add so many paths here
Once the file is saved, it’s time to update the shared library link
sudo ldconfig
After the update, you can delete the newly created .conf file without affecting it.
” An error occurred on the server when processing the URL. ” occurs when accessing the webpage ,
The access phenomenon is: an error will be reported when the ID is greater than 32767, and there is no problem if the ID is less than 32767
Cases less than 32767:
Setting method one:
Run CMD as administrator, locate the directory to %windir%\system32\inetsrv\, and execute
appcmd set config -section:asp -scriptErrorSentToBrowser: true
Meaning: Send an ASP internal error to the browser to expose problem location.
Visit again and report the error:
Microsoft VBScript Runtime Error Error ‘800a0006’ Overflow: ‘CInt’
Check the file Sitepage.asp and find that the function is used, and the string is converted to an integer asp: cint()–note that only the range of short integer values must be between -32768 and 32767;
clng() is applied to long integers; that is, here when the ID is greater than 32767, the function cint() should be replaced by clng().
After saving, it was found that the solution was successful.
Error when using matlab:
>> gpuDevice Error using gpuDevice Failed to initialize graphics driver for computation. The CUDA error was: CUDA_ERROR_SYSTEM_NOT_READY
Check out the official NVIDIA documentation: https://docs.nvidia.com/gpudirect-storage/troubleshooting-guide/index.html
Install nvidia-fabricmanager:
# yum-config-manager --add-repo https: // developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo # yum install -y nvidia-fabric-manager- 515.65 . 01 - 1 Note: 515. 65 .01 here is the version number of your graphics card driver, which can be viewed through nvidia-smi
Start the service:
# /usr/bin/nv-fabricmanager -c /usr/share/nvidia/nvswitch/fabricmanager.cfg
Error Messages:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtTokenServices' defined in org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration: Unsatisfied dependency expressed through method 'jwtTokenServices' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenStore' defined in org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.TokenStore]: Factory method 'jwtTokenStore' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenEnhancer' defined in org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method 'jwtTokenEnhancer' threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 401 null at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at com.familyxiao.sso.client.SsoClient2Application.main(SsoClient2Application.java:28) [classes/:na]
Solution (Two Cases and the corresponding solutions):
1. These two values below are misconfigured:
security.oauth2.client.clientId= security.oauth2.client.clientSecret=
2. No token-value is configured in the client’s application.properties
This is the problem of running Gao Xiang’s slambook2 code, there are two methods to solve it.
error: ‘CV_GRAY2BGR’ was not declared in this scope
/home/diyu/slambook2/ch8/optical_flow.cpp: In function ‘int main(int, char**)’:
/home/diyu/slambook2/ch8/optical_flow.cpp:145:37: error: ‘CV_GRAY2BGR’ was not declared in this scope
145 | cv::cvtColor(img2, img2_single, CV_GRAY2BGR);
| ^~~~~~~~~~~
/home/diyu/slambook2/ch8/direct_method.cpp: In function ‘void DirectPoseEstimationSingleLayer(const cv::Mat&, const cv::Mat&, const VecVector2d&, std::vector<double, std::allocator >, Sophus::SE3d&)’:
/home/diyu/slambook2/ch8/direct_method.cpp:206:35: error: ‘CV_GRAY2BGR’ was not declared in this scope
206 | cv::cvtColor(img2, img2_show, CV_GRAY2BGR);
| ^~~~~~~~~~~
make[2]: *** [CMakeFiles/optical_flow.dir/build.make:63:CMakeFiles/optical_flow.dir/optical_flow.cpp.o] ERROR 1
make[1]: *** [CMakeFiles/Makefile2:105:CMakeFiles/optical_flow.dir/all] Error 2
make[1]: *** Waiting for unfinished task…
make[2]: *** [CMakeFiles /direct_method.dir/build.make:63: CMakeFiles/direct_method.dir/direct_method.cpp.o] error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/direct_method.dir/all] error 2
make: *** [Makefile:84:all] Error 2
This experiment is because the code uses opencv2, and the cmkelists.txt file is opencv4
error: ‘CV_GRAY2BGR’ was not declared in this scope
which is the usage of opencv2, now opencv3 and 4 are COLOR_GARY2BGR
So there are two Method to Solve this error
Here choose the second method, modify it to opencv2
When you deploy with SAM CLI using sam deploy
, you might get the following error:
Error: Unable to upload artifact <YourComponent> referenced by ContentUri parameter of <YourComponent> resource.
An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied.
Try to solve this error by doing the following check:
aws configure list
, if not, run aws configure
to modify it, make sure your IAM user have all the necessary permissions.sam build --use-container
, and then run sam deploy --guided
if this is your first time to deploy.
Now if you see the following error:
Error: Failed to create changeset for the stack: <YourStack>, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Requires capabilities : [CAPABILITY_NAMED_IAM]
Try to run sam deploy --capabilities CAPABILITY_NAMED_IAM
[root@www ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dcm4che/slapd-dcm4chee 2.6.2-26.1 8f1f18417a82 2 months ago 12.2MB
dcm4che/wildfly ffmpeg-26.1.1-18.0.0 14aa8bf95061 2 months ago 1.11GB
[root@www ~]# docker rmi 14aa8bf95061
Error: No such image: 8f1f18417a82
[root@www sha256]# cd /var/lib/docker/image/overlay2/imagedb/content/sha256
[root@www sha256]# ll | grep 14aa8bf95061
-rw------- 1 root root 9018 Jun 6 00:21 14aa8bf9506150f2084035a561a2d5b0aa70da3c2756439fbf2bd5f1225e6ec2
[root@www sha256]# rm -rf 14aa8bf9506150f2084035a561a2d5b0aa70da3c2756439fbf2bd5f1225e6ec2
[root@www sha256]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dcm4che/slapd-dcm4chee 2.6.2-26.1 8f1f18417a82 2 months ago 12.2MB
Having trouble deploying pods
# helm install chart.tgz
Error: Could not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Find the offending apiservice and delete it.
//View the problematic apiservice
# kubectl get apiservice
NAME SERVICE AVAILABLE
v1. Local True
v1.admissionregistration.k8s.io Local True
v1.apiextensions.k8s.io Local True
v1.apps Local True
v1.authentication.k8s.io Local True
v1.authorization.k8s.io Local True
v1.autoscaling Local True
v1.batch Local True
v1.coordination.k8s.io Local True
v1.crd.projectcalico.org Local True
v1.networking.k8s.io Local True
v1.rbac.authorization.k8s.io Local True
v1.scheduling.k8s.io Local True
v1.storage.k8s.io Local True
v1beta1.admissionregistration.k8s.io Local True
v1beta1.apiextensions.k8s.io Local True
v1beta1.authentication.k8s.io Local True
v1beta1.authorization.k8s.io Local True
v1beta1.batch Local True
v1beta1.certificates.k8s.io Local True
v1beta1.coordination.k8s.io Local True
v1beta1.discovery.k8s.io Local True
v1beta1.events.k8s.io Local True
v1beta1.extensions Local True
v1beta1.metrics.k8s.io default/unm-k8s-metrics-server False (FailedDiscoveryCheck) <<< 删除
v1beta1.networking.k8s.io Local True
v1beta1.node.k8s.io Local True
v1beta1.policy Local True
v1beta1.rbac.authorization.k8s.io Local True
v1beta1.scheduling.k8s.io Local True
v1beta1.storage.k8s.io Local True
v2beta1.autoscaling Local True
v2beta2.autoscaling Local True
//Delete the problematic apiservice
# kubectl delete apiservice v1beta1.metrics.k8s.io
apiservice.apiregistration.k8s.io "v1beta1.metrics.k8s.io" deleted
Configure the logo label of vue-cli (ie: label icon)
Solution:
1. Add in the entry file index.html
<link rel="shortcut icon" type="image/x-icon" href="./img/logo.png">
{ "icons": [ { "src": "./img/logo.png", "type": "image/png" } ] }
The error reporting contents are as follows:
date.locale is not a function
Original code:
<a-form-item label="Time From:" name="signTime">
<a-date-picker placeholder="Please Select" v-model:value="formState.signTime" style="width:100%" />
</a-form-item>
Correct code:
<a-form-item label="Time From:" name="signTime">
<a-date-picker placeholder="Please Select" format="YYYY-MM-DD" valueFormat="YYYY-MM-DD" v-model:value="formState.signTime" style="width:100%" />
</a-form-item>
Summary: you need to add the time display format attribute and the final value format valueFormat attribute.