Hi,
I'm trying to compile 1.8.4.0b1 on Mandriva 2009 Spring but I'm getting this error:
g++ -c -pipe -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -Wall -W -DSYSTEM_QSCINTILLA -D_PACKAGE_NAME="\"Monkey Studio\"" -D_PACKAGE_VERSION="\"1.8.4.0b1\"" -D_PACKAGE_VERSION_STR="\"1.8.4.0b1\"" -D_PACKAGE_DOMAIN="\"monkeystudio.org\"" -D_PACKAGE_COPYRIGHTS="\"Copyright (C) 2005 - 2009 Filipe AZEVEDO\"" -D_PACKAGE_PREFIX="\"/usr/bin\"" -D_PACKAGE_PLUGINS="\"/usr/lib/monkeystudio\"" -D_PACKAGE_DATAS="\"/usr/share/monkeystudio\"" -DMONKEY_CORE_BUILD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtSql -I/usr/lib/qt4/include -I../qscintilla/sdk -I/usr/lib/qt4/include/Qsci -I../fresh/sdk -I../ctags/sdk -I../qCtagsSense/sdk -Isdk -I/usr/include -I../build/release/.moc -I../build/release/.ui -o ../build/release/.obj/unix/pCommandParser.o src/consolemanager/pCommandParser.cpp
g++ -c -pipe -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -Wall -W -DSYSTEM_QSCINTILLA -D_PACKAGE_NAME="\"Monkey Studio\"" -D_PACKAGE_VERSION="\"1.8.4.0b1\"" -D_PACKAGE_VERSION_STR="\"1.8.4.0b1\"" -D_PACKAGE_DOMAIN="\"monkeystudio.org\"" -D_PACKAGE_COPYRIGHTS="\"Copyright (C) 2005 - 2009 Filipe AZEVEDO\"" -D_PACKAGE_PREFIX="\"/usr/bin\"" -D_PACKAGE_PLUGINS="\"/usr/lib/monkeystudio\"" -D_PACKAGE_DATAS="\"/usr/share/monkeystudio\"" -DMONKEY_CORE_BUILD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtSql -I/usr/lib/qt4/include -I../qscintilla/sdk -I/usr/lib/qt4/include/Qsci -I../fresh/sdk -I../ctags/sdk -I../qCtagsSense/sdk -Isdk -I/usr/include -I../build/release/.moc -I../build/release/.ui -o ../build/release/.obj/unix/PluginsManager.o src/pluginsmanager/PluginsManager.cpp
src/pluginsmanager/PluginsManager.cpp: In member function ‘void PluginsManager::loadsPlugins()’:
src/pluginsmanager/PluginsManager.cpp:59: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp:87: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp: In member function ‘bool PluginsManager::addPlugin(QObject*)’:
src/pluginsmanager/PluginsManager.cpp:113: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp:119: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp: In member function ‘void PluginsManager::enableUserPlugins()’:
src/pluginsmanager/PluginsManager.cpp:146: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp:153: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp:157: error: format not a string literal and no format arguments
src/pluginsmanager/PluginsManager.cpp:162: error: format not a string literal and no format arguments
make[1]: *** [../build/release/.obj/unix/PluginsManager.o] Error 1
make[1]: Leaving directory `/home/juancho/Download/gz/monkey_studio_svn/mkstrunk/monkey'
make: *** [sub-monkey-make_default] Error 2
I tried also svn version from today with the same result. Any help is appreciated.
Fixed it
Well I started looking at the error and it seems that the parameters of the qWarning function changed on Qt 4.5.2, now you can't call it like:
qWarning("some string");
you need to use two parameters, one to specify the format of what is receiving and the other one is the value:
qWarning("%s", "some string");
I changed all the occurrences of qWarning that had that compile error and now it compiles and it seems to run ok. I have made a patch against svn fixing this issue, I sent it using the contact form.
Thank You
Thanks you very much for the patch, i will merge it tonight.
It's quite strange that you got a problem, if i can recall i have Qt 4.5.2 on kubuntu jaunty, and i have not the problem.
I will read more the doc about that.
Happy Coding, P@sNox,
You can seek team on IRC.
If you don't know what is IRC, then go to the IRC page.
If you want an answer, please be explicit and verbose.
Help by email will be ignored.
Done !
Done !
You can seek team on IRC.
If you don't know what is IRC, then go to the IRC page.
If you want an answer, please be explicit and verbose.
Help by email will be ignored.