From dclunie at dclunie.com Thu Aug 1 14:58:43 2013 From: dclunie at dclunie.com (David Clunie) Date: Thu, 01 Aug 2013 10:58:43 -0400 Subject: [Ctk-developers] CTK, color consistency and ICC profiles (and recent color summit) Message-ID: <51FA77A3.9010908@dclunie.com> Hi all I was wondering if any CTK developers had any particularly interest in color consistency, management and in particular the use of ICC profiles and color calibrated displays. Since DICOM images can (though don't often) contain embedded ICC profiles, and each image may contain a different profile, to display these side-by-side consistently would require CTK to take this into account (e.g., like Photoshop does). Other requirements might include when importing non-DICOM files like JPEGs, if any ICC profile is embedded in the JPEG bitstream, it should be accounted for. Likewise, color images generated in CTK and saved, regardless of format, should probably be tagged with an appropriate ICC profile, if the format permits it. We recently had a summit on the subject, the presentations and the recordings of which are available at: http://www.color.org/events/medical/presentations.xalter http://www.color.org/events/medical/medical_summit_2013.xalter http://www.color.org/events/medical/medical_summit_2013_abstracts.xalter http://www.fda.gov/MedicalDevices/NewsEvents/WorkshopsConferences/ucm342138.htm There is also a new ICC Medical Imaging Working Group: http://www.color.org/groups/medical_imaging_wg.xalter David PS. I sent a similar message to the VTK list, so to the extent that VTK were to implement color management, CTK would presumably inherit it. From espakm at gmail.com Mon Aug 5 14:25:52 2013 From: espakm at gmail.com (Miklos Espak) Date: Mon, 5 Aug 2013 15:25:52 +0100 Subject: [Ctk-developers] Quazip, zlib dependency Message-ID: Hi, we discussed in December that Quazip could be used as an external project of CTK for zip support, e.g. for the XNAT plugin. Sascha set up a CMake file that pulls it and builds it as an external project. It works fine on Linux and Mac, but not on Windows, because Quazip depends on zlib that is not installed on Windows systems by default. So the question is, how to handle this situation? Should CTK build also zlib as an external project, or we can say that zlib must be installed on the system? Currently, the zip/unzip functionality of our XNAT plugin has not been pulled up to CTK, it is done in our application. Should it be kept like this? If yes, the question is irrelevant. What do you suggest? Cheers, Miklos -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Mon Aug 5 15:32:57 2013 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Mon, 5 Aug 2013 11:32:57 -0400 Subject: [Ctk-developers] Quazip, zlib dependency In-Reply-To: References: Message-ID: Hi, Makes sense. On windows, zlib could be superbuild by CTK. It is already CMake'ified and available within the commontk organization. You could look here for an example of external project: https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_zlib.cmake Hth Jc On Mon, Aug 5, 2013 at 10:25 AM, Miklos Espak wrote: > Hi, > > we discussed in December that Quazip could be used as an external project > of CTK for zip support, e.g. for the XNAT plugin. Sascha set up a CMake > file that pulls it and builds it as an external project. > > It works fine on Linux and Mac, but not on Windows, because Quazip depends > on zlib that is not installed on Windows systems by default. > > So the question is, how to handle this situation? Should CTK build also > zlib as an external project, or we can say that zlib must be installed on > the system? > > Currently, the zip/unzip functionality of our XNAT plugin has not been > pulled up to CTK, it is done in our application. Should it be kept like > this? If yes, the question is irrelevant. > > What do you suggest? > > Cheers, > Miklos > > > _______________________________________________ > 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 espakm at gmail.com Mon Aug 5 16:06:22 2013 From: espakm at gmail.com (Miklos Espak) Date: Mon, 5 Aug 2013 17:06:22 +0100 Subject: [Ctk-developers] Quazip, zlib dependency In-Reply-To: References: Message-ID: Cool! I give it a try. Thanks, Miklos -------------- next part -------------- An HTML attachment was scrubbed... URL: From espakm at gmail.com Mon Aug 5 18:16:07 2013 From: espakm at gmail.com (Miklos Espak) Date: Mon, 5 Aug 2013 19:16:07 +0100 Subject: [Ctk-developers] Quazip, zlib dependency In-Reply-To: References: Message-ID: Hi Jc, I added zlib as an external project and it builds fine, but there are two issues. The first is that QuaZip is still linked against the zlib in the system. The second is that I get the following error at the CTK configure step (after zlib and QuaZip has been built). -------------------------------------------------------------------------------------------- CMake Error at CMakeLists.txt:891 (find_package): By not providing "Findzlib.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "zlib", but CMake did not find one. Could not find a package configuration file provided by "zlib" with any of the following names: zlibConfig.cmake zlib-config.cmake Add the installation prefix of "zlib" to CMAKE_PREFIX_PATH or set "zlib_DIR" to a directory containing one of the above files. If "zlib" provides a separate development package or SDK, be sure it has been installed. -------------------------------------------------------------------------------------------- As I see, there is no zlibConfig.cmake in the cmake-ified project, but I guess you can build Slicer in spite of this. What is the trick? :) Cheers, Miklos -------------- next part -------------- An HTML attachment was scrubbed... URL: From pieper at ibility.net Sat Aug 17 21:42:55 2013 From: pieper at ibility.net (Steve Pieper) Date: Sat, 17 Aug 2013 17:42:55 -0400 Subject: [Ctk-developers] CTK Hackfest - London - 4th Nov 2013 - WIKI page In-Reply-To: <952E305C-1099-4020-AD40-B87059D8BC91@live.ucl.ac.uk> References: <952E305C-1099-4020-AD40-B87059D8BC91@live.ucl.ac.uk> Message-ID: Hi Everyone - It looks like we're getting a critical mass of attendees for the London hackfest - remember to get your travel arrangement made and add your name to the Attendees table on the wiki page. If you can't be there in person but want to participate, add your name to the table of google hangout participants. We'll set up hangouts like we did for the Kingston hackfest. Cheers! -Steve On Mon, Jun 17, 2013 at 11:24 AM, Clarkson, Matt wrote: > Hi Steve, > > hope you are well. I just created the Wiki page for the London hackfest. > http://www.commontk.org/index.php/CTK-Hackfest-Nov-2013 > > Please could interested people sign up! > I will also try and get more hotel options. > > Matt > > > > On 20 May 2013, at 17:29, Steve Pieper wrote: > > Hi Matt, Miklos - > > Greetings from Kingston! Since we have a quorum of CTK developers here > we reviewed the London idea and it looks like it will work for people. > Want to start up a wiki page with some of the details so people can start > planning? > > To economize there was a question about maybe getting a apartment of > something that people to share (airbnb?). > > Thanks for organizing! > > -Steve > > > On Fri, May 17, 2013 at 5:27 AM, Clarkson, Matt wrote: > >> Dear CTK Developers >> >> We would like to organise a CTK Hackfest in London, UK. >> >> As a proposal, how about: >> >> Date: 4th Nov - 8th Nov, 2013 >> >> Location: Room 2.14, Malet Place Engineering Building, UCL. >> http://goo.gl/maps/2encP >> >> Best bet for a reasonably priced hotel: The Tavistock Hotel >> http://goo.gl/maps/DM7Hd >> >> Please can people reply to indicate their interest. We have a room >> booked, and the proposed week is preferable for us as it is a reading week. >> However, if the date is not suitable for too many people, then maybe we can >> re-think. >> >> If we get enough people, then maybe we can also try and get a better >> hotel rate. >> >> Thanks >> >> Matt and Miklos >> >> ------------------------------------------------------ >> Matt Clarkson Ph.D. >> CMIC Software Manager >> Senior Research Associate >> m.clarkson at ucl.ac.uk >> Skype: drmattclarkson >> >> Centre For Medical Image Computing >> http://cmic.cs.ucl.ac.uk/staff/matt_clarkson/ >> Tel: 020 7679 0257 >> Fax: 020 7679 0255 >> Room: 2.21 Malet Place Engineering Building >> >> Dementia Research Centre >> http://dementia.ion.ucl.ac.uk/ >> Fax: 020 7676 2066 >> ------------------------------------------------------ >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> 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: From joseignacio.prieto at gmail.com Tue Aug 20 20:47:51 2013 From: joseignacio.prieto at gmail.com (Jose Ignacio Prieto) Date: Tue, 20 Aug 2013 16:47:51 -0400 Subject: [Ctk-developers] ctkDICOMBrowser In-Reply-To: References: Message-ID: Hi all, I was working in other areas of my project and now I would like to retake CTK. I have a simple qt+vtk+itk example. I want to add the double slider widget. How can I cmake that? If you have an example that would be great, I haven't found any. Thanks Ignacio On Tue, Jul 9, 2013 at 8:04 PM, Steve Pieper wrote: > Hi Jose - > > The pieces in ctk are maybe best used by mixing and matching at the widget > level to get the behavior you are looking for at the application level. > The ctkDICOM application uses a single ctkDICOMAppWidget which puts them > together in a particular way that is integrated into Slicer and MITK, but > with some customizations on both implementations (let us know if you want > pointers to the code). > > You can find the dicom-specific widgets and the other pieces, like the > date range, search boxes, etc in the widget gallery [1]. > > Note that the ctkDICOMBrowser is a newer work-in-progress that addresses > some of the limitations we found with the older code. We were just working > on it a month or so ago [2] so it may or may not be ready to drop into your > application. > > Note that the browsers (older and newer) is meant to be used with a > ctkDICOMDatabase, so it's an import step followed by a browse step, not > just a file browser. > > Hope ctk is useful for you - feel free to make suggestions as you > investigate, > -Steve > > [1] http://www.commontk.org/index.php/Documentation/ImageGallery > > [2] > http://www.commontk.org/index.php/CTK-Hackfest-May-2013#DICOM_Database_and_Networking > > > On Tue, Jul 9, 2013 at 11:11 AM, Jose Ignacio Prieto < > joseignacio.prieto at gmail.com> wrote: > >> Hi, I hope this is the correct mailing list because I didn't see any >> ctk-users... >> >> I am trying to implement the ctk dicom browser in my application, >> replacing my old qt+itk+gdcm file browser. I want it to start from a button >> signal in my app, what should I do? Should I inherit ctkDICOMBrowser or >> ctkDICOMBrowserPrivate? I don't want to use the plugin framework from ctk. >> >> Thank you very much. >> >> Jose >> -- >> Jos? Ignacio Prieto >> celular(nuevo): 94348182 >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> >> > -- Jos? Ignacio Prieto celular(nuevo): 94348182 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Wed Aug 21 15:14:36 2013 From: julien.finet at kitware.com (Julien Finet) Date: Wed, 21 Aug 2013 11:14:36 -0400 Subject: [Ctk-developers] ctkDICOMBrowser In-Reply-To: References: Message-ID: Hi Jose, Have you looked at http://www.commontk.org/index.php/Getting_Started ? There is a link to an example of integration. Hth, Julien. On Tue, Aug 20, 2013 at 4:47 PM, Jose Ignacio Prieto < joseignacio.prieto at gmail.com> wrote: > Hi all, I was working in other areas of my project and now I would like to > retake CTK. I have a simple qt+vtk+itk example. I want to add the double > slider widget. How can I cmake that? If you have an example that would be > great, I haven't found any. > Thanks > Ignacio > > > On Tue, Jul 9, 2013 at 8:04 PM, Steve Pieper wrote: > >> Hi Jose - >> >> The pieces in ctk are maybe best used by mixing and matching at the >> widget level to get the behavior you are looking for at the application >> level. The ctkDICOM application uses a single ctkDICOMAppWidget which puts >> them together in a particular way that is integrated into Slicer and MITK, >> but with some customizations on both implementations (let us know if you >> want pointers to the code). >> >> You can find the dicom-specific widgets and the other pieces, like the >> date range, search boxes, etc in the widget gallery [1]. >> >> Note that the ctkDICOMBrowser is a newer work-in-progress that addresses >> some of the limitations we found with the older code. We were just working >> on it a month or so ago [2] so it may or may not be ready to drop into your >> application. >> >> Note that the browsers (older and newer) is meant to be used with a >> ctkDICOMDatabase, so it's an import step followed by a browse step, not >> just a file browser. >> >> Hope ctk is useful for you - feel free to make suggestions as you >> investigate, >> -Steve >> >> [1] http://www.commontk.org/index.php/Documentation/ImageGallery >> >> [2] >> http://www.commontk.org/index.php/CTK-Hackfest-May-2013#DICOM_Database_and_Networking >> >> >> On Tue, Jul 9, 2013 at 11:11 AM, Jose Ignacio Prieto < >> joseignacio.prieto at gmail.com> wrote: >> >>> Hi, I hope this is the correct mailing list because I didn't see any >>> ctk-users... >>> >>> I am trying to implement the ctk dicom browser in my application, >>> replacing my old qt+itk+gdcm file browser. I want it to start from a button >>> signal in my app, what should I do? Should I inherit ctkDICOMBrowser or >>> ctkDICOMBrowserPrivate? I don't want to use the plugin framework from ctk. >>> >>> Thank you very much. >>> >>> Jose >>> -- >>> Jos? Ignacio Prieto >>> celular(nuevo): 94348182 >>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > _______________________________________________ > 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: From joseignacio.prieto at gmail.com Wed Aug 21 18:10:59 2013 From: joseignacio.prieto at gmail.com (Jose Ignacio Prieto) Date: Wed, 21 Aug 2013 14:10:59 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner Message-ID: Hi, this is a simple question. I am trying to add CTK widgets to QT Designer as said in http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then installed in /opt/qt folder (in ubuntu). I copied CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't work. What can I do? Thanks Ignacio -- Jos? Ignacio Prieto celular(nuevo): 94348182 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Wed Aug 21 18:20:34 2013 From: julien.finet at kitware.com (Julien Finet) Date: Wed, 21 Aug 2013 14:20:34 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: When you are in Qt Designer, what does the "Help -> About Plugin" dialog says? Any error message for the CTK plugins? The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... to be able to load in Qt Designer. You can copy them in /opt/qt/plugins/designer, you can create symbolic links (should probably be the best solution here) or you can set the LD_LIBRARY_PATH env variable. When you get it to work (feel free to ask more questions if you are blocked), can I ask you for a favor? Can you please update the CTK wiki with instructions to get CTK widgets within QtDesigner? Extending the Getting started wiki page would be a good start. Thanks, Julien. On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < joseignacio.prieto at gmail.com> wrote: > Hi, this is a simple question. I am trying to add CTK widgets to QT > Designer as said in > http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then > installed in /opt/qt folder (in ubuntu). I copied > CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't > work. > What can I do? > > Thanks > > Ignacio > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > _______________________________________________ > 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: From matt.mccormick at kitware.com Thu Aug 22 05:08:00 2013 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 22 Aug 2013 01:08:00 -0400 Subject: [Ctk-developers] SlicerExecutionModel pull request: Parameter Serializer Message-ID: Hi, I have created a pull request for the SlicerExecutionModel that could use review [1]. This feature, which can optionally be enabled via CMake, adds serialization/deserialization via JSON files capabilities to CLI's. >From the pull request: Motivation ---------- The ability to store, restore, and programmatically manipulate algorithm parameters has many benefits. The set of parameters used in an analysis can be archived for future reference or shared for reproducibility purposes. A collection of parameter sets tuned for particular types of input data can be stored and restored. If a standard file format with libraries easily accessible across programming languages is used to serialize the parameters, automated exploration of the parameter space is possible. This branch adds command line flags to serialize and deserialize the parameters used by the Command Line Interface (CLI) in the JSON_ file format. Building -------- Check out the *ParameterSerializer* branch of this repository. During CMake configuration, set *SlicerExecutionModel_USE_SERIALIZER* to *ON* and the build paths to the jsoncpp-cmake_ and ParameterSerializer_ projects with *JsonCpp_DIR* and *ParameterSerializer_DIR*. Implementation -------------- Two new flags will be automatically added to all CLI's: 1) --serialize 2) --deserialize The *--serialize* flag specifies the path to a JSON file where all the parameters used in the current analysis will be **archived**. The *--deserialize* flag specifies the path to a JSON file created by the *--parametersarchive* in a previous execution. Parameters from the previous execution will then be **restored** for the current analysis. While the layout of the JSON file reflects the self-descriptive metadata of the CLI XML file, it also contains *Value* entries for each parameter. Since parameters can be specified in different ways, an order of precedence determines which specification is used in the analysis. This order is, from highest to lowest: 1) Command line arguments. 2) Parameters restored from the JSON file. 3) The default parameter value in the CLI XML file. Required parameters, such as positional arguments, must always be specified on the command line even if `--deserialize` is given. Your feedback is welcome. Thanks, Matt [1] https://github.com/Slicer/SlicerExecutionModel/pull/20 From joseignacio.prieto at gmail.com Fri Aug 23 14:16:49 2013 From: joseignacio.prieto at gmail.com (Jose Ignacio Prieto) Date: Fri, 23 Aug 2013 10:16:49 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: Hi, I am still not able to do it. I think my qtcreator was installed (I don't remember) from debian package but built from source. When I "locate" qtcreator appers in /usr/lib... so I copied all the CTK .so files in /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ where I can see other nokia plugins. Is it correct? On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet wrote: > When you are in Qt Designer, what does the "Help -> About Plugin" dialog > says? Any error message for the CTK plugins? > > The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... to > be able to load in Qt Designer. > You can copy them in /opt/qt/plugins/designer, you can create symbolic > links (should probably be the best solution here) or you can set the > LD_LIBRARY_PATH env variable. > > When you get it to work (feel free to ask more questions if you are > blocked), can I ask you for a favor? Can you please update the CTK wiki > with instructions to get CTK widgets within QtDesigner? Extending the > Getting started wiki page would be a good start. > > Thanks, > Julien. > > > > On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < > joseignacio.prieto at gmail.com> wrote: > >> Hi, this is a simple question. I am trying to add CTK widgets to QT >> Designer as said in >> http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then >> installed in /opt/qt folder (in ubuntu). I copied >> CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't >> work. >> What can I do? >> >> Thanks >> >> Ignacio >> >> -- >> Jos? Ignacio Prieto >> celular(nuevo): 94348182 >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> >> > -- Jos? Ignacio Prieto celular(nuevo): 94348182 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseignacio.prieto at gmail.com Fri Aug 23 14:37:34 2013 From: joseignacio.prieto at gmail.com (Jose Ignacio Prieto) Date: Fri, 23 Aug 2013 10:37:34 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: I partially did it. I tried using http://qt-project.org/doc/qtcreator-2.6/adding-plugins.html and I opened /opt/qt-4.8.4/bin/qtdesigner and I could see CTK plugins. But from normal qtcreator (/usr...) I cannot see them not load a ctk form previouly made in qtdesigner. I am using qt creator 2.4.1, is that the problem? On Fri, Aug 23, 2013 at 10:16 AM, Jose Ignacio Prieto < joseignacio.prieto at gmail.com> wrote: > Hi, I am still not able to do it. I think my qtcreator was installed (I > don't remember) from debian package but built from source. When I "locate" > qtcreator appers in /usr/lib... so I copied all the CTK .so files in > /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ where I can see other nokia > plugins. Is it correct? > > > On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet wrote: > >> When you are in Qt Designer, what does the "Help -> About Plugin" dialog >> says? Any error message for the CTK plugins? >> >> The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... to >> be able to load in Qt Designer. >> You can copy them in /opt/qt/plugins/designer, you can create symbolic >> links (should probably be the best solution here) or you can set the >> LD_LIBRARY_PATH env variable. >> >> When you get it to work (feel free to ask more questions if you are >> blocked), can I ask you for a favor? Can you please update the CTK wiki >> with instructions to get CTK widgets within QtDesigner? Extending the >> Getting started wiki page would be a good start. >> >> Thanks, >> Julien. >> >> >> >> On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < >> joseignacio.prieto at gmail.com> wrote: >> >>> Hi, this is a simple question. I am trying to add CTK widgets to QT >>> Designer as said in >>> http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then >>> installed in /opt/qt folder (in ubuntu). I copied >>> CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't >>> work. >>> What can I do? >>> >>> Thanks >>> >>> Ignacio >>> >>> -- >>> Jos? Ignacio Prieto >>> celular(nuevo): 94348182 >>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > -- Jos? Ignacio Prieto celular(nuevo): 94348182 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseignacio.prieto at gmail.com Fri Aug 23 14:59:22 2013 From: joseignacio.prieto at gmail.com (Jose Ignacio Prieto) Date: Fri, 23 Aug 2013 10:59:22 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: I cannot see it in qtcreator, but works fine in qtdesigner and it builts and runs correctly. I think this is enough for developing. Thanks On Fri, Aug 23, 2013 at 10:37 AM, Jose Ignacio Prieto < joseignacio.prieto at gmail.com> wrote: > I partially did it. I tried using > http://qt-project.org/doc/qtcreator-2.6/adding-plugins.html and I opened > /opt/qt-4.8.4/bin/qtdesigner and I could see CTK plugins. But from normal > qtcreator (/usr...) I cannot see them not load a ctk form previouly made in > qtdesigner. I am using qt creator 2.4.1, is that the problem? > > > On Fri, Aug 23, 2013 at 10:16 AM, Jose Ignacio Prieto < > joseignacio.prieto at gmail.com> wrote: > >> Hi, I am still not able to do it. I think my qtcreator was installed (I >> don't remember) from debian package but built from source. When I "locate" >> qtcreator appers in /usr/lib... so I copied all the CTK .so files in >> /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ where I can see other nokia >> plugins. Is it correct? >> >> >> On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet wrote: >> >>> When you are in Qt Designer, what does the "Help -> About Plugin" dialog >>> says? Any error message for the CTK plugins? >>> >>> The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... to >>> be able to load in Qt Designer. >>> You can copy them in /opt/qt/plugins/designer, you can create symbolic >>> links (should probably be the best solution here) or you can set the >>> LD_LIBRARY_PATH env variable. >>> >>> When you get it to work (feel free to ask more questions if you are >>> blocked), can I ask you for a favor? Can you please update the CTK wiki >>> with instructions to get CTK widgets within QtDesigner? Extending the >>> Getting started wiki page would be a good start. >>> >>> Thanks, >>> Julien. >>> >>> >>> >>> On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < >>> joseignacio.prieto at gmail.com> wrote: >>> >>>> Hi, this is a simple question. I am trying to add CTK widgets to QT >>>> Designer as said in >>>> http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then >>>> installed in /opt/qt folder (in ubuntu). I copied >>>> CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't >>>> work. >>>> What can I do? >>>> >>>> Thanks >>>> >>>> Ignacio >>>> >>>> -- >>>> Jos? Ignacio Prieto >>>> celular(nuevo): 94348182 >>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >> >> >> -- >> Jos? Ignacio Prieto >> celular(nuevo): 94348182 >> > > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > -- Jos? Ignacio Prieto celular(nuevo): 94348182 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Fri Aug 23 15:10:51 2013 From: julien.finet at kitware.com (Julien Finet) Date: Fri, 23 Aug 2013 11:10:51 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: That's great you managed to load the CTK widgets in QtDesigner! Can you populate the following wiki page with the steps you did to have the widgets in the designer: http://www.commontk.org/index.php/CTK_In_QtDesigner I can't really help for QtCreator as I don't personally use it. My guess is that it might be missing dependencies. You might want to try with the QT_PLUGIN_PATH environment variable otherwise. Thanks, Julien. On Fri, Aug 23, 2013 at 10:59 AM, Jose Ignacio Prieto < joseignacio.prieto at gmail.com> wrote: > I cannot see it in qtcreator, but works fine in qtdesigner and it builts > and runs correctly. I think this is enough for developing. Thanks > > > > On Fri, Aug 23, 2013 at 10:37 AM, Jose Ignacio Prieto < > joseignacio.prieto at gmail.com> wrote: > >> I partially did it. I tried using >> http://qt-project.org/doc/qtcreator-2.6/adding-plugins.html and I opened >> /opt/qt-4.8.4/bin/qtdesigner and I could see CTK plugins. But from normal >> qtcreator (/usr...) I cannot see them not load a ctk form previouly made in >> qtdesigner. I am using qt creator 2.4.1, is that the problem? >> >> >> On Fri, Aug 23, 2013 at 10:16 AM, Jose Ignacio Prieto < >> joseignacio.prieto at gmail.com> wrote: >> >>> Hi, I am still not able to do it. I think my qtcreator was installed (I >>> don't remember) from debian package but built from source. When I "locate" >>> qtcreator appers in /usr/lib... so I copied all the CTK .so files in >>> /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ where I can see other nokia >>> plugins. Is it correct? >>> >>> >>> On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet wrote: >>> >>>> When you are in Qt Designer, what does the "Help -> About Plugin" >>>> dialog says? Any error message for the CTK plugins? >>>> >>>> The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... >>>> to be able to load in Qt Designer. >>>> You can copy them in /opt/qt/plugins/designer, you can create symbolic >>>> links (should probably be the best solution here) or you can set the >>>> LD_LIBRARY_PATH env variable. >>>> >>>> When you get it to work (feel free to ask more questions if you are >>>> blocked), can I ask you for a favor? Can you please update the CTK wiki >>>> with instructions to get CTK widgets within QtDesigner? Extending the >>>> Getting started wiki page would be a good start. >>>> >>>> Thanks, >>>> Julien. >>>> >>>> >>>> >>>> On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < >>>> joseignacio.prieto at gmail.com> wrote: >>>> >>>>> Hi, this is a simple question. I am trying to add CTK widgets to QT >>>>> Designer as said in >>>>> http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then >>>>> installed in /opt/qt folder (in ubuntu). I copied >>>>> CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't >>>>> work. >>>>> What can I do? >>>>> >>>>> Thanks >>>>> >>>>> Ignacio >>>>> >>>>> -- >>>>> Jos? Ignacio Prieto >>>>> celular(nuevo): 94348182 >>>>> >>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>> >>> >>> >>> -- >>> Jos? Ignacio Prieto >>> celular(nuevo): 94348182 >>> >> >> >> >> -- >> Jos? Ignacio Prieto >> celular(nuevo): 94348182 >> > > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Florian.Ganglberger at student.i-med.ac.at Fri Aug 23 16:00:06 2013 From: Florian.Ganglberger at student.i-med.ac.at (Florian Ganglberger) Date: Fri, 23 Aug 2013 18:00:06 +0200 Subject: [Ctk-developers] Linking a shared library within a plugin Message-ID: Hi, we are trying to link a shared library to connect to tracker from a plugin. We know, that the code that calls the .so library works in a test application and also in the main method of our CTK application. After we have added our code to the plugin and linked it to the .so library, we can link and compile the code without errors, but we don't get a connection to the tracker. The cmakelists code to link the .so file in our test application is TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) (${OPTOTRAK_LIBRARY} is the library path, optoExtern the project name) The cmakelists code to link the .so file in our plugin: ctkMacroBuildPlugin( NAME ${PROJECT_NAME} EXPORT_DIRECTIVE ${PLUGIN_export_directive} SRCS ${PLUGIN_SRCS} MOC_SRCS ${PLUGIN_MOC_SRCS} UI_FORMS ${PLUGIN_UI_FORMS} INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} RESOURCES ${PLUGIN_resources} TARGET_LIBRARIES ${PLUGIN_target_libraries} ${OPTOTRAK_LIBRARY} ) Has anyone an idea how to link external shared libraries within a plugin properly? Best regards, Florian Ganglberger -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Fri Aug 23 16:07:15 2013 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Fri, 23 Aug 2013 12:07:15 -0400 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: Based on my experience ... even after setting QT_PLUGIN_PATH I couldn't load plugin located in multiple folder using QtCreator. On the other hand, setting QT_PLUGIN_PATH is know to work QtDesigner Possible hack: Manually create symlink in the expected folder @Jose: You wiki account has been activated. Hth Jc On Fri, Aug 23, 2013 at 11:10 AM, Julien Finet wrote: > That's great you managed to load the CTK widgets in QtDesigner! > Can you populate the following wiki page with the steps you did to have > the widgets in the designer: > http://www.commontk.org/index.php/CTK_In_QtDesigner > > I can't really help for QtCreator as I don't personally use it. My guess > is that it might be missing dependencies. You might want to try with the > QT_PLUGIN_PATH environment variable otherwise. > > Thanks, > Julien. > > > On Fri, Aug 23, 2013 at 10:59 AM, Jose Ignacio Prieto < > joseignacio.prieto at gmail.com> wrote: > >> I cannot see it in qtcreator, but works fine in qtdesigner and it builts >> and runs correctly. I think this is enough for developing. Thanks >> >> >> >> On Fri, Aug 23, 2013 at 10:37 AM, Jose Ignacio Prieto < >> joseignacio.prieto at gmail.com> wrote: >> >>> I partially did it. I tried using >>> http://qt-project.org/doc/qtcreator-2.6/adding-plugins.html and I >>> opened /opt/qt-4.8.4/bin/qtdesigner and I could see CTK plugins. But from >>> normal qtcreator (/usr...) I cannot see them not load a ctk form previouly >>> made in qtdesigner. I am using qt creator 2.4.1, is that the problem? >>> >>> >>> On Fri, Aug 23, 2013 at 10:16 AM, Jose Ignacio Prieto < >>> joseignacio.prieto at gmail.com> wrote: >>> >>>> Hi, I am still not able to do it. I think my qtcreator was installed (I >>>> don't remember) from debian package but built from source. When I "locate" >>>> qtcreator appers in /usr/lib... so I copied all the CTK .so files in >>>> /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ where I can see other nokia >>>> plugins. Is it correct? >>>> >>>> >>>> On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet >>> > wrote: >>>> >>>>> When you are in Qt Designer, what does the "Help -> About Plugin" >>>>> dialog says? Any error message for the CTK plugins? >>>>> >>>>> The plugins need the CTK libraries libCTKCore.so, libCTKWidgets.so... >>>>> to be able to load in Qt Designer. >>>>> You can copy them in /opt/qt/plugins/designer, you can create symbolic >>>>> links (should probably be the best solution here) or you can set the >>>>> LD_LIBRARY_PATH env variable. >>>>> >>>>> When you get it to work (feel free to ask more questions if you are >>>>> blocked), can I ask you for a favor? Can you please update the CTK wiki >>>>> with instructions to get CTK widgets within QtDesigner? Extending the >>>>> Getting started wiki page would be a good start. >>>>> >>>>> Thanks, >>>>> Julien. >>>>> >>>>> >>>>> >>>>> On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio Prieto < >>>>> joseignacio.prieto at gmail.com> wrote: >>>>> >>>>>> Hi, this is a simple question. I am trying to add CTK widgets to QT >>>>>> Designer as said in >>>>>> http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesignerbut have not succeeded. I have qt built in a Build folder and then >>>>>> installed in /opt/qt folder (in ubuntu). I copied >>>>>> CTK-build/bin/designer/libCTK* to /opt/qt/plugins/designer but it doesn't >>>>>> work. >>>>>> What can I do? >>>>>> >>>>>> Thanks >>>>>> >>>>>> Ignacio >>>>>> >>>>>> -- >>>>>> Jos? Ignacio Prieto >>>>>> celular(nuevo): 94348182 >>>>>> >>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Jos? Ignacio Prieto >>>> celular(nuevo): 94348182 >>>> >>> >>> >>> >>> -- >>> Jos? Ignacio Prieto >>> celular(nuevo): 94348182 >>> >> >> >> >> -- >> Jos? Ignacio Prieto >> celular(nuevo): 94348182 >> > > > _______________________________________________ > 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 jchris.fillionr at kitware.com Sat Aug 24 02:55:59 2013 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Fri, 23 Aug 2013 22:55:59 -0400 Subject: [Ctk-developers] Linking a shared library within a plugin In-Reply-To: References: Message-ID: Hi Florian, If it build without problem, did you try using a debugger to try to understand what s wrong? Jc -- Sent from my mobile device On Aug 23, 2013 12:00 PM, "Florian Ganglberger" < Florian.Ganglberger at student.i-med.ac.at> wrote: > Hi, > we are trying to link a shared library to connect to tracker from a > plugin. We know, that the code that calls the .so library works in a test > application and also in the main method of our CTK application. After we > have added our code to the plugin and linked it to the .so library, we can > link and compile the code without errors, but we don't get a connection to > the tracker. > The cmakelists code to link the .so file in our test application is > TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) > (${OPTOTRAK_LIBRARY} is the library path, optoExtern the project name) > > The cmakelists code to link the .so file in our plugin: > ctkMacroBuildPlugin( > NAME ${PROJECT_NAME} > EXPORT_DIRECTIVE ${PLUGIN_export_directive} > SRCS ${PLUGIN_SRCS} > MOC_SRCS ${PLUGIN_MOC_SRCS} > UI_FORMS ${PLUGIN_UI_FORMS} > INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} > RESOURCES ${PLUGIN_resources} > TARGET_LIBRARIES ${PLUGIN_target_libraries} ${OPTOTRAK_LIBRARY} > ) > > Has anyone an idea how to link external shared libraries within a plugin > properly? > > Best regards, > Florian Ganglberger > > _______________________________________________ > 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: From s.zelzer at dkfz-heidelberg.de Sat Aug 24 11:39:07 2013 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Sat, 24 Aug 2013 13:39:07 +0200 Subject: [Ctk-developers] ctkWidgets on QtDesigner In-Reply-To: References: Message-ID: <52189B5B.5080004@dkfz-heidelberg.de> Hi, I don't have experience with QtCreator installs from e.g. a Debian package, but the designer plug-ins definitely need to go in a "designer" subdirectory, even when copied to a system path. On my system with a custom QtCreator install, that would be /bin/designer but I didn't test/verify it myself right now. Best, Sascha On 08/23/2013 06:07 PM, Jean-Christophe Fillion-Robin wrote: > Based on my experience ... even after setting QT_PLUGIN_PATH I > couldn't load plugin located in multiple folder using QtCreator. > > On the other hand, setting QT_PLUGIN_PATH is know to work QtDesigner > > Possible hack: Manually create symlink in the expected folder > > @Jose: You wiki account has been activated. > > Hth > Jc > > > On Fri, Aug 23, 2013 at 11:10 AM, Julien Finet > > wrote: > > That's great you managed to load the CTK widgets in QtDesigner! > Can you populate the following wiki page with the steps you did to > have the widgets in the designer: > http://www.commontk.org/index.php/CTK_In_QtDesigner > > I can't really help for QtCreator as I don't personally use it. My > guess is that it might be missing dependencies. You might want to > try with the QT_PLUGIN_PATH environment variable otherwise. > > Thanks, > Julien. > > > On Fri, Aug 23, 2013 at 10:59 AM, Jose Ignacio Prieto > > wrote: > > I cannot see it in qtcreator, but works fine in qtdesigner and > it builts and runs correctly. I think this is enough for > developing. Thanks > > > > On Fri, Aug 23, 2013 at 10:37 AM, Jose Ignacio Prieto > > wrote: > > I partially did it. I tried using > http://qt-project.org/doc/qtcreator-2.6/adding-plugins.html and > I opened /opt/qt-4.8.4/bin/qtdesigner and I could see CTK > plugins. But from normal qtcreator (/usr...) I cannot see > them not load a ctk form previouly made in qtdesigner. I > am using qt creator 2.4.1, is that the problem? > > > On Fri, Aug 23, 2013 at 10:16 AM, Jose Ignacio Prieto > > wrote: > > Hi, I am still not able to do it. I think my qtcreator > was installed (I don't remember) from debian package > but built from source. When I "locate" qtcreator > appers in /usr/lib... so I copied all the CTK .so > files in /usr/lib/x86_64-linux-gnu/qtcreator/plugins/ > where I can see other nokia plugins. Is it correct? > > > On Wed, Aug 21, 2013 at 2:20 PM, Julien Finet > > wrote: > > When you are in Qt Designer, what does the "Help > -> About Plugin" dialog says? Any error message > for the CTK plugins? > > The plugins need the CTK libraries libCTKCore.so, > libCTKWidgets.so... to be able to load in Qt Designer. > You can copy them in /opt/qt/plugins/designer, you > can create symbolic links (should probably be the > best solution here) or you can set the > LD_LIBRARY_PATH env variable. > > When you get it to work (feel free to ask more > questions if you are blocked), can I ask you for a > favor? Can you please update the CTK wiki with > instructions to get CTK widgets within QtDesigner? > Extending the Getting started wiki page would be a > good start. > > Thanks, > Julien. > > > On Wed, Aug 21, 2013 at 2:10 PM, Jose Ignacio > Prieto > wrote: > > Hi, this is a simple question. I am trying to > add CTK widgets to QT Designer as said in > http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/QtDesigner > but have not succeeded. I have qt built in a > Build folder and then installed in /opt/qt > folder (in ubuntu). I copied > CTK-build/bin/designer/libCTK* to > /opt/qt/plugins/designer but it doesn't work. > What can I do? > > Thanks > > Ignacio > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > > > > -- > Jos? Ignacio Prieto > celular(nuevo): 94348182 > > > > _______________________________________________ > 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 Florian.Ganglberger at student.i-med.ac.at Mon Aug 26 08:18:13 2013 From: Florian.Ganglberger at student.i-med.ac.at (Florian Ganglberger) Date: Mon, 26 Aug 2013 10:18:13 +0200 Subject: [Ctk-developers] Linking a shared library within a plugin In-Reply-To: References: Message-ID: Hi Jc, we can't really use a debugger, since we don't have the code for the shared library, only the header files. The methods of the shared library is definitely called, because we get an error message that a connection to the tracker can't be established. Can it be a problem, that the plugins are also shared libraries? We'll write a shared library that calls the tracker today, so we can see if the problem depends on calling the tracker-library from a shared library or if it is ctk specific. Additional information: As far as we know, the tracker library was written in C (and not in C++) Thanks for your help, Florian 2013/8/24 Jean-Christophe Fillion-Robin > Hi Florian, > If it build without problem, did you try using a debugger to try to > understand what s wrong? > Jc > > -- > Sent from my mobile device > On Aug 23, 2013 12:00 PM, "Florian Ganglberger" < > Florian.Ganglberger at student.i-med.ac.at> wrote: > >> Hi, >> we are trying to link a shared library to connect to tracker from a >> plugin. We know, that the code that calls the .so library works in a test >> application and also in the main method of our CTK application. After we >> have added our code to the plugin and linked it to the .so library, we can >> link and compile the code without errors, but we don't get a connection to >> the tracker. >> The cmakelists code to link the .so file in our test application is >> TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) >> (${OPTOTRAK_LIBRARY} is the library path, optoExtern the project name) >> >> The cmakelists code to link the .so file in our plugin: >> ctkMacroBuildPlugin( >> NAME ${PROJECT_NAME} >> EXPORT_DIRECTIVE ${PLUGIN_export_directive} >> SRCS ${PLUGIN_SRCS} >> MOC_SRCS ${PLUGIN_MOC_SRCS} >> UI_FORMS ${PLUGIN_UI_FORMS} >> INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} >> RESOURCES ${PLUGIN_resources} >> TARGET_LIBRARIES ${PLUGIN_target_libraries} ${OPTOTRAK_LIBRARY} >> ) >> >> Has anyone an idea how to link external shared libraries within a plugin >> properly? >> >> Best regards, >> Florian Ganglberger >> >> _______________________________________________ >> 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: From Florian.Ganglberger at student.i-med.ac.at Mon Aug 26 12:37:04 2013 From: Florian.Ganglberger at student.i-med.ac.at (Florian Ganglberger) Date: Mon, 26 Aug 2013 14:37:04 +0200 Subject: [Ctk-developers] Linking a shared library within a plugin In-Reply-To: References: Message-ID: Hi Jc, we've built a new shared library which calls our shared-tracker-library. It works perfectly outside of our plugin and the tracker can connect. As soon as we link the new shared library into the plugin, we have our connection problem again. It calls the function, produces all the output, but can't connect. So we can say that the* shared tracker library works for:* *- a normal example program*: example program --> shared tracker library *- the main method of our ctk app:* ctk app --> shared tracker library *- called from a "normal" shared library: * example program --> "normal" shared library --> shared tracker library *and not for:* *- the plugin* (which is a shared library): ctk plugin --> shared tracker library *- a call from a shared library which is called by the plugin*: ctk plugin --> "normal" shared library --> shared tracker library Actually we have no idea, why it doesn't work.... Thanks for your help, Florian 2013/8/26 Florian Ganglberger > Hi Jc, > we can't really use a debugger, since we don't have the code for the > shared library, only the header files. The methods of the shared library is > definitely called, because we get an error message that a connection to the > tracker can't be established. Can it be a problem, that the plugins are > also shared libraries? We'll write a shared library that calls the tracker > today, so we can see if the problem depends on calling the tracker-library > from a shared library or if it is ctk specific. > > Additional information: As far as we know, the tracker library was written > in C (and not in C++) > > Thanks for your help, > Florian > > > 2013/8/24 Jean-Christophe Fillion-Robin > >> Hi Florian, >> If it build without problem, did you try using a debugger to try to >> understand what s wrong? >> Jc >> >> -- >> Sent from my mobile device >> On Aug 23, 2013 12:00 PM, "Florian Ganglberger" < >> Florian.Ganglberger at student.i-med.ac.at> wrote: >> >>> Hi, >>> we are trying to link a shared library to connect to tracker from a >>> plugin. We know, that the code that calls the .so library works in a test >>> application and also in the main method of our CTK application. After we >>> have added our code to the plugin and linked it to the .so library, we can >>> link and compile the code without errors, but we don't get a connection to >>> the tracker. >>> The cmakelists code to link the .so file in our test application is >>> TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) >>> (${OPTOTRAK_LIBRARY} is the library path, optoExtern the project name) >>> >>> The cmakelists code to link the .so file in our plugin: >>> ctkMacroBuildPlugin( >>> NAME ${PROJECT_NAME} >>> EXPORT_DIRECTIVE ${PLUGIN_export_directive} >>> SRCS ${PLUGIN_SRCS} >>> MOC_SRCS ${PLUGIN_MOC_SRCS} >>> UI_FORMS ${PLUGIN_UI_FORMS} >>> INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} >>> RESOURCES ${PLUGIN_resources} >>> TARGET_LIBRARIES ${PLUGIN_target_libraries} ${OPTOTRAK_LIBRARY} >>> ) >>> >>> Has anyone an idea how to link external shared libraries within a plugin >>> properly? >>> >>> Best regards, >>> Florian Ganglberger >>> >>> _______________________________________________ >>> 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: From s.zelzer at dkfz-heidelberg.de Mon Aug 26 13:54:43 2013 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Mon, 26 Aug 2013 15:54:43 +0200 Subject: [Ctk-developers] Linking a shared library within a plugin In-Reply-To: References: Message-ID: <521B5E23.5050703@dkfz-heidelberg.de> Hi Florian, this all sound really strange... as you have noted already yourself, plug-ins are also just shared libraries, which are loaded dynamically at runtime. If I understood you right, in the case of linking the proprietary tracker library to the plug-in, the plug-in starts successfully but the tracker library reports a runtime error. Is that correct? The only difference of which I can think of (compared to the working cases you mentioned), is that the plug-in is loaded via "dlopen" (on POSIX systems) using the QLibrary class. Depending on the Plugin Framework options http://www.commontk.org/docs/html/structctkPluginConstants.html#a29af0cac606ca29ea8d66d342d05060e different load hints are passed to QLibrary (http://qt-project.org/doc/qt-4.8/qlibrary.html#loadHints-prop). These load hints might affect symbol resolutions of subsequently loaded libraries, like your tracker library. But if all this really relates to your actual problem is not clear to me, sorry. Best, Sascha On 08/26/2013 02:37 PM, Florian Ganglberger wrote: > Hi Jc, > we've built a new shared library which calls our > shared-tracker-library. It works perfectly outside of our plugin and > the tracker can connect. As soon as we link the new shared library > into the plugin, we have our connection problem again. It calls the > function, produces all the output, but can't connect. So we can say > that the_shared tracker library works for:_ > *- a normal example program*: example program --> shared tracker library > *- the main method of our ctk app:* ctk app --> shared tracker library > *- called from a "normal" shared library: * example program --> > "normal" shared library --> shared tracker library > > _and not for:_ > *- the plugin* (which is a shared library): ctk plugin --> shared > tracker library > *- a call from a shared library which is called by the plugin*: ctk > plugin --> "normal" shared library --> shared tracker library > > Actually we have no idea, why it doesn't work.... > > Thanks for your help, > Florian > > > > 2013/8/26 Florian Ganglberger > > > Hi Jc, > we can't really use a debugger, since we don't have the code for > the shared library, only the header files. The methods of the > shared library is definitely called, because we get an error > message that a connection to the tracker can't be established. Can > it be a problem, that the plugins are also shared libraries? We'll > write a shared library that calls the tracker today, so we can see > if the problem depends on calling the tracker-library from a > shared library or if it is ctk specific. > > Additional information: As far as we know, the tracker library was > written in C (and not in C++) > > Thanks for your help, > Florian > > > 2013/8/24 Jean-Christophe Fillion-Robin > > > > Hi Florian, > If it build without problem, did you try using a debugger to > try to understand what s wrong? > Jc > > -- > Sent from my mobile device > > On Aug 23, 2013 12:00 PM, "Florian Ganglberger" > > wrote: > > Hi, > we are trying to link a shared library to connect to > tracker from a plugin. We know, that the code that calls > the .so library works in a test application and also in > the main method of our CTK application. After we have > added our code to the plugin and linked it to the .so > library, we can link and compile the code without errors, > but we don't get a connection to the tracker. > The cmakelists code to link the .so file in our test > application is > TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) > (${OPTOTRAK_LIBRARY} is the library path, optoExtern the > project name) > > The cmakelists code to link the .so file in our plugin: > ctkMacroBuildPlugin( > NAME ${PROJECT_NAME} > EXPORT_DIRECTIVE ${PLUGIN_export_directive} > SRCS ${PLUGIN_SRCS} > MOC_SRCS ${PLUGIN_MOC_SRCS} > UI_FORMS ${PLUGIN_UI_FORMS} > INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} > RESOURCES ${PLUGIN_resources} > TARGET_LIBRARIES ${PLUGIN_target_libraries} > ${OPTOTRAK_LIBRARY} > ) > > Has anyone an idea how to link external shared libraries > within a plugin properly? > > Best regards, > Florian Ganglberger > > _______________________________________________ > 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: From Florian.Ganglberger at student.i-med.ac.at Tue Aug 27 07:59:08 2013 From: Florian.Ganglberger at student.i-med.ac.at (Florian Ganglberger) Date: Tue, 27 Aug 2013 09:59:08 +0200 Subject: [Ctk-developers] Linking a shared library within a plugin In-Reply-To: <521B5E23.5050703@dkfz-heidelberg.de> References: <521B5E23.5050703@dkfz-heidelberg.de> Message-ID: Hi Sascha, we've figured out, that the tracker library uses another library for the initialization of the connection. The problem was, that the symbols of this library couldn't be resolved. This leads to the assumption, that the plugin framework links correctly to a shared library, but not to shared libraries, that are used by the first shared library. By loading the tracker library with your suggestion (ExportExternalSymbolsHint), it was possible to initialize our tracker correctly! Thank you very much for your help! For people with the same problem, this is the code to load a class from a shared library which depends on other shared libraries (from a ctk plugin): QLibrary library("library.so"); library.setLoadHints(QLibrary::ExportExternalSymbolsHint); library.load(); if(library.isLoaded()){ MyClass * c = new MyClass; if(c){ // dostuff } } and for a function: QLibrary myLib("library.so"); library.setLoadHints(QLibrary::ExportExternalSymbolsHint); library.load(); typedef void (*MyPrototype)(); MyPrototype myFunction = (MyPrototype) myLib.resolve("mysymbol"); if (myFunction) myFunction(); Note, that you have to link your library.so also in the CMakeLists.txt with target_link_libraries. Best regards, Florian 2013/8/26 Sascha Zelzer > Hi Florian, > > this all sound really strange... > > as you have noted already yourself, plug-ins are also just shared > libraries, which are loaded dynamically at runtime. If I understood you > right, in the case of linking the proprietary tracker library to the > plug-in, the plug-in starts successfully but the tracker library reports a > runtime error. Is that correct? > > The only difference of which I can think of (compared to the working cases > you mentioned), is that the plug-in is loaded via "dlopen" (on POSIX > systems) using the QLibrary class. Depending on the Plugin Framework options > > > http://www.commontk.org/docs/html/structctkPluginConstants.html#a29af0cac606ca29ea8d66d342d05060e > > different load hints are passed to QLibrary ( > http://qt-project.org/doc/qt-4.8/qlibrary.html#loadHints-prop). These > load hints might affect symbol resolutions of subsequently loaded > libraries, like your tracker library. > > But if all this really relates to your actual problem is not clear to me, > sorry. > > Best, > > Sascha > > > > On 08/26/2013 02:37 PM, Florian Ganglberger wrote: > > Hi Jc, > we've built a new shared library which calls our shared-tracker-library. > It works perfectly outside of our plugin and the tracker can connect. As > soon as we link the new shared library into the plugin, we have our > connection problem again. It calls the function, produces all the output, > but can't connect. So we can say that the* shared tracker library works > for:* > *- a normal example program*: example program --> shared tracker library > *- the main method of our ctk app:* ctk app --> shared tracker library > *- called from a "normal" shared library: * example program --> > "normal" shared library --> shared tracker library > > *and not for:* > *- the plugin* (which is a shared library): ctk plugin --> shared tracker > library > *- a call from a shared library which is called by the plugin*: ctk > plugin --> "normal" shared library --> shared tracker library > > Actually we have no idea, why it doesn't work.... > > Thanks for your help, > Florian > > > > 2013/8/26 Florian Ganglberger > >> Hi Jc, >> we can't really use a debugger, since we don't have the code for the >> shared library, only the header files. The methods of the shared library is >> definitely called, because we get an error message that a connection to the >> tracker can't be established. Can it be a problem, that the plugins are >> also shared libraries? We'll write a shared library that calls the tracker >> today, so we can see if the problem depends on calling the tracker-library >> from a shared library or if it is ctk specific. >> >> Additional information: As far as we know, the tracker library was >> written in C (and not in C++) >> >> Thanks for your help, >> Florian >> >> >> 2013/8/24 Jean-Christophe Fillion-Robin >> >>> Hi Florian, >>> If it build without problem, did you try using a debugger to try to >>> understand what s wrong? >>> Jc >>> >>> -- >>> Sent from my mobile device >>> On Aug 23, 2013 12:00 PM, "Florian Ganglberger" < >>> Florian.Ganglberger at student.i-med.ac.at> wrote: >>> >>>> Hi, >>>> we are trying to link a shared library to connect to tracker from a >>>> plugin. We know, that the code that calls the .so library works in a test >>>> application and also in the main method of our CTK application. After we >>>> have added our code to the plugin and linked it to the .so library, we can >>>> link and compile the code without errors, but we don't get a connection to >>>> the tracker. >>>> The cmakelists code to link the .so file in our test application is >>>> TARGET_LINK_LIBRARIES(optoExtern ${OPTOTRAK_LIBRARY}) >>>> (${OPTOTRAK_LIBRARY} is the library path, optoExtern the project name) >>>> >>>> The cmakelists code to link the .so file in our plugin: >>>> ctkMacroBuildPlugin( >>>> NAME ${PROJECT_NAME} >>>> EXPORT_DIRECTIVE ${PLUGIN_export_directive} >>>> SRCS ${PLUGIN_SRCS} >>>> MOC_SRCS ${PLUGIN_MOC_SRCS} >>>> UI_FORMS ${PLUGIN_UI_FORMS} >>>> INCLUDE_DIRECTORIES ${Plugin_SOURCE_DIR} >>>> RESOURCES ${PLUGIN_resources} >>>> TARGET_LIBRARIES ${PLUGIN_target_libraries} ${OPTOTRAK_LIBRARY} >>>> ) >>>> >>>> Has anyone an idea how to link external shared libraries within a >>>> plugin properly? >>>> >>>> Best regards, >>>> Florian Ganglberger >>>> >>>> _______________________________________________ >>>> 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: