May 30, 2011

nitin777 nitin777
Lab Rat
16 posts

error loading statically linked Qt app

 

i have a Qt app with libraries linked statically to it.On app loding some GUI components are invisible.

I had some problems in QtGui lib getting statically linked.i used MSVC 2008 for static compilation.
I got this error from QtGui project.

Code:

  1. LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
  2. 1>.\tmp\obj\debug_static\jaricom.obj : fatal error LNK1112: module machine type 'ARM' conflicts with target machine type 'X86
  3. QtGui - 1 error(s), 1 warning(s)'

My target machine is WinCE/ARMV4I

When i specified /MACHINE:THUMB in QtGui project properties->Librarian->Command Line, i got it compiled successfully.but the problem is that in my application am unable to view child widgets in my parent window.I can see the context menus and status bars in my app.,For eg if add a combo box to my project i could see just the out line of the window.

I think the Qt Gui lib havent linked statically correctly.
Can anyone pls suggest me an option on how to resolve this.

 Signature 

nitin

0 replies

 
  ‹‹ Qt Quick 3d with the SDK?      qt creator not configured well ››

You must log in to post a reply. Not a member yet? Register here!