Toronto Andrew wrote:
> Hello, thank you for looking at my CMake issues! I really appreciate it :)
> 
> I fixed the major issue you mentioned (Moving INCLUDE_DIRECTORIES above
> ADD_EXECUTABLE), however this did not seem to fix anything. I still got the
> errors I was receiving prior to that change, and I used absolute paths when
> linking to the include directory within my source.
> 
> I fixed this *qextserialport\src\moc_qextserialport.cpp(10): fatal error
> C1083: Cannot open include file: '../../../src/qextserialport.h': No such
> file or directory. * by linking to the absolute path in
> moc_qextserialport.cpp, which seemed to get rid of it, however it draws up
> these now:
> 
> *2>build\x\QExtSerialPort\src\moc_qextserialport.cxx(97): error C2027: use
> of undefined type 'QextSerialPortPrivate'
> 2>  QExtSerialPort/src/qextserialport.h(167) : see declaration of
> 'QextSerialPortPrivate'
> 2>build\x\QExtSerialPort\src\moc_qextserialport.cxx(97): error C2227: left
> of '->_q_canRead' must point to class/struct/union/generic type*

>From the filename I would expect the class to be named QExtSerialPortPrivate 
(i.e. capital first E).

Sometimes it gets tricky to get the includes for the moc files right. One way 
to prevent this is to include the moc file explicitely at the end of the cpp 
file, i.e. #include "moc_qextserialport.cpp"

Eike
-- 

Attachment: signature.asc
Description: This is a digitally signed message part.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to