Page 2 of 2

Re: installing wxWidgets in Visual Studio

Posted: Thu Jun 06, 2019 2:53 pm
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.

Re: installing wxWidgets in Visual Studio

Posted: Thu Jun 06, 2019 5:19 pm
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.

Re: installing wxWidgets in Visual Studio

Posted: Thu Jun 06, 2019 6:50 pm
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.

Re: installing wxWidgets in Visual Studio

Posted: Thu Jun 06, 2019 9:52 pm
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.

Re: installing wxWidgets in Visual Studio

Posted: Mon Jun 10, 2019 8:02 pm
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!

Re: installing wxWidgets in Visual Studio

Posted: Mon Jun 10, 2019 8:10 pm
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.