installing wxWidgets in Visual Studio

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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: installing wxWidgets in Visual Studio

Post by ONEEYEMAN »

Hi,
Better yet - open the solution for minimal sample.
Then open the properties for minimal sample.

See what is being included.

Do the same in your own project.

For the environment variable - Google is your friend.

Thank you.
Krimby
In need of some credit
In need of some credit
Posts: 9
Joined: Sun Jun 02, 2019 11:15 am

Re: installing wxWidgets in Visual Studio

Post by Krimby »

OK, I give up. Nothing I've tried worked. Would love to use wxWidgets; it looks like an excellent setup. Maybe I'll give it a week, forget everything I've done, and try again.
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: installing wxWidgets in Visual Studio

Post by doublemax »

FWIW: I just installed VS2019 Community on an older laptop which has never seen any VS version before.

Downloaded wxWidgets-3.1.2.zip and unpacked.
Opened <wxdir>/build/msw/wx_vc15.sln
When asked about upgrading, i just accepted the proposed settings
Selected "Build solution".
Worked out of the box.

Then did the same with <wxdir>/samples/minimal/minimal_vc15.sln

Everything worked out of the box.

So, honestly i have no idea what went wrong for you.
Use the source, Luke!
Kvaz1r
Super wx Problem Solver
Super wx Problem Solver
Posts: 357
Joined: Tue Jun 07, 2016 1:07 pm

Re: installing wxWidgets in Visual Studio

Post by Kvaz1r »

Krimby wrote: Thu Jun 06, 2019 5:19 pm OK, I give up. Nothing I've tried worked. Would love to use wxWidgets; it looks like an excellent setup. Maybe I'll give it a week, forget everything I've done, and try again.
In the Internet should be enough tutorials with description how to include additional libraries to VS project but if straight way doesn't work for you can go in different way.
For example just generate project for your needs with Bake or something like that. All that you need provide correct path to the library.
Or copy any correct small project which use wxWidgets and replace local pathes to global manually in *.sln and *.vcxproj file.
Krimby
In need of some credit
In need of some credit
Posts: 9
Joined: Sun Jun 02, 2019 11:15 am

Re: installing wxWidgets in Visual Studio

Post by Krimby »

I am now giving up for good. Spent another day. I get the feeling wxWidgets has never worked for Windows; just Unix or something.
My best result so far was getting it to find all the include files, and then have 53 errors in those include files. Goodbye!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: installing wxWidgets in Visual Studio

Post by ONEEYEMAN »

Hi,
Very weird.
If you say that minimal sample worked, then all you had to do is to copy the minimal sample folder somewhere and update the path for headers and libraries. Just put c:\wxWidgets-3.1.1\lib\vc_lib or whatever the path should be

That is all.

But that's you decision...

Thank you.
Post Reply