[vtkusers] Re : Qt + VTK application: build distribution

Miguel Sotaquira msotaquira at gmail.com
Sat Apr 7 13:45:06 EDT 2012


Ok, thanks a lot! CPack was the way to go...

I've also modified my CMakeLists.txt on Windows in order to link only the
vtk/Qt libraries I'm really needing (see
http://stackoverflow.com/questions/10022993/cmake-build-cross-platform-distributionfor
details)

Miguel

On Thu, Apr 5, 2012 at 11:08 AM, Mériadeg Perrinel <meriadegp at yahoo.fr>wrote:

> Ok, you have many possibilites :
>
> From Linux or Mac Os to Windows, you can "cross compile" with a good cpack
> configuration ( so of course include CPack at the end of ohter CPack
> variables configurations like CPack_Generator of your CMakeLists.txt)
> And use NSIS. You can esealy find example ont the net...
>
> From Windows for Windows :
> You have to install first NSIS and put on the path make (of the compiler
> use by the project)... But that should work too.
> Or create a SLN from CMake and open it with visual and so use the MSI
> package installer that are very easy to use.
>
>
> cmake ; make ; cpack
>
>
> ++
>   ------------------------------
> *De :* Miguel Sotaquira <msotaquira at gmail.com>
> *À :* "meriadegp at yahoo.fr" <meriadegp at yahoo.fr>
> *Envoyé le :* Mercredi 4 avril 2012 21h43
> *Objet :* Re: [vtkusers] Qt + VTK application: build distribution
>
> Ok, just to get it right the steps on my Windows machine would be:
>
> 1. Build Qt and VTK with static libraries
> 2. Include CPack in my CMakeLists.txt file
> 3. Build
>
> is this right?
>
> Thanks,
> Miguel
>
> On Wed, Apr 4, 2012 at 9:34 PM, meriadegp at yahoo.fr <meriadegp at yahoo.fr>wrote:
>
> Hi, yes cpack is a good way for that, you need to link your apli with qt
> and vtk builded in static, if you don,t want to ask the user for install
> them, see tuto for conviburing cmake
> Envoyé depuis mon téléphone Nokia
> -----Message d'origine-----
> De: Miguel Sotaquira
> Envoyé: 04/04/2012, 20:00
> A: vtkusers at vtk.org
> Objet: [vtkusers] Qt + VTK application: build distribution
>
>
> Hi everyone,
>
> I have an application that I've written and built on Mac OS X that uses Qt
> and VTK libraries.
>
> Now I want to create a distribution, a self-contained package that it is
> supposed to run on Windows without needing to have Qt or VTK pre-installed.
> How can I proceed?
>
> A web search points at using CPack in the CMakeLists file, but I don't know
> if this is the right direction. An example will be appreciated.
>
> Thanks,
>
> Miguel
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120407/373a6307/attachment.htm>


More information about the vtkusers mailing list