Tag Archives: development language

Vs + QT reports an error “vs cannot open the source file qchartview”

Vs + QT reports an error “vs cannot open the source file qchartview”

Just started to develop QT program with VS, not familiar with VS, #include & lt; QChartView> always reports an error and cannot open the source program. The solution is as follows:


add the two directories shown in the figure to the included directory. If qtcharts are not found, it indicates that qtcharts was not installed when QT was installed, and the qtcharts component needs to be reinstalled.

[Solved] defineClass Error: java.lang.NoClassDefFoundError: Illegal:

The defineclass() method actually converts byte bytes into class objects

I always thought that the problem in the above picture was that the path could not be found, so I kept changing various paths. As a result, it was wrong to try. As a result, I looked at a blog and directly passed the empty parameters. I took a try attitude. I found that it was right and did not report an error. Suddenly, I found that alas, how can it be empty, Click the converted class to see the data, and then assign the value to the parameter according to that

Just change the ASM/asmhelloworld parameter to asm.asmhelloworld.

Done!

Ubutnu Qt Unable to start process Error: “make“ -f ‘ /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit sta

Ubutnu Qt Unable to start process “make” -f ‘ /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status

I. Unable to start the process “make” -f ‘
Make is not installed on the system
sudo apt install make

2./usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status
sudo apt-get install libgl1-mesa-dev

[Solved] R Language Error: Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)

R Language Error: Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)

 

Solution:

Solution 1: Ctrl + Shift + F10 to restart your session
solution 2: run the following code directly to regenerate the temporary file without restarting (recommended)

dir.create(tempdir())

[Solved] CMake Error at CMakeLists.txt:92 (add_subdirectory)

When compiling GitHub project, you may encounter the following errors:

CMake Error at CMakeLists.txt:92 (add_subdirectory):
 The source directory
xxxxx

CMake Error at src/Runtime/CMakeLists.txt:56 (pybind11_add_module):
 Unknown CMake command "pybind11_add_module".

This is generally a lack of third-party dependencies. You can try the following command:

git submodule init && git submodule update

Reference:
https://stackoverflow.com/questions/59291154/cmake-error-at-cmakelists-txt994-add-subdirectory

ERROR: configuration failed for package ‘openssl’ [How to Solve]

ERROR: configuration failed for package ‘openssl’
removing ‘/usr/local/lib/R/site-library/openssl’
The ubuntu system lacks openssl:

apt-get install openssl
apt-get install openssl-devel

Or:

wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

tar -xvf  openssl-1.1.1i.tar.gz

cd openssl-1.1.1i/

./config 

make && make install

./config shared 

make clean

make  && make install

[Solved] Internal error (java.lang.IllegalStateException): Duplicate key org.jetbrains

Exception description

Internal error (java.lang.IllegalStateException): Duplicate key org.jetbrains.jps.model.module.impl.JpsModuleImpl@25b485ba
java.lang.IllegalStateException: Duplicate key org.jetbrains.jps.model.module.impl.JpsModuleImpl@25b485ba
	at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
	at java.util.HashMap.merge(HashMap.java:1253)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.jetbrains.jps.maven.model.impl.MavenAnnotationProcessorTargetType.createLoader(MavenAnnotationProcessorTargetType.java:50)
	at org.jetbrains.jps.incremental.storage.BuildTargetTypeState.load(BuildTargetTypeState.java:63)
	at org.jetbrains.jps.incremental.storage.BuildTargetTypeState.<init>(BuildTargetTypeState.java:52)
	at org.jetbrains.jps.incremental.storage.BuildTargetsState.getTypeState(BuildTargetsState.java:122)
	at org.jetbrains.jps.incremental.storage.BuildTargetsState.getAverageBuildTime(BuildTargetsState.java:116)
	at org.jetbrains.jps.incremental.messages.BuildProgress.<init>(BuildProgress.java:73)
	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:408)
	at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:183)
	at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:132)
	at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:302)
	at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:132)
	at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:219)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)


Solution:

Delete the idea file:

Reload:

[Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory

Question:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

analysis:

Error in compiling 32-bit program on 64 bit host (- M32 option), install the necessary software package;

Solution:

$ sudo apt install gcc-multilib 	# Generally you can install this, if you can't install the following
$ sudo apt install g++-multilib
$ sudo apt install libc6-dev libc6-dev-i386

IAR Compile Error: Error[Li005]: no definition for [How to Solve]

after transplanting the program today, there was an error report of “error [li005]: no definition for” during compilation, which was encountered and solved before. Today, I’m going to officially record the causes and solutions of this error.

1. Reasons

just look at the error reminder given by IAR, “error [li005]: no definition for xxxxx”, which means that xxxxx is not defined (all cases I encounter refer to a function), but find the problem yourself, and you will find that this xxxxx has been defined in other C files, and this xxxxx function has been declared in the header file corresponding to this C file, And the path of the header file has been included in the IAR settings. There should be no problem! Then I began to wonder.

2. Solutions

let’s talk about the solution to this problem:

2.1 the C file where the xxxxx function is located is not added in the project

most of this happens because you accidentally removed the C file from the project, and you haven’t noticed it. The solution is very simple. Add the C file to the project again and recompile it.

2.2 when using conditional compilation, the xxxxx function is not compiled

this is why I have this problem this time. Let me give you an example:

#define FANJIE 1

#if FANJIE
void Get_Fans(void)
{
    for(int i  = 0; i<100;i++);
}
#endif

Take the simple function above as an example, when FANJIE is 1, call Get_Fans() in other c files, and no error will be reported, but when FANJIE is 0, call Get_Fans() in other c files Function, it will report the error “Error[Li005]: no definition for Get_Fans”.
The solution is also very simple, just make sure that the conditional compilation can be compiled normally.

Dev C++ Error: error: ld returned 1 exit status [How to Solve]

There are several reasons for this error: error: ld returned 1 exit status

 

Solution (Four Methods to Solve, Not All):

1.undefined reference to `__gxx_personality_v0

Or compile with g++

To compile with gcc, add -lstdc++ to the edit option linker command

2. Close the program connected to the running dev

3. Definition error

4. Compile other settings issues