trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: February 2011

Re: [trinity-users] iccconfig - Makefile.am: noinst_HEADERS = iccconfig.h (is this right?)

From: Robert Xu <robxu9@...>
Date: Thu, 10 Feb 2011 21:48:59 -0500
On Thu, Feb 10, 2011 at 19:30, David C. Rankin
<drankinatty@...> wrote:
> On 02/10/2011 06:06 PM, David C. Rankin wrote:
>> Serghei, Tim, all,
>>
>>   Trying to debug the iccconfig.cpp error I'm having with kdebase, I've run
>> across the following line in the ../iccconfig/Makefile.am:
>>
>> noinst_HEADERS = iccconfig.h
>>
> <snip>
>
> That wasn't the problem. I commented it out in the Makefile.am - same result.
>
> I have also set -Wall in CMakeLists.txt for iccconfig. [ set( CMAKE_CXX_FLAGS
> "${CMAKE_CXX_FLAGS} -Wall -include tqt.h" ) ] Here is an expanded version of the
> compile error:
>
> [ 29%] Building CXX object
> kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o
> cd /home/david/tbld/kdebase/src/kcontrol/iccconfig && /usr/bin/c++
> -Dkcm_iccconfig_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST
> -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
> -DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic -O2 -pipe  -Wall
> -include tqt.h -fPIC -I/home/david/tbld/kdebase/src/kcontrol/iccconfig
> -I/home/david/tbld/kdebase/src -I/opt/trinity/include -I/opt/qt/include
> -I/opt/qt/include/tqt   -DKDE_CONFDIR=\"/opt/trinity/share/config\" -o
> CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o -c
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp
> In file included from /opt/qt/include/tqt/tqimage.h:32:0,
>                 from /opt/trinity/include/kaboutdata.h:24,
>                 from /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:29:
> /opt/qt/include/qimage.h: In member function ‘bool
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
> /opt/qt/include/qimage.h:58:61: warning: suggest parentheses around ‘&&’ within ‘||’
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘void KICCConfig::renameProfile()’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:148:6: warning: unused
> variable ‘i’
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:149:12: warning:
> unused variable ‘iccFileArrayNew’
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘QString KICCConfig::extractFileName(QString, QString)’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:255:1: warning: no
> return statement in function returning non-void
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘void KICCConfig::load(bool)’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error:
> expected type-specifier
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: cannot
> convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error:
> expected ‘,’ or ‘;’
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘virtual void KICCConfig::save()’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error:
> expected type-specifier
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: cannot
> convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error:
> expected ‘,’ or ‘;’
> make[2]: ***
> [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o] Error 1
> make[2]: Leaving directory `/home/david/tbld/kdebase/src'
> make[1]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/all] Error 2
> make[1]: Leaving directory `/home/david/tbld/kdebase/src'
> make: *** [all] Error 2
>    Aborting...
>
> I still don't understand the expected type-specifier error....
>

Can you try checking out kdebase from the latest svn?


-- 
later, Robert Xu