Mr-Ntic / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Shadow build don't work #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of QextSerialPort are you using?
1.2rc

What steps will reproduce the problem?
1. Create new project in qt creator.
2. Copy qextserialport directory to 3dparty directory in your project. So, the 
structure of project direcory should look like this
.
├── 3rdparty
│   └── qextserialport
│       ├── doc
│       │   ├── examples
│       │   │   └── images
│       │   └── style
│       ├── examples
│       │   ├── enumerator
│       │   ├── event
│       │   ├── qespta
│       │   └── uartassistant
│       └── src
└── src

2. Add

include(3rdparty/qextserialport/src/qextserialport.pri)

in your *.pro file

3. qt creator > Projects > Shadow build (check it)
4. Run Build > Rebuild project

What is the expected output? What do you see instead?
Expected: Successfuly compiled project
Instead: gcc compile error

moc_qextserialport.cpp: In static member function 'static void 
QextSerialPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
moc_qextserialport.cpp:96:30: error: invalid use of incomplete type 'class 
QextSerialPortPrivate'
         case 13: _t->d_func()->_q_canRead(); break;
                              ^
In file included from moc_qextserialport.cpp:9:0:
../../../jmicont/3rdparty/qextserialport/src/qextserialport.h:167:7: error: 
forward declaration of 'class QextSerialPortPrivate'
 class QextSerialPortPrivate;
       ^
make: *** [moc_qextserialport.o] Error 1

What version of the product are you using? On what operating system?
Qt 4.8.6 on Ubuntu 14.04

Please provide any additional information below.

If shadow build is not checked then all works perfectly.

Original issue reported on code.google.com by alenyas...@gmail.com on 20 May 2014 at 9:16

GoogleCodeExporter commented 8 years ago
The same issue happens on Windows (mingw) and Qt 5.3.1. Seems to work when 
shadow build is disabled.

Original comment by horn...@googlemail.com on 26 Aug 2014 at 12:18