Author Topic: Compile CB 25.03 from Source with tinyxml Problem  (Read 2477 times)

Offline hesti

  • Single posting newcomer
  • *
  • Posts: 3
Compile CB 25.03 from Source with tinyxml Problem
« on: April 14, 2025, 03:53:04 pm »
Compiling Codeblocks 25.03 from source.

My system is a current MX Linux, so Debian at its core.

Unpack -> bootstrap -> configure -> make
Runs fine, but then the plugins in "contrib" aren't included.

./configure --with-contrib-plugins="all" --prefix=/usr

make

Runs fine, but stops because many error messages during linking look something like this:

AutoVersioning.cpp:(.text+0x81d3): undefined reference to `TiXmlElement::~TiXmlElement()'

make stops at some point. This could be a problem for me. The normal plugins and src/plugins
run normally, but not under src/plugins/contrib. The exact cause was that tinyxml wasn't linked during linking. Everything is fine with plugins. Not in plugins/contrib.

I'm sure this can only be my fault. If you have the same problem, feel free to use my workaround script. As usual, it's provided without any warranty.

Perhaps someone knows more about it and can share it.

Hesti

Offline wtfisgoingoff

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Compile CB 25.03 from Source with tinyxml Problem
« Reply #1 on: April 14, 2025, 06:13:36 pm »
./configure --with-contrib-plugins=all   (I used this in Ubuntu.  There are no quotation marks on both sides of all.   I don't know if this is relevant.  )

./configure --with-contrib-plugins="all"  (yours)


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7763
    • My Best Post
Re: Compile CB 25.03 from Source with tinyxml Problem
« Reply #2 on: April 14, 2025, 07:37:02 pm »
Wild guess is the "tinyxml" package installed? Does it have an devel package?
I have no idea if it is better to have the package(s) installed or not installed!

Tim S.
« Last Edit: April 14, 2025, 07:49:14 pm by stahta01 »
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

Offline hesti

  • Single posting newcomer
  • *
  • Posts: 3
Re: Compile CB 25.03 from Source with tinyxml Problem
« Reply #3 on: April 15, 2025, 09:03:15 am »
./configure --with-contrib-plugins=all   (I used this in Ubuntu.  There are no quotation marks on both sides of all.   I don't know if this is relevant.  )

./configure --with-contrib-plugins="all"  (yours)


That's more or less the same thing. You can also specify individual packages there, like:

./configure --with-contrib-plugins="byogames AutoVersioning"

Besides, the packages (plugins) are compiled, otherwise there wouldn't be an error message. I imagine there's a switch that triggers this. It only affects the plugins under "src/plugins/contrib."

Offline hesti

  • Single posting newcomer
  • *
  • Posts: 3
Re: Compile CB 25.03 from Source with tinyxml Problem
« Reply #4 on: April 15, 2025, 09:08:53 am »
Wild guess is the "tinyxml" package installed? Does it have an devel package?
I have no idea if it is better to have the package(s) installed or not installed!

Tim S.
Yes, tinyxml is already installed. The developer package is included. And others are using it. The plugins under "src/plugins" already use the package and compile flawlessly. After my mini-patch, everything runs smoothly. Only the -ltinyxml library specification is missing when linking.
Hesti