[Smtk-developers] Dashboard issues?
Haocheng Liu
haocheng.liu at kitware.com
Tue Mar 28 10:06:59 EDT 2017
Hi David &TJ,
I got a good news, I think I know how to fix smtkPQOperatorViewsExt.lib
problem :) Works on Kerbin.
So here is the problem(If I understand it correctly) : C++ Linkers would
not create lib library when there are no symbols to be exported. You need
to include $PATH/Exports.h and ${module_name}_EXPORT to the proper header
file. That's why we have smtkPQOperatorVIewsExt.dll but not lib.
In This case the code would look like:
```C++
#include "smtk/extension/paraview/operators/Exports.h"
#include "smtk/extension/qt/qtBaseView.h"
#include <vtk_jsoncpp.h> // for Json::Value; must be in header due to
VTK mangling
class QColor;
class QIcon;
class smtkAssignColorsViewInternals;
class SMTKPQOPERATORVIEWSEXT_EXPORT smtkAssignColorsView : public
smtk::extension::qtBaseView
```
Credits to Ben.
On Tue, Mar 28, 2017 at 9:41 AM, David Thompson <david.thompson at kitware.com>
wrote:
> Hi TJ,
>
> I am not so good at the Windows either. And if I was, I would pretend to
> be worse. What I don't understand is why, if smtkPQOperatorViewsExt.lib
> cannot be built, is the failure only reported when it is used as a
> dependency? What target should be creating it
> (smtkPQOperatorViewsExt.dll?), and can you look at that command line and
> see if there's something wrong there?
>
> Thanks,
> David
>
> On Mar 28, 2017, at 09:01, <tj.corona at kitware.com> <tj.corona at kitware.com>
> wrote:
>
> I’m not so good at the Windows, but it looks like something has changed in
> the ParaView plugin code to prevent the construction of a
> smtkPQOperatorViewsExt.lib target. I can reproduce this on my windows
> machine:
>
>
>
> C:\Dev\cmb_sb_vs2015\superbuild\smtk\build>ninja
>
> [30/47] Linking CXX shared library bin\TestBuild_smtk_extension_
> paraview_operators.dll
>
> FAILED: bin/TestBuild_smtk_extension_paraview_operators.dll
> lib/TestBuild_smtk_extension_paraview_operators.lib
>
> cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll
> --intdir=smtk\extension\paraview\operators\CMakeFiles\
> TestBuild_smtk_extension_paraview_operators.dir --manifests --
> C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo
> @CMakeFiles/TestBuild_smtk_extension_paraview_operators.rsp
> /out:bin\TestBuild_smtk_extension_paraview_operators.dll
> /implib:lib\TestBuild_smtk_extension_paraview_operators.lib
> /pdb:bin\TestBuild_smtk_extension_paraview_operators.pdb /dll
> /version:0.0 /machine:x64 /INCREMENTAL:NO && cd ."
>
> LINK : fatal error LNK1181: cannot open input file
> 'lib\smtkPQOperatorViewsExt.lib'
>
> LINK failed. with 1181
>
> [31/47] Linking CXX shared library bin\smtkPQOperatorViewsPlugin.dll
>
> FAILED: bin/smtkPQOperatorViewsPlugin.dll lib/smtkPQOperatorViewsPlugin.
> lib
>
> cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll
> --intdir=smtk\extension\paraview\operators\CMakeFiles\smtkPQOperatorViewsPlugin.dir
> --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo
> @CMakeFiles/smtkPQOperatorViewsPlugin.rsp /out:bin\smtkPQOperatorViewsPlugin.dll
> /implib:lib\smtkPQOperatorViewsPlugin.lib /pdb:bin\smtkPQOperatorViewsPlugin.pdb
> /dll /version:0.0 /machine:x64 /INCREMENTAL:NO /MANIFEST:NO && cd ."
>
> LINK : fatal error LNK1181: cannot open input file
> 'lib\smtkPQOperatorViewsExt.lib'
>
> LINK failed. with 1181
>
> [34/47] Linking CXX shared library bin\smtkExodusSessionPlugin.dll
>
> Creating library lib\smtkExodusSessionPlugin.lib and object
> lib\smtkExodusSessionPlugin.exp
>
> [37/47] Linking CXX shared library bin\smtkPolygonQtExt.dll
>
> Creating library lib\smtkPolygonQtExt.lib and object
> lib\smtkPolygonQtExt.exp
>
> [38/47] Linking CXX shared module smtk\bridge\remote\_
> smtkPybindRemoteSession.pyd
>
> Creating library lib\_smtkPybindRemoteSession.lib and object
> lib\_smtkPybindRemoteSession.exp
>
> Generating code
>
> Finished generating code
>
> [39/47] Linking CXX shared module smtk\bridge\exodus\_
> smtkPybindExodusSession.pyd
>
> Creating library lib\_smtkPybindExodusSession.lib and object
> lib\_smtkPybindExodusSession.exp
>
> Generating code
>
> Finished generating code
>
> ninja: build stopped: subcommand failed.
>
>
>
> C:\Dev\cmb_sb_vs2015\superbuild\smtk\build>ninja
> smtkPQOperatorViewsExt.lib
>
> ninja: error: unknown target 'smtkPQOperatorViewsExt.lib', did you mean
> 'smtkPQOperatorViewsExt.dll'?
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *Haocheng Liu <haocheng.liu at kitware.com>
> *Sent: *Monday, March 27, 2017 9:21 PM
> *To: *David Thompson <david.thompson at kitware.com>
> *Cc: *smtk-developers at smtk.org
> *Subject: *Re: [Smtk-developers] Dashboard issues?
>
>
>
> Hi David,
>
>
>
> I can try to do a clean super build on the new windows dashboard machine
> Kerbin tomorrow to see if I can reproduce this problem.
>
>
>
> On Mon, Mar 27, 2017 at 6:28 PM, David Thompson <
> david.thompson at kitware.com> wrote:
>
> Hi all,
>
> I appear to have caused praxis a problem on SMTK's dashboard:
>
> https://open.cdash.org/viewBuildError.php?buildid=4827394
>
> which I cannot diagnose. (Incidentally, praxis never even tried to build
> my merge request here:
>
> https://open.cdash.org/index.php?compare1=61&filtercount=1&
> field1=revision&project=SMTK&showfilters=0&limit=100&value1=
> 9d639e4be4bc1d2650fcbac51d25738ef0d05fb7&showfeed=0
>
> ). Does anyone have an idea how to diagnose this?
>
> Thanks,
> David
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers
>
>
>
>
>
> --
>
> Best regards
>
> Haocheng
>
>
>
> Haocheng LIU
>
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4421 <(518)%20881-4421>
>
>
>
>
--
Best regards
Haocheng
Haocheng LIU
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4421 <(518)%20881-4421>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20170328/5f14b4f6/attachment.html>
More information about the Smtk-developers
mailing list