User forums > Help

Run wxwidgets project not working

<< < (3/3)

dtrill:
1) I found the 'UNICODE=0' code snippet at 'https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide'.
See the section 'Building your own wxWidgets library'.

2) I have attached the re-build log html file 'wxwidgets-test\wxwidgets-test_build_log.zip' (let me  know if you need a different format).

3) The linker for dynamic libs is 'mingw32-g++.exe' (I assume this is what you asked for?)

Thanks.

sodev:

--- Quote from: dtrill on February 27, 2020, 07:03:17 pm ---1) I found the 'UNICODE=0' code snippet at 'https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide'.

--- End quote ---

--- Quote ---This page describes the steps I took in order to get Code::Blocks working with a homemade wxWidgets. I used the Code::Blocks+MINGW 1.0 bundle and wxWidgets 2.6.

--- End quote ---

Hmm, this is like what, 15 years old? Thats why i prefer no documentation over wrong/outdated documentation ::) ;D

Good news is, disabling unicode shouldn't do anything these days, this gets ignored and unicode gets forcefully enabled (however i'm not sure if this does apply to your used wxWidgets 3.0.4).

There are no build errors but you have some strange build settings, you enable 3 different c++ standards, not sure which one actually gets selected, but there can be only one. This might be another cause for your problems because these are not ABI compatible and if your wxWidgets library uses a different standard this might cause that error. Another possibility is that you are not only missing the wxWidgets DLL in the output directory (technically it needs to be on the search path and the output directory is on it) but also the compiler DLL's you can find in the bin directory of your toolchain.

dtrill:
sodev, thanks for pointing out some of my rookie mistakes!

1) I believe current wxWidget install documentation can be found on the Code Blocks website 'http://wiki.codeblocks.org/index.php/WxWindowsQuickRef'. I will uninstall wxWidgets and re-install using this document.

2) I had assumed that the c++ standard set in the Project/Build options tab would override any standard set in the Settings/Compiler tab (i.e. global compiler settings), but Code Blocks seems to allow both standards to be used?

Thanks.

dtrill:
Touchdown.  :)
 
Using the above suggestions, and some additional help from sly_chandan at 'https://forums.wxwidgets.org/viewtopic.php?t=39427', I have now solved my problem.

It's important to use the same compiler for building both wxWidgets and Code Blocks.

In addition, build command 'mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport' worked for wxwidgets version 2.8.12, but did not work for wxwidgets version 3.0.4 (does not create file 'wxmsw30u_gcc_custom.dll').

For version 3.0.4, I used build command 'mingw32-make -j8 -f makefile.gcc BUILD=release SHARED=1 UNICODE=1 VENDOR=custom MONOLITHIC=1' (as per sly_chandan which creates file 'wxmsw30u_gcc_custom.dll').

Thanks to everyone for the help.





Navigation

[0] Message Index

[*] Previous page

Go to full version