google-code-export / photivo

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

Building errors in Gentoo #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In building there are some errors:

compiling ../Sources/filters/ptFilter_ColorContrast.cpp
../Sources/filters/ptCfgItem.cpp: In member function ‘QVariant 
ptCfgItem::validate(QVariant)’:
../Sources/filters/ptCfgItem.cpp:134:31: error: expected initializer before 
‘:’ token
../Sources/filters/ptCfgItem.cpp:138:7: error: expected primary-expression 
before ‘return’
../Sources/filters/ptCfgItem.cpp:138:7: error: expected ‘;’ before 
‘return’
../Sources/filters/ptCfgItem.cpp:138:7: error: expected primary-expression 
before ‘return’
../Sources/filters/ptCfgItem.cpp:138:7: error: expected ‘)’ before 
‘return’
../Sources/filters/ptCfgItem.cpp:133:12: warning: unused variable ‘hValue’
make[1]: *** [../Objects/ptCfgItem.o] Error 1

In file included from ../Sources/filters/ptFilter_ABCurves.h:28:0,
                 from ../Sources/filters/ptFilter_ABCurves.cpp:23:
../Sources/filters/ptFilterBase.h:266:24: warning: expected 
[error|warning|ignored] after ‘#pragma GCC diagnostic’
../Sources/filters/ptFilterBase.h:300:24: warning: expected 
[error|warning|ignored] after ‘#pragma GCC diagnostic’
../Sources/filters/ptFilterBase.h: In member function ‘virtual QWidget* 
ptFilterBase::doCreateGui()’:
../Sources/filters/ptFilterBase.h:271:44: error: ‘nullptr’ was not declared 
in this scope
make[1]: *** [../Objects/ptFilter_ABCurves.o] Error 1
In file included from ../Sources/filters/ptFilter_ColorContrast.h:28:0,
                 from ../Sources/filters/ptFilter_ColorContrast.cpp:23:
../Sources/filters/ptFilterBase.h:266:24: warning: expected 
[error|warning|ignored] after ‘#pragma GCC diagnostic’
../Sources/filters/ptFilterBase.h:300:24: warning: expected 
[error|warning|ignored] after ‘#pragma GCC diagnostic’
../Sources/filters/ptFilterBase.h: In member function ‘virtual QWidget* 
ptFilterBase::doCreateGui()’:
../Sources/filters/ptFilterBase.h:271:44: error: ‘nullptr’ was not declared 
in this scope
make[1]: *** [../Objects/ptFilter_ColorContrast.o] Error 1

The library list used:

media-gfx/photivo-9999:
 [  0]  media-gfx/photivo-9999   
 [  1]  x11-libs/qt-core-4.8.2   
 [  1]  x11-libs/qt-gui-4.8.2   
 [  1]  media-libs/jpeg-6b-r9   
 [  1]  media-libs/libjpeg-turbo-1.2.1   
 [  1]  media-gfx/exiv2-0.21.1-r1   
 [  1]  media-libs/cimg-1.5.1   
 [  1]  media-libs/lcms-2.3   
 [  1]  media-libs/lensfun-0.2.5-r2   
 [  1]  sci-libs/fftw-3.2.2   
 [  1]  media-libs/liblqr-0.4.1   
 [  1]  media-gfx/graphicsmagick-1.3.16-r1   
 [  1]  media-gfx/gimp-2.6.12-r5   
 [  1]  dev-vcs/mercurial-2.1.1   

More info:

Full building log: http://pastebin.com/EcJaW1Pe
Portage info: http://pastebin.com/9udVPG2X

Original issue reported on code.google.com by majosam...@gmail.com on 25 Sep 2012 at 10:59

GoogleCodeExporter commented 9 years ago
You cannot build Photivo with GCC 4.5. At least 4.6 is required because of its 
C++11 support. If you start thinking about updating your compiler I’d suggest 
to go straight to 4.7 because we *may* update the requirement in the not too 
distant future.

Also note that the minimum required Qt version is 4.7. 

Original comment by brother.john.gm@googlemail.com on 25 Sep 2012 at 7:39

GoogleCodeExporter commented 9 years ago
Ok, please include this requirement to the wiki

http://photivo.org/photivo/download_and_setup/linux

Original comment by majosam...@gmail.com on 25 Sep 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Good idea. Done.
And to do things right I added a check for GCC 4.6+ to photivo.pro as well. :)

Original comment by brother.john.gm@googlemail.com on 26 Sep 2012 at 8:43