Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: hesti on April 14, 2025, 03:53:04 pm

Title: Compile CB 25.03 from Source with tinyxml Problem
Post by: hesti 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
Title: Re: Compile CB 25.03 from Source with tinyxml Problem
Post by: wtfisgoingoff 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)

Title: Re: Compile CB 25.03 from Source with tinyxml Problem
Post by: stahta01 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.
Title: Re: Compile CB 25.03 from Source with tinyxml Problem
Post by: hesti 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."
Title: Re: Compile CB 25.03 from Source with tinyxml Problem
Post by: hesti 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