Hi all,
I have a problem building QtJambi under Arch Linux. I first build Qt, which
works fine. After invoking ant in the jambi directory, I get the output
below. It appears that the file preprocessor.cpp does not include stdio.h. I
have verified that stdio.h is present in /usr/include/.
Is the build broken or have I set things up incorrectly?
Thanks,
- Simon Andersson
Buildfile: build.xml
init.ant:
(snip)
init:
[qtjambi-initialize] qtjambi.osname: linux32
[qtjambi-initialize] qtjambi.libsubdir: lib
[qtjambi-initialize] qtjambi.qtdir: /opt/qtsdk-2010.01/qt/
[qtjambi-initialize] qtjambi.compiler: gcc
[qtjambi-initialize] qtjambi.configuration: release
(snip)
generator.qmake:
generator.compile:
[make]
[make] Running : (/simon/jambi/qtjambi-src-lgpl-4.5.2_01/generator)
make
[make] make -f Makefile.Release
[make] make[1]: Entering directory
`/simon/jambi/qtjambi-src-lgpl-4.5.2_01/generator'
[make] g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -Wall -W
-D_REENTRANT -DRXX_ALLOCATOR_INIT_0 -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore
-I/usr/include/QtXml -I/usr/include -I. -I. -I../common -Iparser
-Iparser/rpp -Iparser/rpp -Irelease -o release/preprocessor.o
parser/rpp/preprocessor.cpp
[make] In file included from parser/rpp/pp.h:100,
[make] from parser/rpp/preprocessor.cpp:54:
[make] parser/rpp/pp-internal.h: In function 'void
rpp::_PP_internal::output_line(const std::string&, int, _OutputIterator)':
[make] parser/rpp/pp-internal.h:75: error: there are no arguments to
'snprintf' that depend on a template parameter, so a declaration of
'snprintf' must be available
[make] parser/rpp/pp-internal.h:75: note: (if you use '-fpermissive',
G++ will accept your code, but allowing the use of an undeclared name is
deprecated)
[make] In file included from parser/rpp/pp.h:105,
[make] from parser/rpp/preprocessor.cpp:54:
[make] parser/rpp/pp-macro-expander.h: In member function
'_InputIterator rpp::pp_macro_expander::operator()(_InputIterator,
_InputIterator, _OutputIterator)':
[make] parser/rpp/pp-macro-expander.h:264: error: there are no
arguments to 'snprintf' that depend on a template parameter, so a
declaration of 'snprintf' must be available
[make] In file included from parser/rpp/pp.h:107,
[make] from parser/rpp/preprocessor.cpp:54:
[make] parser/rpp/pp-engine-bits.h: In member function 'void
rpp::pp::file(const std::string&, _OutputIterator)':
[make] parser/rpp/pp-engine-bits.h:81: error: there are no arguments to
'fopen' that depend on a template parameter, so a declaration of 'fopen'
must be available
[make] parser/rpp/pp-engine-bits.h: In member function 'void
rpp::pp::file(FILE*, _OutputIterator)':
[make] parser/rpp/pp-engine-bits.h:111: error: there are no arguments
to 'feof' that depend on a template parameter, so a declaration of 'feof'
must be available
[make] parser/rpp/pp-engine-bits.h:113: error: there are no arguments
to 'fread' that depend on a template parameter, so a declaration of 'fread'
must be available
[make] parser/rpp/pp-engine-bits.h:117: error: there are no arguments
to 'fclose' that depend on a template parameter, so a declaration of
'fclose' must be available
[make] In file included from parser/rpp/pp.h:107,
[make] from parser/rpp/preprocessor.cpp:54:
[make] parser/rpp/pp-engine-bits.h: In member function 'FILE*
rpp::pp::find_include_file(const std::string&, std::string*,
rpp::pp::INCLUDE_POLICY, bool) const':
[make] parser/rpp/pp-engine-bits.h:273: error: 'fopen' was not declared
in this scope
[make] parser/rpp/pp-engine-bits.h:286: error: 'fopen' was not declared
in this scope
[make] parser/rpp/pp-engine-bits.h:312: error: 'fopen' was not declared
in this scope
[make] make[1]: *** [release/preprocessor.o] Error 1
[make] make: *** [release] Error 2
[make] make[1]: Leaving directory
`/simon/jambi/qtjambi-src-lgpl-4.5.2_01/generator'
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest