Performing C++ SOURCE FILE Test COMPLEX_TAGLIB_FILENAME failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o /usr/bin/c++ -DCOMPLEX_TAGLIB_FILENAME -I/usr/include/taglib -I/usr/include/taglib -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx: In function int main(): /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:5: error: cannot convert const wchar_t* to const char* in initialization make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Error 1 make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2 Source file was: #include int main() { TagLib::FileName fileName1("char"); TagLib::FileName fileName2(L"wchar"); return 0; } Determining if the Q_WS_WIN exist failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o /usr/bin/gcc -I/usr/include/taglib -I/usr/include/taglib -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function main: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: Q_WS_WIN undeclared (first use in this function) /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.) make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1 make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2 File /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef Q_WS_WIN cmakeRequireSymbol(0,&Q_WS_WIN); #endif return 0; } Determining if the Q_WS_QWS exist failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o /usr/bin/gcc -I/usr/include/taglib -I/usr/include/taglib -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function main: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: Q_WS_QWS undeclared (first use in this function) /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.) make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1 make: *** [cmTryCompileExec/fast] Error 2 File /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef Q_WS_QWS cmakeRequireSymbol(0,&Q_WS_QWS); #endif return 0; } Determining if the Q_WS_MAC exist failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o /usr/bin/gcc -I/usr/include/taglib -I/usr/include/taglib -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function main: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: Q_WS_MAC undeclared (first use in this function) /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.) make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1 make: *** [cmTryCompileExec/fast] Error 2 File /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef Q_WS_MAC cmakeRequireSymbol(0,&Q_WS_MAC); #endif return 0; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.6/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -o cmTryCompileExec -rdynamic -lpthreads -L/usr/lib -ltag /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make[1]: *** [cmTryCompileExec] Error 1 make: *** [cmTryCompileExec/fast] Error 2 Performing C++ SOURCE FILE Test _OFFT_IS_64BIT failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o /usr/bin/c++ -D_OFFT_IS_64BIT -I/usr/include/taglib -I/usr/include/taglib -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:9: warning: left shift count >= width of type /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:9: warning: left shift count >= width of type /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:9: warning: left shift count >= width of type /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:9: warning: left shift count >= width of type /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx:9: error: size of array off_t_is_large is negative make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Error 1 make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2 Source file was: #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main() { return 0; } Performing C++ SOURCE FILE Test BINDINGS_RUN_RESULT failed with the following output: Change Dir: /home/gary/src/amarok/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o /usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -DBINDINGS_RUN_RESULT -I/usr/include/taglib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtScript -I/usr/include/KDE -I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/gary/src/amarok/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTryCompileExec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 /usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -DBINDINGS_RUN_RESULT -I/usr/include/taglib CMakeFiles/cmTryCompileExec.dir/src.cxx.o -o cmTryCompileExec -rdynamic -lQtScript -lQtCore -lQtGui -L/usr/lib -lkdecore -lkdeui make[1]: Leaving directory `/home/gary/src/amarok/build/CMakeFiles/CMakeTmp' Return value: 10 Source file was: /* * Copyright (C) 2009 Ian Monroe * released under public domain or: * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include #define FAIL 0xA int main(int argc, char **argv) { KAboutData about( "findgeneratorplugins", "", ki18n("Generator Exists?"), "1.0", ki18n("Find if the QtScript Plugins Are Installed"), KAboutData::License_LGPL_V2 ); KCmdLineArgs::init( argc, argv, &about ); KApplication app( false ); //no gui pls QStringList allowedBindings; allowedBindings << "qt.core" << "qt.gui" << "qt.sql" << "qt.xml" << "qt.uitools" << "qt.network"; QScriptEngine engine; foreach( QString binding, allowedBindings ) { if( !engine.importExtension( binding ).isUndefined() ) { // undefined indiciates success qDebug() << binding << " not found"; return FAIL; } } return 0; }