cmake conversion - Pb headers generated with automoc #1
Kapalı
Ghost tarafından 5 yıl önce açıldı
·
1 yorum
Yükleniyor…
Yeni konuda referans
Henüz bir içerik yok.
'%!s(<nil>)' Dalını Sil
Bir dalı silmek kalıcıdır. GERİ ALINAMAZ. Devam edilsin mi?
While trying to bring cmake support in Kasablanca, I've run into something rather peculiar.
I get this error:
I've overcome this by generating Q_mainwindow.h manually:
Same problem goes on with:
Here is how I try to build the executable:
The solution turned out to be easier than I expected. The CPP files that cause the problem should not have been part of the source code – these are generated files. Therefore, simply removing the files was enough to solve the problem. Then, instead of unintentionally processing these CPP files from the source directory, the CPP files are processed from the binary directory and therefore everything is done properly.