My project now successfully compiles, linking fails however, with
approximately 42 billion error messages like the ones posted at the end.
<snip>
CMakeFiles/PhenoCam.dir/objects.a(exporterMainwindow.cpp.obj):exporterMainwindow.cpp:(.text+0xb1b):
undefined reference to `__imp___ZN5QJson6ParserC1Ev'
CMakeFiles/PhenoCam.dir/objects.a(exporterMainwindow.cpp.obj):exporterMainwindow.cpp:(.text+0xb40):
undefined reference to `__imp___ZN5QJson6Parser5parseERK10QByteArrayPb'
CMakeFiles/PhenoCam.dir/objects.a(exporterMainwindow.cpp.obj):exporterMainwindow.cpp:(.text+0x1379):
undefined reference to `__imp___ZN5QJson6ParserD1Ev'
CMakeFiles/PhenoCam.dir/objects.a(exporterMainwindow.cpp.obj):exporterMainwindow.cpp:(.text+0x1735):
undefined reference to `__imp___ZN5QJson6ParserD1Ev'
CMakeFiles/PhenoCam.dir/objects.a(selectVideoStep.cpp.obj):selectVideoStep.cpp:(.text+0x9e8):
undefined reference to `__imp___ZN5QJson6ParserC1Ev'
CMakeFiles/PhenoCam.dir/objects.a(selectVideoStep.cpp.obj):selectVideoStep.cpp:(.text+0xa16):
undefined reference to `__imp___ZN5QJson6Parser5parseEP9QIODevicePb'
CMakeFiles/PhenoCam.dir/objects.a(selectVideoStep.cpp.obj):selectVideoStep.cpp:(.text+0xc7c):
undefined reference to `__imp___ZN5QJson6ParserD1Ev'
Hi Simon,
You might find some clues here:
http://stackoverflow.com/questions/5159353/how-can-i-get-rid-of-the-imp-prefix-in-the-linker-in-vc
Somebody who knows more about cmake and qjson might be able to give more
specific advice.
Mark