chatGPT assists in solving QT build error error: multiple target patterns

ChatGPT and AI Image Generation Using PromptsZone Explore 300+ ChatGPT prompts, try them out now, and share your creative prompts with others! https://promptszone.com/?rc=W2ERcOJMUT First give the veterans a chatGPT website for free prostitution. You can use it after registering. No need to climb over the wall.

Officially record this use.

Open the example directly and build the error error: multiple target patterns. Stop.

Locate the error message

Answer using chatGPT

{

This error is usually caused by incorrectly defined rules in the Makefile. In this Makefile rule, the error message error: multiple target patternsmeans that the make tool cannot resolve the name of the target file.

You need to put both the dependency and the command on the same line, and use a colon to separate the target file and the dependency. Here is a modified rule:

debug/qrc_res.cpp: res.qrc C:/Qt/6.5.0/mingw_64/bin/rcc.exe Active\ code\ page:\ 65001
    C:/Qt/6.5.0/mingw_64/bin/rcc.exe -name res --no-zstd res.qrc -o debug/qrc_res.cpp

Note that we have changed the path separator for the output files in the command. In addition, if you Active\ code\ page:\ 65001just want to specify the encoding format, you can delete this line or specify the encoding format directly in the command.

You can then rerun the make tool to build your project.

}
Locate toActive\ code\ page:\ 65001 这一句可能出了问题。

I found this great god’s reply

 nice, according to

https://blog.csdn.net/qq_37925231/article/details/110824760

Compile again after this modification, and it's ok.

No more build errors.

Guess you like

Origin blog.csdn.net/huntenganwei/article/details/130560187