Qt compilation error "Killed signal terminated program cc1plus" + device error undefined symbol: _Z22qInitResources_xxx

Reference: C++: fatal error: Killed signal terminated program cc1plus problem solving

  • 设备报错undefined symbol: _Z22qInitResources_safeboxv
    The error message is:
    insert image description here

  • Passed c++filt _Z22qInitResources_safeboxv, found that qInitResources_safebox() reported an error, but this is not a custom function
    insert image description here

  • Just when make -j 4compiling, there is[致命错误:已杀死 signal terminated program cc1plus 编译中断。] [Makefile error:qrc_safebox.o]

  • make -j 4But execute compile again , normal

It may be the problem here that causes[设备报错undefined symbol: _Z22qInitResources_safeboxv]
the solution
virtual machine to execute

sudo swapoff /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=3072
sudo mkswap /swapfile
sudo swapon /swapfile
  • Compile again make -j 4, no problem, the device is running

Reason: Insufficient SWAP swap space, mine is increased to 3G

Reason explanation: "Killed signal terminated program cc1plus" compilation error solution

Reason explanation: C++: fatal error: Killed signal terminated program cc1plus problem solving

Guess you like

Origin blog.csdn.net/qq_47355554/article/details/128562265