Author Topic: SVN build failed (TinyXML not found)  (Read 4087 times)

h0rno

  • Guest
SVN build failed (TinyXML not found)
« on: February 13, 2007, 09:09:22 pm »
Hi,
I tired to build C:B SN Rev 3602 with a gentoo linux ebuild but compile process failed after some time.

This ist the error:
Quote
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I../../../src/include -I../../../src/include/tinyxml    -O2 -ffast-math -O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT mainframe.o -MD -MP -MF ".deps/mainframe.Tpo" -c -o mainframe.o mainframe.cpp; \
        then mv -f ".deps/mainframe.Tpo" ".deps/mainframe.Po"; else rm -f ".deps/mainframe.Tpo"; exit 1; fi
/bin/sh ../../../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++  -O2 -ffast-math -O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC   -o cb_share_config  app.o mainframe.o -L../../sdk/tinyxml -ltinyxml -pthread   -L/usr/X11R6/lib  -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lpthread -ldl
../../../libtool: line 1920: cd: ../../sdk/tinyxml: No such file or directory
libtool: link: cannot determine absolute directory name of `../../sdk/tinyxml'

mkdir .libs
i686-pc-linux-gnu-g++ -O2 -ffast-math -O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o cb_share_config app.o mainframe.o -pthread  -L../../sdk/tinyxml -ltinyxml -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -lpthread -ldl
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltinyxml
collect2: ld returned 1 exit status
distcc[30126] ERROR: compile (null) on localhost failed
make[3]: *** [cb_share_config] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r16/work/codeblocks-9999/src/tools/cb_share_config'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r16/work/codeblocks-9999/src/tools'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r16/work/codeblocks-9999/src'
make: *** [all-recursive] Fehler 1

This tinyxml dir dosn't exist under sdk but under src/base.
What I have to do?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7600
    • My Best Post
Re: SVN build failed (TinyXML not found)
« Reply #1 on: February 13, 2007, 09:14:51 pm »
Apply my patch here, http://forums.codeblocks.org/index.php?topic=5179.msg40436#msg40436

Note, you DO NOT need the ANSI patch to fix your issue. Only if you are an win9x or NT 4.0 user do you need ANSI patch.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

h0rno

  • Guest
Re: SVN build failed (TinyXML not found)
« Reply #2 on: February 13, 2007, 09:32:58 pm »
Your patch is already integrated in the code but there were 3 more places where I had to change sdk/tinyxml to base/tinyxml:

1 cb_share_config.cbp
2 Makefile.am
3 Makefile.im

AFAIR the Makefile.* where created just before compile process adn not part of the SVN Repo but they have to get their content from somewhere, of course.

Now I will see if it works and will report the result later.

h0rno

  • Guest
Re: SVN build failed (TinyXML not found)
« Reply #3 on: February 13, 2007, 09:42:40 pm »
Now it works. :D

But these errors should be resolved in the repo.