From pinter at cs.queensu.ca Thu Jul 12 15:26:55 2012 From: pinter at cs.queensu.ca (Csaba Pinter) Date: Thu, 12 Jul 2012 11:26:55 -0400 Subject: [Ctk-developers] Recently added #include prevents building on Windows7 with VS2008 Message-ID: <4FFEECBF.8040803@cs.queensu.ca> Hi all, A commit from two days ago introduced a build error in CTK on my machine (Win7, VS2008, http://slicer.cdash.org/viewBuildError.php?buildid=27825): https://github.com/commontk/CTK/commit/9dd5828465db1e93851042d10a1b5a80e52a8309 The same build error occurs on other machines too, for example on District9.kitware: http://slicer.cdash.org/viewBuildError.php?buildid=27782 The first line from the following code snippet causes the problem. However, this include happens a few lines below if a macro is defined. Instead of including unistd.h in every case, this macro should be further investigated. *#include * // STD includes #include // For _fileno or fileno #ifdef _MSC_VER # include // For _write() #else # *include * #endif Thank you, csaba -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Jul 12 16:01:17 2012 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 12 Jul 2012 12:01:17 -0400 Subject: [Ctk-developers] Recently added #include prevents building on Windows7 with VS2008 In-Reply-To: <4FFEECBF.8040803@cs.queensu.ca> References: <4FFEECBF.8040803@cs.queensu.ca> Message-ID: Hi Csaba, Thanks for reporting the problem, I just created an issue to track it. See https://github.com/commontk/CTK/issues/192 I suggest that further discussion related to that problem happen on the tracker. Hth Jc On Thu, Jul 12, 2012 at 11:26 AM, Csaba Pinter wrote: > Hi all, > > A commit from two days ago introduced a build error in CTK on my machine > (Win7, VS2008, http://slicer.cdash.org/viewBuildError.php?buildid=27825): > > https://github.com/commontk/CTK/commit/9dd5828465db1e93851042d10a1b5a80e52a8309 > > The same build error occurs on other machines too, for example on > District9.kitware: > http://slicer.cdash.org/viewBuildError.php?buildid=27782 > > The first line from the following code snippet causes the problem. > However, this include happens a few lines below if a macro is defined. > Instead of including unistd.h in every case, this macro should be further > investigated. > > *#include * > > // STD includes > #include // For _fileno or fileno > #ifdef _MSC_VER > # include // For _write() > #else > # *include * > #endif > > > Thank you, > csaba > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pinter at cs.queensu.ca Thu Jul 12 17:57:22 2012 From: pinter at cs.queensu.ca (Csaba Pinter) Date: Thu, 12 Jul 2012 13:57:22 -0400 Subject: [Ctk-developers] Recently added #include prevents building on Windows7 with VS2008 In-Reply-To: References: <4FFEECBF.8040803@cs.queensu.ca> Message-ID: <4FFF1002.2020409@cs.queensu.ca> Hi all, I tried to build CTK with the fix, but I bumped into another error. I created an issue: https://github.com/commontk/CTK/issues/193 Sorry, but I can go one error a time. Thanks, csaba On 7/12/2012 12:01, Jean-Christophe Fillion-Robin wrote: > Hi Csaba, > > Thanks for reporting the problem, I just created an issue to track it. > See https://github.com/commontk/CTK/issues/192 > > I suggest that further discussion related to that problem happen on > the tracker. > > Hth > Jc > > On Thu, Jul 12, 2012 at 11:26 AM, Csaba Pinter > wrote: > > Hi all, > > A commit from two days ago introduced a build error in CTK on my > machine (Win7, VS2008, > http://slicer.cdash.org/viewBuildError.php?buildid=27825): > https://github.com/commontk/CTK/commit/9dd5828465db1e93851042d10a1b5a80e52a8309 > > The same build error occurs on other machines too, for example on > District9.kitware: > http://slicer.cdash.org/viewBuildError.php?buildid=27782 > > The first line from the following code snippet causes the problem. > However, this include happens a few lines below if a macro is > defined. Instead of including unistd.h in every case, this macro > should be further investigated. > > *#include * > > // STD includes > #include // For _fileno or fileno > #ifdef _MSC_VER > # include // For _write() > #else > # *include * > #endif > > > Thank you, > csaba > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > -- > +1 919 869 8849 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix.morency at gmail.com Thu Jul 12 20:44:24 2012 From: felix.morency at gmail.com (=?UTF-8?Q?F=C3=A9lix_C=2E_Morency?=) Date: Thu, 12 Jul 2012 16:44:24 -0400 Subject: [Ctk-developers] Python wrapper Message-ID: Hi, First, thank you for sharing such a great piece of software. I'm writing to you because I want to know if you have any plans on developing Python wrapper for CTK? I would really like to be able to use your widget in, say, a PySide application. Regards, -- F?lix C. Morency, M.Sc. Plateforme d?analyse et de visualisation d?images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique ?tienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634 From jchris.fillionr at kitware.com Thu Jul 12 23:04:06 2012 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 12 Jul 2012 19:04:06 -0400 Subject: [Ctk-developers] Python wrapper In-Reply-To: References: Message-ID: Hi Felix, Thanks for kind compliment and your interest in CTK :) When configuring CTK, if you enable the following two options: CTK_BUILD_EXAMPLES CTK_ENABLE_Python_Wrapping an example application named "ctkSimplePythonShell" will then be built. Assuming you are unix-like platform, you could then simply run the application using: ./bin/ctkSimplePythonShell See enclosed screenshot for an illustration. Currently, CTK objects and widgets are "wrapped" leveraging PythonQt, I am not sure how it could be integrated with PySide or PyQt. To learn more about PythonQt: https://github.com/commontk/PythonQt#readme All steps together: git clone git://github.com/commontk/CTK.git && \ mkdir CTK-build && \ cd CTK-build && \ cmake -DCTK_ENABLE_Python_Wrapping:BOOL=ON -DCTK_BUILD_EXAMPLES:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/jchris/Projects/QtSDK-1.2/Desktop/Qt/474/gcc/bin/qmake ../CTK && \ make -j4 && \ cd CTK-build && \ ./bin/ctkSimplePythonShell Then, within the console, you should be able to run the following command: import ctk w = ctk.ctkColorDialog() w.show() If running ccmake or cmake-gui, you could also display the list of advanced options and enable the following one: CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI You will then be able to run command like: import qt b = qt.QPushButton("Ciao") b.show() There is also possibility of interfacing CTK PythonQt and VTK by enabling: CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK Let me us know if you have additional questions. Thanks Jc On Thu, Jul 12, 2012 at 4:44 PM, F?lix C. Morency wrote: > Hi, > > First, thank you for sharing such a great piece of software. I'm > writing to you because I want to know if you have any plans on > developing Python wrapper for CTK? I would really like to be able to > use your widget in, say, a PySide application. > > Regards, > -- > F?lix C. Morency, M.Sc. > Plateforme d?analyse et de visualisation d?images > Centre Hospitalier Universitaire de Sherbrooke > Centre de recherche clinique ?tienne-Le Bel > Local Z5-3031 | 819.346.1110 ext 16634 > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CTK-ctkSimplePythonShell-e883332.png Type: image/png Size: 170495 bytes Desc: not available URL: From felix.morency at gmail.com Mon Jul 16 14:13:15 2012 From: felix.morency at gmail.com (=?UTF-8?Q?F=C3=A9lix_C=2E_Morency?=) Date: Mon, 16 Jul 2012 10:13:15 -0400 Subject: [Ctk-developers] Python wrapper In-Reply-To: References: Message-ID: Jean-Christophe, Thank you for your answer. I've been able to build and run CTK successfully. From my understanding, PythonQt has the purpose of bringing Python scripting capabilities to an existing Qt/C++ application. On the other hand, PyQt/PySide applications are (entirely) built using Python. Therefore, I think we have to bind CTK using SIP (PyQt) or Shiboken (PySide) in order to use CTK widgets directly from PyQt/PySide. Regards, -Felix On Thu, Jul 12, 2012 at 7:04 PM, Jean-Christophe Fillion-Robin wrote: > Hi Felix, > > Thanks for kind compliment and your interest in CTK :) > > When configuring CTK, if you enable the following two options: > > CTK_BUILD_EXAMPLES > CTK_ENABLE_Python_Wrapping > > an example application named "ctkSimplePythonShell" will then be built. > > Assuming you are unix-like platform, you could then simply run the > application using: > > ./bin/ctkSimplePythonShell > > See enclosed screenshot for an illustration. > > Currently, CTK objects and widgets are "wrapped" leveraging PythonQt, I am > not sure how it could be integrated with PySide or PyQt. > > To learn more about PythonQt: https://github.com/commontk/PythonQt#readme > > All steps together: > > git clone git://github.com/commontk/CTK.git && \ > mkdir CTK-build && \ > cd CTK-build && \ > cmake -DCTK_ENABLE_Python_Wrapping:BOOL=ON -DCTK_BUILD_EXAMPLES:BOOL=ON > -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/jchris/Projects/QtSDK-1.2/Desktop/Qt/474/gcc/bin/qmake > ../CTK && \ > make -j4 && \ > cd CTK-build && \ > ./bin/ctkSimplePythonShell > > > Then, within the console, you should be able to run the following command: > > import ctk > > w = ctk.ctkColorDialog() > > w.show() > > > If running ccmake or cmake-gui, you could also display the list of advanced > options and enable the following one: > > CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE > CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI > > You will then be able to run command like: > > import qt > b = qt.QPushButton("Ciao") > b.show() > > There is also possibility of interfacing CTK PythonQt and VTK by enabling: > > CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK > > > Let me us know if you have additional questions. > > Thanks > Jc > > > On Thu, Jul 12, 2012 at 4:44 PM, F?lix C. Morency > wrote: >> >> Hi, >> >> First, thank you for sharing such a great piece of software. I'm >> writing to you because I want to know if you have any plans on >> developing Python wrapper for CTK? I would really like to be able to >> use your widget in, say, a PySide application. >> >> Regards, >> -- >> F?lix C. Morency, M.Sc. >> Plateforme d?analyse et de visualisation d?images >> Centre Hospitalier Universitaire de Sherbrooke >> Centre de recherche clinique ?tienne-Le Bel >> Local Z5-3031 | 819.346.1110 ext 16634 >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > -- > +1 919 869 8849 > -- -- F?lix C. Morency, M.Sc. Plateforme d?analyse et de visualisation d?images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique ?tienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634 From pieper at ibility.net Mon Jul 16 14:34:10 2012 From: pieper at ibility.net (Steve Pieper) Date: Mon, 16 Jul 2012 10:34:10 -0400 Subject: [Ctk-developers] Python wrapper In-Reply-To: References: Message-ID: Hi Felix - Agreed - it would be great to have be able to import CTK into a standard python interpreter. Perhaps you can contribute code for that? :) By way of background, PySide did not exist when CTK chose to use PythonQt. PyQt was (and still is, I believe) only available under GPL or commercial licenses. PythonQt is licensed under LGPL and suited our needs well. Now that PySide exists, using it with CTK should be possible but I don't think anyone has looked in detail at it. -Steve On Mon, Jul 16, 2012 at 10:13 AM, F?lix C. Morency wrote: > Jean-Christophe, > > Thank you for your answer. I've been able to build and run CTK > successfully. From my understanding, PythonQt has the purpose of > bringing Python scripting capabilities to an existing Qt/C++ > application. On the other hand, PyQt/PySide applications are > (entirely) built using Python. Therefore, I think we have to bind CTK > using SIP (PyQt) or Shiboken (PySide) in order to use CTK widgets > directly from PyQt/PySide. > > Regards, > -Felix > > On Thu, Jul 12, 2012 at 7:04 PM, Jean-Christophe Fillion-Robin > wrote: >> Hi Felix, >> >> Thanks for kind compliment and your interest in CTK :) >> >> When configuring CTK, if you enable the following two options: >> >> CTK_BUILD_EXAMPLES >> CTK_ENABLE_Python_Wrapping >> >> an example application named "ctkSimplePythonShell" will then be built. >> >> Assuming you are unix-like platform, you could then simply run the >> application using: >> >> ./bin/ctkSimplePythonShell >> >> See enclosed screenshot for an illustration. >> >> Currently, CTK objects and widgets are "wrapped" leveraging PythonQt, I am >> not sure how it could be integrated with PySide or PyQt. >> >> To learn more about PythonQt: https://github.com/commontk/PythonQt#readme >> >> All steps together: >> >> git clone git://github.com/commontk/CTK.git && \ >> mkdir CTK-build && \ >> cd CTK-build && \ >> cmake -DCTK_ENABLE_Python_Wrapping:BOOL=ON -DCTK_BUILD_EXAMPLES:BOOL=ON >> -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/jchris/Projects/QtSDK-1.2/Desktop/Qt/474/gcc/bin/qmake >> ../CTK && \ >> make -j4 && \ >> cd CTK-build && \ >> ./bin/ctkSimplePythonShell >> >> >> Then, within the console, you should be able to run the following command: >> >> import ctk >> >> w = ctk.ctkColorDialog() >> >> w.show() >> >> >> If running ccmake or cmake-gui, you could also display the list of advanced >> options and enable the following one: >> >> CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE >> CTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI >> >> You will then be able to run command like: >> >> import qt >> b = qt.QPushButton("Ciao") >> b.show() >> >> There is also possibility of interfacing CTK PythonQt and VTK by enabling: >> >> CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK >> >> >> Let me us know if you have additional questions. >> >> Thanks >> Jc >> >> >> On Thu, Jul 12, 2012 at 4:44 PM, F?lix C. Morency >> wrote: >>> >>> Hi, >>> >>> First, thank you for sharing such a great piece of software. I'm >>> writing to you because I want to know if you have any plans on >>> developing Python wrapper for CTK? I would really like to be able to >>> use your widget in, say, a PySide application. >>> >>> Regards, >>> -- >>> F?lix C. Morency, M.Sc. >>> Plateforme d?analyse et de visualisation d?images >>> Centre Hospitalier Universitaire de Sherbrooke >>> Centre de recherche clinique ?tienne-Le Bel >>> Local Z5-3031 | 819.346.1110 ext 16634 >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> >> >> >> >> -- >> +1 919 869 8849 >> > > > > -- > -- > F?lix C. Morency, M.Sc. > Plateforme d?analyse et de visualisation d?images > Centre Hospitalier Universitaire de Sherbrooke > Centre de recherche clinique ?tienne-Le Bel > Local Z5-3031 | 819.346.1110 ext 16634 > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From tj1997 at gmail.com Wed Jul 18 09:33:07 2012 From: tj1997 at gmail.com (zongtao zhou) Date: Wed, 18 Jul 2012 17:33:07 +0800 Subject: [Ctk-developers] Is there a guide on how to compile CTK on windows with VC9/10? Message-ID: I am new to CTK, I got cmake 2.8.4, Qt 4.8.2, and Python 3.2.3 installed on windows 7. I generated the CTK.sln for VC10 with cmake, but I never succeeded in building it. So, can anybody tell me, is there a guide on how to compile CTK on windows with VC9/10? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Jul 19 19:51:41 2012 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 19 Jul 2012 15:51:41 -0400 Subject: [Ctk-developers] Topic based workflow Message-ID: Hi Folks, >From now, I would recommend we start to use a topic based workflow. See http://www.commontk.org/index.php/Contributing_to_CTK It means that issuing the command "git log --first-parent" should just list merge commits. Thanks Jc -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Wed Jul 25 21:21:54 2012 From: julien.finet at kitware.com (Julien Finet) Date: Wed, 25 Jul 2012 14:21:54 -0700 Subject: [Ctk-developers] Is there a guide on how to compile CTK on windows with VC9/10? In-Reply-To: References: Message-ID: Hi Zongtao, Here are the build instructions: http://www.commontk.org/index.php/Build_Instructions If it fails to build, please send an email with the error log. Hth, Julien. On Wed, Jul 18, 2012 at 2:33 AM, zongtao zhou wrote: > I am new to CTK, I got cmake 2.8.4, Qt 4.8.2, and Python 3.2.3 installed > on windows 7. I generated the CTK.sln for VC10 with cmake, but I never > succeeded in building it. So, can anybody tell me, is there a guide on how > to compile CTK on windows with VC9/10? > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: