Compiling test_gui fails

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
wxwxwx
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Thu Dec 20, 2012 4:25 pm

Compiling test_gui fails

Post by wxwxwx »

Hello,
i want to figure out how to use wxWebView.
So i loaded the test solution for Visual Studio.

All compiles except the test_gui project.
The message:

Code: Select all

atal error C1083: Cannot open include file: 'cppunit/extensions/TestFactoryRegistry.h': No such file or directory
When searching such file in wx310 folder, it is not there.
Also testrunner.h and the other files included in this block are not present.

Do i need some additional sources and where to get them ?
Thank you
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Compiling test_gui fails

Post by doublemax »

i want to figure out how to use wxWebView.
So i loaded the test solution for Visual Studio.
I don't see the correlation here. If you want to learn about wxWebView, use the "webview" sample.

I can't say anything about the test suite, i've never used it. And it think very few users have, it's a tool for the wx developers.
Use the source, Luke!
wxwxwx
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Thu Dec 20, 2012 4:25 pm

Re: Compiling test_gui fails

Post by wxwxwx »

The webView example is a project in the test solution.
The test_gui app seems to use the webView project to demonstrate the webView feature.
There is no single webView solution (or at least i could not find it).

So the most direct way is to use test solution. This is the correlation.
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Compiling test_gui fails

Post by doublemax »

There is no single webView solution (or at least i could not find it).
There are VS project files in <wxdir>/samples/webview/, e.g. webview_vc9.vcproj

Newer VS versions can still import those.
Use the source, Luke!
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4183
Joined: Sun Jan 03, 2010 5:45 pm

Re: Compiling test_gui fails

Post by PB »

As doublemax said, the projects in WXWIN/tests folder are for automated testing, not to demonstrate wxWidgets features.

If you still want to build and run the test suite, read part I of WXWIN\docs\contributing\how-to-write-unit-tests.md file.
User avatar
ColleenKobe
Earned some good credits
Earned some good credits
Posts: 109
Joined: Mon Aug 31, 2015 3:47 pm

Re: Compiling test_gui fails

Post by ColleenKobe »

You can find the source code for TestFactoryRegistry.h at

http://cppunit.sourceforge.net/doc/cvs/ ... ource.html

You'll have to make a new file on your own computer in cppunit/extensions, assuming you have that directory somewhere.

TestRunner.h source code can be found at

http://cppunit.sourceforge.net/doc/cvs/ ... ource.html

I don't know what you're doing, so this is as far as I can help you. Good luck!
Post Reply