News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compile SVN: TinyXML headers missing (svn rev. 3180)

Started by titan, November 05, 2006, 02:49:30 AM

Previous topic - Next topic

titan

Hi all,

I've been building CB from SVN regularly for the past few months. But for the last few weeks, the build has broken on two separate Gentoo Linux boxes.  I use gcc 4.1.1 (Gentoo) on both.  I'm at the latest SVN (rev # 3180).

No one else has reported this in the forums.  Hope this is the right place to post.  I don't know why the build would suddenly break on two separate computers.

My guess:
src/tools/cb_share_config/app.cpp
is having trouble finding
src/sdk/tinyxml/tinyxml.h.

Looks like adding -Isdk/tinyxml directory to Makefile.am would do it, but I'm not good with autotools.

Thanks for any ideas!



$ ../../src/codeblocks/trunk/configure --prefix=/opt/codeblocks-svn --enable-contrib
<snip>

$ nice make -j2
<tail of build log>:
make[6]: Leaving directory `/home/kev/build/codeblocks/src/plugins/contrib/wxSmith'
make[5]: Leaving directory `/home/kev/build/codeblocks/src/plugins/contrib/wxSmith'
make[4]: Leaving directory `/home/kev/build/codeblocks/src/plugins/contrib/wxSmith'
make[4]: Entering directory `/home/kev/build/codeblocks/src/plugins/contrib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/kev/build/codeblocks/src/plugins/contrib'
make[3]: Leaving directory `/home/kev/build/codeblocks/src/plugins/contrib'
make[3]: Entering directory `/home/kev/build/codeblocks/src/plugins'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/kev/build/codeblocks/src/plugins'
make[2]: Leaving directory `/home/kev/build/codeblocks/src/plugins'
Making all in tools
make[2]: Entering directory `/home/kev/build/codeblocks/src/tools'
Making all in cb_share_config
make[3]: Entering directory `/home/kev/build/codeblocks/src/tools/cb_share_config'
if g++ -DHAVE_CONFIG_H -I. -I../../../../../src/codeblocks/trunk/src/tools/cb_share_config -I../../../src/
sdk -I/usr/lib64/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -M
T app.o -MD -MP -MF ".deps/app.Tpo" \
-c -o app.o `test -f '../../../../../src/codeblocks/trunk/src/tools/cb_share_config/app.cpp' || echo '..
/../../../../src/codeblocks/trunk/src/tools/cb_share_config/'`../../../../../src/codeblocks/trunk/src/tool
s/cb_share_config/app.cpp; \
then mv -f ".deps/app.Tpo" ".deps/app.Po"; \
else rm -f ".deps/app.Tpo"; exit 1; \
fi
In file included from ../../../../../src/codeblocks/trunk/src/tools/cb_share_config/app.cpp:4:
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:20:29: error: tinyxml/tinystr.h:
No such file or directory
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:21:29: error: tinyxml/tinyxml.h: No such file or directory
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:92: error: 'TiXmlDocument' has n ot been declared
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:94: error: 'TiXmlDocument' has n ot been declared
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:95: error: 'TiXmlNode' was not d eclared in this scope
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:95: error: template argument 1 i s invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:95: error: template argument 2 i s invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:96: error: 'TiXmlNode' has not b een declared
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:97: error: 'TiXmlNode' was not d eclared in this scope
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:97: error: template argument 1 i s invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:97: error: template argument 2 i s invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:99: error: 'TiXmlNode' has not b een declared
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:102: error: 'TiXmlDocument' has not been declared
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:105: error: ISO C++ forbids decl aration of 'TiXmlDocument' with no type
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:105: error: expected ';' before '*' token
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:107: error: 'TiXmlNode' was not declared in this scope
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:107: error: template argument 1 is invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:107: error: template argument 2 is invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:110: error: ISO C++ forbids decl aration of 'TiXmlDocument' with no type
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:110: error: expected ';' before '*' token
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:112: error: 'TiXmlNode' was not declared in this scope
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:112: error: template argument 1 is invalid
../../../../../src/codeblocks/trunk/src/tools/cb_share_config/mainframe.h:112: error: template argument 2 is invalid
make[3]: *** [app.o] Error 1
make[3]: Leaving directory `/home/kev/build/codeblocks/src/tools/cb_share_config'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kev/build/codeblocks/src/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kev/build/codeblocks/src'
make: *** [all-recursive] Error 1


MortenMacFly

Quote from: titan on November 05, 2006, 02:49:30 AM
Looks like adding -Isdk/tinyxml directory to Makefile.am would do it, [...]
Right. Have done that in SVN. Please try again... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

titan

The fix in SVN rev. 3181 works for me!

I posted a follow-up to bug #9331 that I opened a week ago, though I'm not allowed to mark it resolved.

Thanks Morten!!

killerbot