error in generate automoc.cpp file???
-
Hi,
make
gives me an error in the bycmake
autogenerated _automo.cpp file:
In particular, make tells me:In file included from /home/ron/src/scaper/build/scaper_automoc.cpp /home/ron/src/scaper/build/moc_dialog.cpp:21:8: error: redefinition of ‘struct qt_meta_stringdata_ScaperDialog_t’ struct qt_meta_stringdata_ScaperDialog_t {
I'm not sure how I can resolve this... anyone...?
Thank you! -
Do you include the moc file somewhere in your sources? If so please remove it and try again.
-
Do you include the moc file somewhere in your sources? If so please remove it and try again.
@christian-ehrlicher said in error in generate automoc.cpp file???:
Do you include the moc file somewhere in your sources? If so please remove it and try again.
No I atually don't, a quickgrep
in my source dir only returned:ron@regDesktopHome:~/src/scaper$ grep -rn "moc" * | grep -v cmake | grep -vi make build/moc_scacfg.cpp:15:#error "This file was generated using the moc from 5.5.1. It" build/moc_scacfg.cpp:17:#error "(The moc has changed too much.)" build/scaper_automoc.cpp:2:#include "moc_dialog.cpp" build/scaper_automoc.cpp:3:#include "moc_dialog.cpp" build/scaper_automoc.cpp:4:#include "moc_scacfg.cpp" build/moc_dialog.cpp:15:#error "This file was generated using the moc from 5.5.1. It" build/moc_dialog.cpp:17:#error "(The moc has changed too much.)" llvm-project/libcxx/utils/google-benchmark/test/benchmark_gtest.cc:4:#include "gmock/gmock.h"
Whjat is expected - I assume. I'm a relative Qt newbie if it isn't obvious yet....
If you would like to have a look at my sources, git clone https://github.com/stdcerr/scaper.git -
@christian-ehrlicher said in error in generate automoc.cpp file???:
Do you include the moc file somewhere in your sources? If so please remove it and try again.
No I atually don't, a quickgrep
in my source dir only returned:ron@regDesktopHome:~/src/scaper$ grep -rn "moc" * | grep -v cmake | grep -vi make build/moc_scacfg.cpp:15:#error "This file was generated using the moc from 5.5.1. It" build/moc_scacfg.cpp:17:#error "(The moc has changed too much.)" build/scaper_automoc.cpp:2:#include "moc_dialog.cpp" build/scaper_automoc.cpp:3:#include "moc_dialog.cpp" build/scaper_automoc.cpp:4:#include "moc_scacfg.cpp" build/moc_dialog.cpp:15:#error "This file was generated using the moc from 5.5.1. It" build/moc_dialog.cpp:17:#error "(The moc has changed too much.)" llvm-project/libcxx/utils/google-benchmark/test/benchmark_gtest.cc:4:#include "gmock/gmock.h"
Whjat is expected - I assume. I'm a relative Qt newbie if it isn't obvious yet....
If you would like to have a look at my sources, git clone https://github.com/stdcerr/scaper.git -
Your headers are twice in your repo.
-
Your headers are twice in your repo.
@christian-ehrlicher said in error in generate automoc.cpp file???:
Your headers are twice in your repo.
Yes, that was it, I had created the include/ and missed to delete the files outside it! That solved it! Thanks! :)