kmkolasinski/AwesomeBump

Build error on Fedora 23

Closed this issue · 4 comments

I have run a fresh cmake . after deleting CMakeFiles and CMakeCache.txt, then ran make.

The same error happens when using Qt Creator to generate build files.

Attempting to build latest Git (b1cbec3) on Fedora 23 64-bit gives this error:

[  2%] Automatic moc and uic for target awesomebump
[  2%] Built target awesomebump_automoc
[  5%] Building CXX object CMakeFiles/awesomebump.dir/Sources/formimageprop.cpp.o
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In constructor 'FormImageProp::FormImageProp(QMainWindow*, QGLWidget*)':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:93:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
     connect(ui->pushButtonBaseMapToOthersHMaxVal,SIGNAL(toggled(bool)),this,SLOT(toggleColorPicking(bool)));
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:94:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
     connect(ui->pushButtonBaseMapToOthersHMinVal,SIGNAL(toggled(bool)),this,SLOT(toggleColorPicking(bool)));
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:95:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHReset'
     connect(ui->pushButtonBaseMapToOthersHReset ,SIGNAL(pressed()),this,SLOT(resetBaseMapMinMaxColors()));
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:96:17: error: 'class Ui::FormImageProp' has no member named 'horizontalSliderBaseMapToOthersHRangeTolerance'
     connect(ui->horizontalSliderBaseMapToOthersHRangeTolerance ,SIGNAL(sliderReleased()),this,SLOT(updateSlidersOnRelease()));
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In member function 'void FormImageProp::updateGuiSpinBoxesAndLabes(int)':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:516:60: error: 'class Ui::FormImageProp' has no member named 'horizontalSliderBaseMapToOthersHRangeTolerance'
     imageProp.conversionBaseMapHeightMinMaxTolerance = ui->horizontalSliderBaseMapToOthersHRangeTolerance->value();
                                                            ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In member function 'void FormImageProp::resetBaseMapMinMaxColors()':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:669:9: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
     ui->pushButtonBaseMapToOthersHMinVal->setChecked(false);
         ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:670:9: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
     ui->pushButtonBaseMapToOthersHMaxVal->setChecked(false);
         ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:671:9: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
     ui->pushButtonBaseMapToOthersHMaxVal->setPalette(QApplication::palette());
         ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:672:9: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
     ui->pushButtonBaseMapToOthersHMinVal->setPalette(QApplication::palette());
         ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In member function 'void FormImageProp::toggleColorPicking(bool)':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:709:13: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
         ui->pushButtonBaseMapToOthersHMaxVal->setText("Max");
             ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:710:13: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
         ui->pushButtonBaseMapToOthersHMaxVal->setChecked(false);
             ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:711:13: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
         ui->pushButtonBaseMapToOthersHMinVal->setText("Min");
             ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:712:13: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
         ui->pushButtonBaseMapToOthersHMinVal->setChecked(false);
             ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:718:16: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
         if(ui->pushButtonBaseMapToOthersHMaxVal->isChecked()){
                ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:719:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             ui->pushButtonBaseMapToOthersHMaxVal->setText("Pick!");
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:720:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             ui->pushButtonBaseMapToOthersHMinVal->setChecked(false); // toggle off the second button
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:722:16: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
         if(ui->pushButtonBaseMapToOthersHMinVal->isChecked()){
                ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:723:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             ui->pushButtonBaseMapToOthersHMinVal->setText("Pick!");
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:724:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             ui->pushButtonBaseMapToOthersHMaxVal->setChecked(false); // toggle off the second button
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In member function 'void FormImageProp::colorPicked(QVector4D)':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:749:16: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
         if(ui->pushButtonBaseMapToOthersHMaxVal->isChecked()){
                ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:750:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             ui->pushButtonBaseMapToOthersHMaxVal->setChecked(false);
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:752:36: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             QPalette palette = ui->pushButtonBaseMapToOthersHMaxVal->palette();
                                    ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:753:34: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             palette.setColor(ui->pushButtonBaseMapToOthersHMaxVal->backgroundRole(), QColor(color.x(),color.y(),color.z()));
                                  ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:754:34: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             palette.setColor(ui->pushButtonBaseMapToOthersHMaxVal->foregroundRole(), QColor(255-color.x(),255-color.y(),255-color.z()));
                                  ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:755:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMaxVal'
             ui->pushButtonBaseMapToOthersHMaxVal->setPalette(palette);
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:758:16: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
         if(ui->pushButtonBaseMapToOthersHMinVal->isChecked()){
                ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:759:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             ui->pushButtonBaseMapToOthersHMinVal->setChecked(false);
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:761:36: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             QPalette palette = ui->pushButtonBaseMapToOthersHMinVal->palette();
                                    ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:762:34: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             palette.setColor(ui->pushButtonBaseMapToOthersHMinVal->backgroundRole(), QColor(color.x(),color.y(),color.z()));
                                  ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:763:34: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             palette.setColor(ui->pushButtonBaseMapToOthersHMinVal->foregroundRole(), QColor(255-color.x(),255-color.y(),255-color.z()));
                                  ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:764:17: error: 'class Ui::FormImageProp' has no member named 'pushButtonBaseMapToOthersHMinVal'
             ui->pushButtonBaseMapToOthersHMinVal->setPalette(palette);
                 ^
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp: In member function 'void FormImageProp::reloadSettings()':
/home/hugo/Git/awesomebump/Sources/formimageprop.cpp:978:9: error: 'class Ui::FormImageProp' has no member named 'horizontalSliderBaseMapToOthersHRangeTolerance'
     ui->horizontalSliderBaseMapToOthersHRangeTolerance->setValue(imageProp.conversionBaseMapHeightMinMaxTolerance);
         ^
CMakeFiles/awesomebump.dir/build.make:465: recipe for target 'CMakeFiles/awesomebump.dir/Sources/formimageprop.cpp.o' failed
make[2]: *** [CMakeFiles/awesomebump.dir/Sources/formimageprop.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/awesomebump.dir/all' failed
make[1]: *** [CMakeFiles/awesomebump.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

This looks like you may be missing a dependency. Please make sure the following are installed:

qt5-qtbase
qt5-qtbase-devel
libQGLViewer-qt5-devel
mesa-libGL-devel

Let me check and make sure I can build on Fedora 23 x86_64 still. It's possible that other dependencies not listed are also required.

Ok, the master branch still compiles for me on Fedora 23 x86_64. I found that the ui class that seems to be faulting in your build comes from dialogheightcalculator.h, where the ui namespace is defined. This namespace uses a class called DialogHeightCalculator that is inherited from QDialog. To get QDialog, you need to make sure the qt5-qtbase-devel package is installed. Let me know if that helps.

Hi, I don't understand why there is so big traffic just before Christmas ;)
Ok, so the problem is that the compilator doesn't see new objects in ui like this:

connect(ui->pushButtonBaseMapToOthersHMaxVal,SIGNAL(toggled(bool)),this,SLOT(toggleColorPicking(bool)));

pushButtonBaseMapToOthersHMaxVal - is a member of FormImageProp so it means that this is not present in ui file. However in master there is such member: formimageprop.ui, which suggest that you have to compile with old files? Are you sure you have complete master ?

Yeah, I'm just getting back but will be gone again for the holiday soon so I thought I'd check on things here. @kmkolasinski, sounds very plausible. @Calinou, could you do a git pull on your local master branch and retry the compilation?