User forums > General (but related to Code::Blocks)

[SOLVED] CodeBlocks with wxWidgets compiler failed.

<< < (2/3) > >>

stahta01:
After you try every thing else.


--- Code: ---mingw32-make -f makefile.gcc SHARED=0 MONOLITHIC=1

--- End code ---

I would try building using SHARED=0 MONOLITHIC=0 in a new build location.
The combination of SHARED=0 and MONOLITHIC=1 is almost never used; so, it is more likely to be broken in wxWidgets or Code::Blocks.

NOTE: You must build in a new location changing the value of MONOLITHIC in the same location results in a broken wxWidgets build!

Tim S.

BlueHazzard:
Please add the "-v" to your project build options:
Project->Build options->Compiler settings->Other compiler options
and
Project->Build options->Linker settings-> Other linker options

now make a rebuild by hitting the blue arrows or Build->rebuild

In the build log it should now tell you what libraries it tryst and the reason why they are rejected by the linker.
Pleas post the build log of the rebuild.

Thnak you

bleakwind:

--- Quote from: BlueHazzard on August 20, 2019, 08:49:58 am ---And you have no other compiler installed? or in the path?

--- End quote ---

Thanks, it is this problem.

On my computer installed perl, perl has gcc.
I remove perl in system path, and rebuild wxWidgets, now everything is fine.

sodev:

--- Quote from: stahta01 on August 20, 2019, 04:12:53 pm ---I would try building using SHARED=0 MONOLITHIC=0 in a new build location.
The combination of SHARED=0 and MONOLITHIC=1 is almost never used; so, it is more likely to be broken in wxWidgets or Code::Blocks.

--- End quote ---

I can't agree with that, in fact SHARED=0 MONOLITHIC=0 doesn't buy you anything, you are linking statically, unused stuff doesn't get included anyway, its just easier to link with one library in that case. Non-monolithic builds make more sense when using shared libraries, in this case you can skip linking the libraries you don't need so you can reduce the required external dependencies the unused libraries depend on.

stahta01:

--- Quote from: sodev on August 20, 2019, 07:51:48 pm ---
--- Quote from: stahta01 on August 20, 2019, 04:12:53 pm ---I would try building using SHARED=0 MONOLITHIC=0 in a new build location.
The combination of SHARED=0 and MONOLITHIC=1 is almost never used; so, it is more likely to be broken in wxWidgets or Code::Blocks.

--- End quote ---

I can't agree with that, in fact SHARED=0 MONOLITHIC=0 doesn't buy you anything, you are linking statically, unused stuff doesn't get included anyway, its just easier to link with one library in that case. Non-monolithic builds make more sense when using shared libraries, in this case you can skip linking the libraries you don't need so you can reduce the required external dependencies the unused libraries depend on.

--- End quote ---

So, how many patches have to had applied to wxWidgets?

I have had over a half a dozen.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version