Kirix Support Forums

Problem Building the App

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

Problem Building the App

Postby xzminx on Thu Sep 29, 2011 11:49 am

Hi guys, I've been using Code::Blocks for my project and recently found the need to add browser control with some extra features not covered by wxHtmlWindow.

Ok, I added the sources to my project and placed the xulrunner where it needs to be. I'm having problems building the app due to macro
Code: Select all
NS_DEFINE_STATIC_IID_ACCESSOR(...)
in nsall.h which is generated by nsall.idl. Can someone help me out on this one? It spits out 50+ errors, all related to this macro.

For instance this line
Code: Select all
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISUPPORTS_IID)
gives this error:
Code: Select all
macro "NS_DECLARE_STATIC_IID_ACCESSOR" passed 11 arguments, but takes just 1|

Other errors are similar, only the argument is different.

Any help is appreciated!
xzminx
Registered User
 
Posts: 12
Joined: Tue Apr 26, 2011 1:51 pm

Re: Problem Building the App

Postby Ben on Fri Sep 30, 2011 10:09 am

Are you using wxWebConnect exclusively, or are you using Mozilla's glue library? I ask because there are different versions of some of these macros which interfere with each other.

Ben
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Re: Problem Building the App

Postby xzminx on Fri Sep 30, 2011 5:26 pm

wxWebConnect - in fact i just took the webConnect sources from the testApp (without the app) and included it to my project.

Do i need to recompile the interface definition file? I tried that with microsofts compiler midl, but it failed.
What compiler did you use build that interface?

Also, did you guys consider providing sample code for a newer version of visual studio, or even for Code::Blocks since its open source.

On a side note, could you help me get a dll of webconnect so i can just link it in my project?
xzminx
Registered User
 
Posts: 12
Joined: Tue Apr 26, 2011 1:51 pm

Re: Problem Building the App

Postby xzminx on Tue Oct 04, 2011 5:19 pm

I managed to build the library using Visual Studio.

Now i got the .lib that I need to link to my current project.
It is stuck at
Code: Select all
wxWebControl::InitEngine()
reporting
undefined reference to ...
, same applies for webControl instantiation.

My project is build using Code::Blocks (Win7)



---------------------------------------------------
Anyways... Could you please help me build the library (webConnect) using Code::Blocks (or any other way) so I could link to it in Code::Blocks? Thanks
xzminx
Registered User
 
Posts: 12
Joined: Tue Apr 26, 2011 1:51 pm

Return to wxWebConnect Questions, Thoughts & Feedback