hasshole / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
0 stars 0 forks source link

Build impossible - errors #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to compile project

It's not clear which commits are buildable because lack of proper tags/branches 
in your repository.

compiling with gcc version 4.9.2 20150204 (prerelease) (GCC).

I've tried a 'tip' but it fails:

../Sources/filters/ptCfgItem.cpp: In member function ‘void 
ptCfgItem::ensureVariantType(QVariant&) const’:
../Sources/filters/ptCfgItem.cpp:187:38: error: no matching function for call 
to ‘QVariant::convert(const QMetaType::Type&)’
     if (!AValue.convert(FIntendedType)) {
                                      ^
../Sources/filters/ptCfgItem.cpp:187:38: note: candidate is:
In file included from /usr/include/qt4/QtCore/QVariant:1:0,
                 from ../Sources/filters/ptCfgItem.h:29,
                 from ../Sources/filters/ptCfgItem.cpp:24:
/usr/include/qt4/QtCore/qvariant.h:234:10: note: bool 
QVariant::convert(QVariant::Type)
     bool convert(Type t);
          ^
/usr/include/qt4/QtCore/qvariant.h:234:10: note:   no known conversion for 
argument 1 from ‘const QMetaType::Type’ to ‘QVariant::Type’

With 'win-release-140525'
I've got:

../../photivo/Sources/ptMain.cpp: In function ‘void CB_Tone1ColorButton()’:
../../photivo/Sources/ptMain.cpp:6386:17: error: ‘class ptMainWindow’ has 
no member named ‘Tone1ColorButton’
     MainWindow->Tone1ColorButton->setIcon(Pix);
                 ^
../../photivo/Sources/ptMain.cpp: In function ‘void CB_Tone2ColorButton()’:
../../photivo/Sources/ptMain.cpp:6424:17: error: ‘class ptMainWindow’ has 
no member named ‘Tone2ColorButton’
     MainWindow->Tone2ColorButton->setIcon(Pix);
                 ^
../../photivo/Sources/ptMain.cpp: In function ‘void 
CB_GradualOverlay1ColorButton()’:
../../photivo/Sources/ptMain.cpp:6622:17: error: ‘class ptMainWindow’ has 
no member named ‘GradualOverlay1ColorButton’
     MainWindow->GradualOverlay1ColorButton->setIcon(Pix);
                 ^
../../photivo/Sources/ptMain.cpp: In function ‘void 
CB_GradualOverlay2ColorButton()’:
../../photivo/Sources/ptMain.cpp:6661:17: error: ‘class ptMainWindow’ has 
no member named ‘GradualOverlay2ColorButton’
     MainWindow->GradualOverlay2ColorButton->setIcon(Pix);
                 ^
../../photivo/Sources/ptParseCli.cpp: In function ‘ptCliCommands 
ParseCli(int, char**)’:
../../photivo/Sources/ptParseCli.cpp:43:49: warning: missing initializer for 
member ‘Entities::ShowHelp’ [-Wmissing-field-initializers]
   Entities cli = { "", "", 0, 0, 0, 0, 0, false };
                                                 ^
../../photivo/Sources/ptMainWindow.cpp: In constructor 
‘ptMainWindow::ptMainWindow(QString)’:
../../photivo/Sources/ptMainWindow.cpp:394:27: error: 
‘ChannelMixerOpenButton’ was not declared in this scope
   Macro_ConnectSomeButton(ChannelMixerOpen);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:395:27: error: 
‘ChannelMixerSaveButton’ was not declared in this scope
   Macro_ConnectSomeButton(ChannelMixerSave);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:411:27: error: ‘Tone1ColorButton’ 
was not declared in this scope
   Macro_ConnectSomeButton(Tone1Color);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:412:27: error: ‘Tone2ColorButton’ 
was not declared in this scope
   Macro_ConnectSomeButton(Tone2Color);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:414:27: error: 
‘TextureOverlayButton’ was not declared in this scope
   Macro_ConnectSomeButton(TextureOverlay);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:415:27: error: 
‘TextureOverlayClearButton’ was not declared in this scope
   Macro_ConnectSomeButton(TextureOverlayClear);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:416:27: error: 
‘TextureOverlay2Button’ was not declared in this scope
   Macro_ConnectSomeButton(TextureOverlay2);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:417:27: error: 
‘TextureOverlay2ClearButton’ was not declared in this scope
   Macro_ConnectSomeButton(TextureOverlay2Clear);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:419:27: error: 
‘GradualOverlay1ColorButton’ was not declared in this scope
   Macro_ConnectSomeButton(GradualOverlay1Color);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp:420:27: error: 
‘GradualOverlay2ColorButton’ was not declared in this scope
   Macro_ConnectSomeButton(GradualOverlay2Color);
                           ^
../../photivo/Sources/ptMainWindow.cpp:95:11: note: in definition of macro 
‘Macro_ConnectSomeButton’
   connect(Some ## Button,SIGNAL(clicked()),                            \
           ^
../../photivo/Sources/ptMainWindow.cpp: In member function ‘void 
ptMainWindow::UpdateSettings()’:
../../photivo/Sources/ptMainWindow.cpp:2291:3: error: ‘TextureOverlayText’ 
was not declared in this scope
   TextureOverlayText->setText(ShortFileName);
   ^
../../photivo/Sources/ptMainWindow.cpp:2311:3: error: ‘TextureOverlay2Text’ 
was not declared in this scope
   TextureOverlay2Text->setText(ShortFileName);
   ^
../../photivo/Sources/ptMainWindow.cpp:2337:3: error: ‘Tone1ColorButton’ 
was not declared in this scope
   Tone1ColorButton->setIcon(Pix);
   ^
../../photivo/Sources/ptMainWindow.cpp:2342:3: error: ‘Tone2ColorButton’ 
was not declared in this scope
   Tone2ColorButton->setIcon(Pix);
   ^
../../photivo/Sources/ptMainWindow.cpp:2347:3: error: 
‘GradualOverlay1ColorButton’ was not declared in this scope
   GradualOverlay1ColorButton->setIcon(Pix);
   ^
../../photivo/Sources/ptMainWindow.cpp:2352:3: error: 
‘GradualOverlay2ColorButton’ was not declared in this scope
   GradualOverlay2ColorButton->setIcon(Pix);
   ^

Original issue reported on code.google.com by Mikola...@gmail.com on 27 Feb 2015 at 1:14

GoogleCodeExporter commented 8 years ago
The goal is for the head of "default" branch to build at all times. However the 
only configuration that is actually tested continuously is a native Windows 
64bit build with a recent MinGW/GCC and Qt5: because that is my development 
environment.

You were trying to build with Qt4, right? I can confirm the QVariant/QMetaType 
problem with Qt4 and I’m working on it.

Re the win-release-140525 build: Did you clean your build directory before 
trying that one. The errors suggest that some files created by the build before 
cause the trouble.

Original comment by brother.john.gm@googlemail.com on 1 Mar 2015 at 12:24

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 5c47473d3ae6.

Original comment by brother.john.gm@googlemail.com on 1 Mar 2015 at 7:25