News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How do I use a specific wxWidgets directory

Started by Flowers, February 18, 2018, 10:16:14 AM

Previous topic - Next topic

Flowers

I am working on Ubuntu 16.04 and trying to use Code::Blocks and wxWidgets. I have compiled wxWidgets 3.0.3 to /opt and compiled Code::Blocks 17.12 using that version of wxWidgets. Code::Blocks is installed to /usr/local. When I generate a wxWidgets project then compile and run, it terminates with status -6 with no obvious signs of creating a window. Looking at the compile messages, it is obviously using the wxWidgets I have in /usr. How can I tell Code::Blocks I want to use the wxWidgets in /opt? Is this likely to be the problem?
I'm afraid I am fairly new to Ubuntu, so apologies if this is an Ubuntu problem.

oBFusCATed

Search for `wx-config ...` in the project build options and replace them with the full path to your wx-config version.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Flowers

Thank you. That has solved it and I have now compiled and run my first wxWidgets program in Code::Blocks.
Is there any way I can set my directory as the default when creating a new project?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]