[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] Shared library problem in Windows
From:       Ashika Umanga Umagiliya <aumanga () biggjapan ! com>
Date:       2010-08-31 6:27:33
Message-ID: 4C7CA0D5.7070103 () biggjapan ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Greetings all,

Please refer to the image at :

http://i34.tinypic.com/30w85xt.png <http://i34.tinypic.com/30w85xt.png>


I use MinGW,QT and CMake for my project.
As shown in the figure, my project has two modules.

* libRinzoCore.DLL : a shared library which define some abstract classes 
and interfaces and some core functionality of the application.This 
module is used to implement dynamic Plugins (which are also shared 
libraries which automatically loaded by the application) .

* Rinzo.exe     : the main application.This uses "libRinzoCore" classes.

"libRinzoCore" mainly developed using QT objects and link against the QT 
library.
"Rinzo.exe" also uses QT library objects,some are not being used in 
"libRinzoCore".So I have to link QT Library and "libRinzoCore" with this 
executable.

I can compile "libRinzoCore" without problems and it generated two files 
"libRinzoCore.DLL" and "libRinzoCore.DLL.a"

But during compiling "Rinzo.exe" it gives the following output :

Linking CXX executable Rinzo.exe
    Info: resolving IRzPlugin::staticMetaObject       by linking to 
__imp___ZN9IRzPlugin16staticMetaObjectE (auto-import)
    Info: resolving IRzViewerPlugin::staticMetaObject        by linking 
to __imp___ZN15IRzViewerPlugin16staticMetaObjectE (auto-import)
    Info: resolving IRzLayeringPlugin::staticMetaObject        by 
linking to __imp___ZN17IRzLayeringPlugin16staticMetaObjectE (auto-import)
   
 C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: 
warning: auto-importing has been activated without --enable-auto-import 
specified on the command line.
    This should work unless it involves constant data structures 
referencing symbols
     from auto-imported DLLs.
    [100%] Built target Rinzo


And when executing "Rinzo.exe" it crashes with the message (this is a 
translation from Japanese error message)
But in linux (with GCC) this works fine.

Any tips?

PS:

Here are my CMake files for

libRinzoCore :

http://www.keepandshare.com/doc/2199086/rinzocore-txt-august-31-2010-12-10-pm-2k?da=y 
<http://www.keepandshare.com/doc/2199086/rinzocore-txt-august-31-2010-12-10-pm-2k?da=y>

Rinzo.exe :

http://www.keepandshare.com/doc/2199085/rinzo-txt-august-31-2010-12-10-pm-5k?da=y 
<http://www.keepandshare.com/doc/2199085/rinzo-txt-august-31-2010-12-10-pm-5k?da=y> 



Thanks in advance,
umanga

[Attachment #5 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<div id=":xz" class="ii gt">
<div id=":xy">
<div>Greetings all,</div>
<div><br>
</div>
<div>Please refer to the image at :</div>
<div><br>
</div>
<div><a href="http://i34.tinypic.com/30w85xt.png" \
target="_blank">http://i34.tinypic.com/<wbr>30w85xt.png</a></div> <div><br>
</div>
<div><br>
</div>
<div>I use MinGW,QT and CMake for my project.</div>
<div>As shown in the figure, my project has two modules.</div>
<div><br>
</div>
<div>*
libRinzoCore.DLL : a shared library which define some abstract classes
and interfaces and some core functionality of the application.This
module is used to implement dynamic Plugins (which are also shared
libraries which automatically loaded by the application) .</div>
<div><br>
</div>
<div>* Rinzo.exe &nbsp; &nbsp; : the main application.This uses "libRinzoCore"
classes.</div>
<div><br>
</div>
<div>"libRinzoCore" mainly developed using QT objects and link against
the QT library.</div>
<div>"Rinzo.exe" also uses QT library objects,some are not being used
in "libRinzoCore".So I have to link QT Library and "libRinzoCore" with
this executable.</div>
<div><br>
</div>
<div>I can compile "libRinzoCore" without problems and it generated two
files "libRinzoCore.DLL" and "libRinzoCore.DLL.a"</div>
<div><br>
</div>
<div>But during compiling "Rinzo.exe" it gives the following output :</div>
<div><br>
</div>
<div>Linking CXX executable Rinzo.exe</div>
<div>&nbsp;&nbsp; &nbsp;Info: resolving IRzPlugin::staticMetaObject &nbsp; &nbsp; \
&nbsp; by linking to __imp___<wbr>ZN9IRzPlugin16staticMetaObject<wbr>E \
(auto-import)</div> <div>&nbsp;&nbsp; &nbsp;Info: resolving \
IRzViewerPlugin::<wbr>staticMetaObject &nbsp; &nbsp; &nbsp; &nbsp;by linking to \
__imp___<wbr>ZN15IRzViewerPlugin16staticMet<wbr>aObjectE (auto-import)</div>
<div>&nbsp;&nbsp; &nbsp;Info: resolving IRzLayeringPlugin::<wbr>staticMetaObject \
&nbsp; &nbsp; &nbsp; &nbsp;by linking to \
__imp___<wbr>ZN17IRzLayeringPlugin16staticM<wbr>etaObjectE (auto-import)</div>
<div>&nbsp;&nbsp; &nbsp;C:\MinGW\bin\..\lib\gcc\<wbr>mingw32\3.4.5\..\..\..\..\<wbr>mingw32\bin\ld.exe:
                
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.</div>
<div>&nbsp;&nbsp; &nbsp;This should work unless it involves constant data structures
referencing symbols</div>
<div>&nbsp;&nbsp; &nbsp; from auto-imported DLLs.</div>
<div>&nbsp;&nbsp; &nbsp;[100%] Built target Rinzo</div>
<div><br>
</div>
<div><br>
</div>
<div>And when executing "Rinzo.exe" it crashes with the message (this
is a translation from Japanese error message)</div>
<div>But in linux (with GCC) this works fine.</div>
<div><br>
</div>
<div>Any tips?</div>
<div><br>
</div>
<div>PS:</div>
<span
 style="font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: \
14px; line-height: 18px;"> <p
 style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; clear: both;">Here are my \
CMake files for</p> <p
 style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; clear: both;">libRinzoCore \
:</p> <p
 style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; clear: both;"><a  \
href="http://www.keepandshare.com/doc/2199086/rinzocore-txt-august-31-2010-12-10-pm-2k?da=y"
  style="border-width: 0px; margin: 0px; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; color: rgb(0, 119, 204); \
text-decoration: none;"  \
target="_blank">http://www.keepandshare.com/<wbr>doc/2199086/rinzocore-txt-<wbr>august-31-2010-12-10-pm-2k?da=<wbr>y</a></p>
 <p
 style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; clear: both;"> Rinzo.exe \
:</p> </span>
<div><span
 style="font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: \
14px; line-height: 18px;"><a  \
href="http://www.keepandshare.com/doc/2199085/rinzo-txt-august-31-2010-12-10-pm-5k?da=y"
  style="border-width: 0px; margin: 0px; padding: 0px; font-size: 14px; \
vertical-align: baseline; background-color: transparent; color: rgb(0, 119, 204); \
text-decoration: none;"  \
target="_blank">http://www.keepandshare.com/<wbr>doc/2199085/rinzo-txt-august-<wbr>31-2010-12-10-pm-5k?da=y</a></span>&nbsp;</div>
 <div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>umanga</div>
</div>
</div>
</body>
</html>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic