Compiling 3.1.1 under Ubuntu with debug symbols

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Widgets
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 534
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Compiling 3.1.1 under Ubuntu with debug symbols

Post by Widgets »

In an effort to get some issues resolved by tracing into the wxWIdgets code, I have installed wxWidgets 3.1.1 from

Code: Select all

https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.1 as a zip file.
After unzipping I am trying to compile it with:

Code: Select all

 ...... /wxWidgets-3.1.1/gtk-build$ ../configure --enable-debug --prefix=$(pwd) && make -j
but I run into a show stopper with

Code: Select all

......
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -D_GNU_SOURCE -fvisibility=hidden ../src/regex/regfree.c
make: *** No rule to make target '../src/jpeg/jaricom.c', needed by 'wxjpeg_jaricom.o'.  Stop.
make: *** Waiting for unfinished jobs....
TIA for any pointers or suggestions
Environment: Win 10/11 64-bit & Mint 21.1
MSVC Express 2019/2022
wxWidgets 3.2.2
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Compiling 3.1.1 under Ubuntu with debug symbols

Post by DavidHart »

Hi,

See this wxBlog post about submodules.

BTW, wx3 builds for non-Windows platforms are debug by default, so you don't actually need the --enable-debug option. However it certainly does no harm, and I suspect that using it makes the wx samples build with debug symbols too.

Regards,

David
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Compiling 3.1.1 under Ubuntu with debug symbols

Post by ONEEYEMAN »

Hi, David,
The OP said that he installed it from the ZIP and didn't cloned the repository. Which means (s)he should already have all the submodules.

To the OP:
What is an exact compiler/linker line before it is spitting the error mentioned?

Thank you.
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Compiling 3.1.1 under Ubuntu with debug symbols

Post by DavidHart »

You're right, Igor. I saw 'tag' in the url and presumed it was a git-type download.

Widgets, I just downloaded and built successfully the same tarball. You are probably missing a jpeg development lib. Either install what your distro has to offer (I think it's libjpeg-dev) or try rebuilding using the --with-libjpeg=builtin configure option
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Compiling 3.1.1 under Ubuntu with debug symbols

Post by ONEEYEMAN »

Widget,
You will probably need to install all other development packages as well that are missing on your system.

Thank you.
Widgets
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 534
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Re: Compiling 3.1.1 under Ubuntu with debug symbols

Post by Widgets »

Thank you both.
As I have resolved my compile & trace issues with 3.1.0, I will leave 3.1.1 for another day ;-)
Environment: Win 10/11 64-bit & Mint 21.1
MSVC Express 2019/2022
wxWidgets 3.2.2
Post Reply