From stephen.aylward at kitware.com Mon Aug 9 13:55:53 2010 From: stephen.aylward at kitware.com (Stephen Aylward) Date: Mon, 9 Aug 2010 09:55:53 -0400 Subject: [Ctk-developers] 2010.09 CTK Hackfest - Hacking coordination tcon Message-ID: If you would like to participate (in person or in spirit) in the next CTK Hackfest, please join us for a hacker-coordination meeting, tomorrow, 10-Aug-2010, 9am EDT. The telephone conference phone number from within the USA is toll-free at 1-800-704-9804 For international participants, you can dial-in using the USA number (404) 920-6604 The conference code is 718324. The next CTK Hackfest is being held in Barcelona Spain from 13-17 September, 2010. http://www.commontk.org/index.php/CTK-Hackfest-September-2010 We look forward to talking and hacking with you. Best regards, Ivo, Stephen, and Steve PS> For timezone conversion, visit: http://www.timeanddate.com/worldclock/city.html?n=179 -- ============================== Stephen R. Aylward, Ph.D. Director of Medical Imaging Research Kitware, Inc. - North Carolina Office http://www.kitware.com stephen.aylward (Skype) (919) 969-6990 x300 From pieper at bwh.harvard.edu Mon Aug 16 22:57:33 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Mon, 16 Aug 2010 18:57:33 -0400 Subject: [Ctk-developers] 2010.09 CTK Hackfest - Hacking coordination tcon In-Reply-To: References: Message-ID: <4C69C25D.7070603@bwh.harvard.edu> Hi - during last week's tcon we decided to make it a weekly event for the next few weeks leading up to the hackfest itself. So, tomorrow morning at 9am Eastern time please join if you can (I know many folks are on vacation). We will use the same call in information as last time (see note below). -Steve, Stephen, & Ivo On Aug/9/10 9:55 AM, Stephen Aylward wrote: > If you would like to participate (in person or in spirit) in the next > CTK Hackfest, please join us for a hacker-coordination meeting, > tomorrow, 10-Aug-2010, 9am EDT. > > The telephone conference phone number from within the USA is toll-free > at 1-800-704-9804 > For international participants, you can dial-in using the USA number > (404) 920-6604 > The conference code is 718324. > > The next CTK Hackfest is being held in Barcelona Spain from 13-17 > September, 2010. > http://www.commontk.org/index.php/CTK-Hackfest-September-2010 > > We look forward to talking and hacking with you. > > Best regards, > Ivo, Stephen, and Steve > > PS> For timezone conversion, visit: > http://www.timeanddate.com/worldclock/city.html?n=179 > > From pieper at bwh.harvard.edu Tue Aug 17 13:03:40 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Tue, 17 Aug 2010 09:03:40 -0400 Subject: [Ctk-developers] 2010.09 CTK Hackfest - Hacking coordination tcon In-Reply-To: <4C6A8871.8020007@dkfz-heidelberg.de> References: <4C69C25D.7070603@bwh.harvard.edu> <4C6A8871.8020007@dkfz-heidelberg.de> Message-ID: <4C6A88AC.7050405@bwh.harvard.edu> I'm having the same problem from here... On Aug/17/10 9:02 AM, Sascha Zelzer wrote: > Hi, the conference id (718324) seems to be invalid. Should it be correct? > > Thanks, > Sascha > > > On 08/17/2010 12:57 AM, Steve Pieper wrote: >> Hi - during last week's tcon we decided to make it a weekly event for >> the next few weeks leading up to the hackfest itself. >> >> So, tomorrow morning at 9am Eastern time please join if you can (I know >> many folks are on vacation). We will use the same call in information >> as last time (see note below). >> >> -Steve, Stephen,& Ivo >> >> On Aug/9/10 9:55 AM, Stephen Aylward wrote: >>> If you would like to participate (in person or in spirit) in the next >>> CTK Hackfest, please join us for a hacker-coordination meeting, >>> tomorrow, 10-Aug-2010, 9am EDT. >>> >>> The telephone conference phone number from within the USA is toll-free >>> at 1-800-704-9804 >>> For international participants, you can dial-in using the USA number >>> (404) 920-6604 >>> The conference code is 718324. >>> >>> The next CTK Hackfest is being held in Barcelona Spain from 13-17 >>> September, 2010. >>> http://www.commontk.org/index.php/CTK-Hackfest-September-2010 >>> >>> We look forward to talking and hacking with you. >>> >>> Best regards, >>> Ivo, Stephen, and Steve >>> >>> PS> For timezone conversion, visit: >>> http://www.timeanddate.com/worldclock/city.html?n=179 >>> >>> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > From stephen.aylward at kitware.com Tue Aug 17 13:10:03 2010 From: stephen.aylward at kitware.com (Stephen Aylward) Date: Tue, 17 Aug 2010 09:10:03 -0400 Subject: [Ctk-developers] 2010.09 CTK Hackfest - Hacking coordination tcon In-Reply-To: References: Message-ID: We have a temporary, new code to use for this tcon: 489655 Sorry for the inconvenience. s On Mon, Aug 9, 2010 at 9:55 AM, Stephen Aylward wrote: > If you would like to participate (in person or in spirit) in the next > CTK Hackfest, please join us for a hacker-coordination meeting, > tomorrow, 10-Aug-2010, 9am EDT. > > The telephone conference phone number from within the USA is toll-free > at 1-800-704-9804 > For international participants, you can dial-in using the USA number > (404) 920-6604 > The conference code is 718324. > > The next CTK Hackfest is being held in Barcelona Spain from 13-17 > September, 2010. > ? http://www.commontk.org/index.php/CTK-Hackfest-September-2010 > > We look forward to talking and hacking with you. > > Best regards, > Ivo, Stephen, and Steve > > PS> For timezone conversion, visit: > http://www.timeanddate.com/worldclock/city.html?n=179 > > > -- > > ============================== > Stephen R. Aylward, Ph.D. > Director of Medical Imaging Research > Kitware, Inc. - North Carolina Office > http://www.kitware.com > stephen.aylward (Skype) > (919) 969-6990 x300 > -- ============================== Stephen R. Aylward, Ph.D. Director of Medical Imaging Research Kitware, Inc. - North Carolina Office http://www.kitware.com stephen.aylward (Skype) (919) 969-6990 x300 From zivy at isis.georgetown.edu Tue Aug 17 16:13:39 2010 From: zivy at isis.georgetown.edu (Ziv Yaniv) Date: Tue, 17 Aug 2010 12:13:39 -0400 Subject: [Ctk-developers] automated response Message-ID: <11008171213.AA26837@isis.georgetown.edu> I am currently out of the office and will be back on September 2'nd. Ziv From pedro.omedas at upf.edu Thu Aug 19 12:36:28 2010 From: pedro.omedas at upf.edu (Pedro Omedas) Date: Thu, 19 Aug 2010 14:36:28 +0200 Subject: [Ctk-developers] Travel details for Barcelona Hackfest Message-ID: Hi, I added some travel details for airport and location of the meeting in Barcelona on the Wiki. We are finding if it's possible to find a group rate in a hotel nearby (although fares seems to be cheaper if you book directly on the hotel website). On the next teleconference I will provide more details. Best, Pedro. ______________________ Pedro Omedas Lead Scientific Developer Center for Computational Imaging & Simulation Technologies in Biomedicine (CISTIB) Information & Communication Technologies Department Universitat Pompeu Fabra - UPF - www.upf.edu Networking Center on Biomedical Research - CIBER-BBN - www.ciber-bbn.org c/ T?nger, 122-140 - E08018 Barcelona - Spain Sec: +34 93-542-1350 mailto:pedro.omedas at upf.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Fri Aug 20 15:42:12 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Fri, 20 Aug 2010 11:42:12 -0400 Subject: [Ctk-developers] mingw build failure Message-ID: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> Hi, I'm new to CTK and have been trying to get things going on Win32 Vista with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and debug (because QtMobility would not compile with just a release build of Qt) and VTK 5.7 shared release but Im running into a snag with QtMobility: D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make Scanning dependencies of target QtMobility [ 0%] Creating directories for 'QtMobility' [ 0%] Performing download step (extract) for 'QtMobility' -- extracting... src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op ensource-src-1.0.0.tar.gz' dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit y' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [copy] -- extracting... [clean up] -- extracting... done [ 0%] Performing patch step for 'QtMobility' [ 0%] No update step for 'QtMobility' [ 0%] Performing configure step for 'QtMobility' Checking selected modules: ServiceFramework selected D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility Checking available Qt 4.6.3 Checking make ... mingw32-make found. Start of compile tests End of compile tests The file cannot be copied onto itself. 0 file(s) copied. Generating Mobility Headers... The system cannot find the file specified. Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QAbstractSecuritySession Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QServiceContext Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QServiceFilter Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QServiceInterfaceDescriptor Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QServiceManager Create header D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob ility\include/QServicePluginInterface Running qmake... Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ src/src.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility /src/global/global.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility /src/serviceframework/serviceframework.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ tools/tools.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility /tools/servicefw/servicefw.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility /tools/servicexmlgen/servicexmlgen.pro Reading D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility /tools/icheck/icheck.pro configure has finished. You may run mingw32-make to build the project now. [ 0%] Performing build step for 'QtMobility' 'make' is not recognized as an internal or external command, operable program or batch file. mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] Error 1 mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 mingw32-make: *** [all] Error 2 I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a build.make file with "make" instead of "mingw32-make": CMakeExternals/Stamp/QtMobility/QtMobility-build: CMakeExternals/Stamp/QtMobility/QtMobility-configure $(CMAKE_COMMAND) -E cmake_progress_report D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Performing build step for 'QtMobility'" cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility && make <----------------------------* cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build and "make install" instead of "mingw32-make install": CMakeExternals/Stamp/QtMobility/QtMobility-install: CMakeExternals/Stamp/QtMobility/QtMobility-build $(CMAKE_COMMAND) -E cmake_progress_report D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Performing install step for 'QtMobility'" cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility && make install <-----------------------* cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install I manually edited build.make and QtMobility proceeded to build. Log4Qt built without problems, but then I run into Scanning dependencies of target CTKCore [ 6%] Building CXX object Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser .cpp.obj cc1plus.exe: error: unrecognized command line option "-Wstrict-null-sentinel" cc1plus.exe: error: unrecognized command line option "-fvisibility=hidden" cc1plus.exe: error: unrecognized command line option "-fvisibility-inlines-hidde n" mingw32-make[5]: *** [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. obj] Error 1 mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 2 mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 mingw32-make: *** [all] Error 2 the command line options appear in a number of flags.make files which cannot be edited since cmake overwrites them with every call to mingw32-make. Id really like to try out CTK and hopefully contribute as our company would like to switch from KWWidgets to Qt. regards, Dean From julien.finet at kitware.com Fri Aug 20 21:38:10 2010 From: julien.finet at kitware.com (Julien Finet) Date: Fri, 20 Aug 2010 17:38:10 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> Message-ID: Hi Dean, glad to hear you're giving a shot with CTK. The flags the compiler is complaining about are supported from gcc 4.0. You might want to update your gcc compiler. However, there are some other workarounds, you can remove them when configuring CTK (check the options CTK_CXX_FLAGS and VISIBILITY_CXX_FLAGS) All these flags are automatically set in CTK/CMakeLists.txt, if we want to support "old" gcc compilers, then we should probably make sure they are supported using ctkFunctionCheckCompilerFlags() Let us know if you have more feedbacks. Feel free to post a patch with all the changes you needed to add to have it working. Thanks, Julien. On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis wrote: > Hi, > > I'm new to CTK and have been trying to get things going on Win32 Vista > with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and debug > (because > QtMobility would not compile with just a release build of Qt) and VTK 5.7 > shared release > but Im running into a snag with QtMobility: > > D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make > Scanning dependencies of target QtMobility > [ 0%] Creating directories for 'QtMobility' > [ 0%] Performing download step (extract) for 'QtMobility' > -- extracting... > > src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op > ensource-src-1.0.0.tar.gz' > > dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit > y' > -- extracting... [tar xfz] > -- extracting... [analysis] > -- extracting... [copy] > -- extracting... [clean up] > -- extracting... done > [ 0%] Performing patch step for 'QtMobility' > [ 0%] No update step for 'QtMobility' > [ 0%] Performing configure step for 'QtMobility' > Checking selected modules: > ServiceFramework selected > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > Checking available Qt > 4.6.3 > Checking make > ... mingw32-make found. > > Start of compile tests > End of compile tests > > > The file cannot be copied onto itself. > 0 file(s) copied. > Generating Mobility Headers... > The system cannot find the file specified. > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QAbstractSecuritySession > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceContext > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceFilter > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceInterfaceDescriptor > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceManager > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServicePluginInterface > > Running qmake... > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ > src/src.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /src/global/global.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /src/serviceframework/serviceframework.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ > tools/tools.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/servicefw/servicefw.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/servicexmlgen/servicexmlgen.pro > Reading > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/icheck/icheck.pro > > configure has finished. You may run mingw32-make to build the project now. > [ 0%] Performing build step for 'QtMobility' > 'make' is not recognized as an internal or external command, > operable program or batch file. > mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] > Error 1 > mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > > I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a build.make > file with > "make" instead of "mingw32-make": > > CMakeExternals/Stamp/QtMobility/QtMobility-build: > CMakeExternals/Stamp/QtMobility/QtMobility-configure > $(CMAKE_COMMAND) -E cmake_progress_report > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) > @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold > "Performing build step for 'QtMobility'" > cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && make <----------------------------* > cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build > > and "make install" instead of "mingw32-make install": > > CMakeExternals/Stamp/QtMobility/QtMobility-install: > CMakeExternals/Stamp/QtMobility/QtMobility-build > $(CMAKE_COMMAND) -E cmake_progress_report > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) > @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold > "Performing install step for 'QtMobility'" > cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && make install <-----------------------* > cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install > > > I manually edited build.make and QtMobility proceeded to build. Log4Qt > built without problems, but then I run into > > Scanning dependencies of target CTKCore > [ 6%] Building CXX object > Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser > .cpp.obj > cc1plus.exe: error: unrecognized command line option > "-Wstrict-null-sentinel" > cc1plus.exe: error: unrecognized command line option "-fvisibility=hidden" > cc1plus.exe: error: unrecognized command line option > "-fvisibility-inlines-hidde > n" > mingw32-make[5]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. > obj] Error 1 > mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > the command line options appear in a number of flags.make files which > cannot > be edited since cmake > overwrites them with every call to mingw32-make. > > Id really like to try out CTK and hopefully contribute as our company would > like to switch > from KWWidgets to Qt. > > regards, > Dean > > _______________________________________________ > 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 dean.inglis at camris.ca Fri Aug 20 22:04:48 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Fri, 20 Aug 2010 18:04:48 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> Message-ID: Hi Julien, thanks for the suggestions. Im using the latest stable release for MinGW and to gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, I commented out #----------------------------------------------------------------------------- # Set symbol visibility Flags # #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # SET(VISIBILITY_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden") #ENDIF() and removed -Wstrict-null-sentinel IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") SET(cflags "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -D_FORTIFY_SOURCE=2") ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") # SET(CTK_CXX_FLAGS "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel -Wsign-promo ${CTK_CXX_FLAGS}") SET(CTK_CXX_FLAGS "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo ${CTK_CXX_FLAGS}") ENDIF() Now Im getting the following linking errors: [ 83%] Performing build step for 'CTK-build' Linking CXX shared library ..\..\bin\libCTKCore.dll D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined reference to `_imp___ZN7QString17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined referenc e to `_imp___ZN7QString17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined referenc e to `_imp___ZN7QString17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined referenc e to `_imp___ZN7QObject13setObjectNameERK7QString' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined referenc e to `_imp___ZN7QString17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined referenc e to `_imp___ZN7QString17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined referenc e to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined referenc e to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined referenc e to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to `_imp___ZN14QReadW riteLock6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to `_imp___ZN14QReadW riteLock11lockForReadEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to `_imp___ZN7QStrin g17fromLatin1_helperEPKci' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to `_imp___ZN14QRead WriteLock11lockForReadEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to `_imp___ZN14QRead WriteLock6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to `_imp___ZN14QRead WriteLock6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to `_imp___ZN14QRea dWriteLock11lockForReadEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to `_imp___ZN14QRea dWriteLock6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to `_imp___ZN14QRea dWriteLockC1ENS_13RecursionModeE' etc etc etc D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): undefi ned reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): undefi ned reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): undefi ned reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): undefi ned reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): undefi ned reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 8): undefined reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 8): undefined reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 2): undefined reference to `_imp___ZN6QMutex6unlockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e f): undefined reference to `_imp___ZN6QMutex4lockEv' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 1): undefined reference to `_imp___ZN6QMutex6unlockEv' collect2: ld returned 1 exit status mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 2 mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 mingw32-make: *** [all] Error 2 Also, what is the correct fix/workaround for getting QtMobility to properly compile without modifying cmake's generated build.make? thanks, Dean > Hi Dean, glad to hear you're giving a shot with CTK. > > The flags the compiler is complaining about are supported from gcc 4.0. > You > might want to update your gcc compiler. > > However, there are some other workarounds, you can remove them when > configuring CTK (check the options CTK_CXX_FLAGS and VISIBILITY_CXX_FLAGS) > All these flags are automatically set in CTK/CMakeLists.txt, if we want to > support "old" gcc compilers, then we should probably make sure they are > supported using ctkFunctionCheckCompilerFlags() > > Let us know if you have more feedbacks. Feel free to post a patch with all > the changes you needed to add to have it working. > > Thanks, > Julien. > > On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis > wrote: > >> Hi, >> >> I'm new to CTK and have been trying to get things going on Win32 Vista >> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >> debug >> (because >> QtMobility would not compile with just a release build of Qt) and VTK 5.7 >> shared release >> but Im running into a snag with QtMobility: >> >> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >> Scanning dependencies of target QtMobility >> [ 0%] Creating directories for 'QtMobility' >> [ 0%] Performing download step (extract) for 'QtMobility' >> -- extracting... >> >> >> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >> ensource-src-1.0.0.tar.gz' >> >> >> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >> y' >> -- extracting... [tar xfz] >> -- extracting... [analysis] >> -- extracting... [copy] >> -- extracting... [clean up] >> -- extracting... done >> [ 0%] Performing patch step for 'QtMobility' >> [ 0%] No update step for 'QtMobility' >> [ 0%] Performing configure step for 'QtMobility' >> Checking selected modules: >> ServiceFramework selected >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >> Checking available Qt >> 4.6.3 >> Checking make >> ... mingw32-make found. >> >> Start of compile tests >> End of compile tests >> >> >> The file cannot be copied onto itself. >> 0 file(s) copied. >> Generating Mobility Headers... >> The system cannot find the file specified. >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QAbstractSecuritySession >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QServiceContext >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QServiceFilter >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QServiceInterfaceDescriptor >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QServiceManager >> Create header >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >> ility\include/QServicePluginInterface >> >> Running qmake... >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >> src/src.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >> /src/global/global.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >> /src/serviceframework/serviceframework.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >> tools/tools.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >> /tools/servicefw/servicefw.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >> /tools/servicexmlgen/servicexmlgen.pro >> Reading >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >> /tools/icheck/icheck.pro >> >> configure has finished. You may run mingw32-make to build the project >> now. >> [ 0%] Performing build step for 'QtMobility' >> 'make' is not recognized as an internal or external command, >> operable program or batch file. >> mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] >> Error 1 >> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >> mingw32-make: *** [all] Error 2 >> >> >> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >> build.make >> file with >> "make" instead of "mingw32-make": >> >> CMakeExternals/Stamp/QtMobility/QtMobility-build: >> CMakeExternals/Stamp/QtMobility/QtMobility-configure >> $(CMAKE_COMMAND) -E cmake_progress_report >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >> "Performing build step for 'QtMobility'" >> cd >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >> && make <----------------------------* >> cd >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >> >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >> >> and "make install" instead of "mingw32-make install": >> >> CMakeExternals/Stamp/QtMobility/QtMobility-install: >> CMakeExternals/Stamp/QtMobility/QtMobility-build >> $(CMAKE_COMMAND) -E cmake_progress_report >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >> "Performing install step for 'QtMobility'" >> cd >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >> && make install <-----------------------* >> cd >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >> >> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >> >> >> I manually edited build.make and QtMobility proceeded to build. Log4Qt >> built without problems, but then I run into >> >> Scanning dependencies of target CTKCore >> [ 6%] Building CXX object >> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >> .cpp.obj >> cc1plus.exe: error: unrecognized command line option >> "-Wstrict-null-sentinel" >> cc1plus.exe: error: unrecognized command line option >> "-fvisibility=hidden" >> cc1plus.exe: error: unrecognized command line option >> "-fvisibility-inlines-hidde >> n" >> mingw32-make[5]: *** >> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >> obj] Error 1 >> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >> mingw32-make[3]: *** [all] Error 2 >> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >> Error >> 2 >> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >> mingw32-make: *** [all] Error 2 >> >> the command line options appear in a number of flags.make files which >> cannot >> be edited since cmake >> overwrites them with every call to mingw32-make. >> >> Id really like to try out CTK and hopefully contribute as our company >> would >> like to switch >> from KWWidgets to Qt. >> >> regards, >> Dean >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > From s.zelzer at dkfz-heidelberg.de Sun Aug 22 21:50:02 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Sun, 22 Aug 2010 23:50:02 +0200 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> Message-ID: <4C719B8A.5060509@dkfz-heidelberg.de> Hi Dean, commit http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab will fix your QtMobility build issue. With commit http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 the CTK compiler flags will also work on MinGW systems. You will still get unresolved references during linking of CTKCore (in Log4Qt) which probably is due to a wrong linking order (Log4Qt is a static library, listed at the end of the linker command line). I will try and fix it in the next week. Best, Sascha Am 21.08.2010 00:04, schrieb Dean Inglis: > Hi Julien, > > thanks for the suggestions. Im using the latest stable release for MinGW > and to > gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, > I commented out > > #----------------------------------------------------------------------------- > # Set symbol visibility Flags > # > #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") > # SET(VISIBILITY_CXX_FLAGS > "-fvisibility=hidden -fvisibility-inlines-hidden") > #ENDIF() > > and removed -Wstrict-null-sentinel > > IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") > SET(cflags > "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -D_FORTIFY_SOURCE=2") > ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) > ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) > SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") > # SET(CTK_CXX_FLAGS > "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel -Wsign-promo > ${CTK_CXX_FLAGS}") > SET(CTK_CXX_FLAGS > "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo > ${CTK_CXX_FLAGS}") > ENDIF() > > Now Im getting the following linking errors: > > [ 83%] Performing build step for 'CTK-build' > Linking CXX shared library ..\..\bin\libCTKCore.dll > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined > reference > to `_imp___ZN7QString17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined > referenc > e to `_imp___ZN7QObject13setObjectNameERK7QString' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined > referenc > e to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined > referenc > e to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined > referenc > e to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to > `_imp___ZN14QReadW > riteLock6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to > `_imp___ZN14QReadW > riteLock11lockForReadEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to > `_imp___ZN7QStrin > g17fromLatin1_helperEPKci' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to > `_imp___ZN14QRead > WriteLock11lockForReadEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to > `_imp___ZN14QRead > WriteLock6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to > `_imp___ZN14QRead > WriteLock6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to > `_imp___ZN14QRea > dWriteLock11lockForReadEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to > `_imp___ZN14QRea > dWriteLock6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to > `_imp___ZN14QRea > dWriteLockC1ENS_13RecursionModeE' > > etc etc etc > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): > undefi > ned reference to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): > undefi > ned reference to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined > reference > to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined > reference > to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined > reference > to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined > reference > to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined > reference > to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 > 8): undefined reference to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 > 8): undefined reference to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 > 2): undefined reference to `_imp___ZN6QMutex6unlockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e > f): undefined reference to `_imp___ZN6QMutex4lockEv' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 > 1): undefined reference to `_imp___ZN6QMutex6unlockEv' > collect2: ld returned 1 exit status > mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 > mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > Also, what is the correct fix/workaround for getting QtMobility to properly > compile without modifying cmake's generated build.make? > > thanks, > Dean > > >> Hi Dean, glad to hear you're giving a shot with CTK. >> >> The flags the compiler is complaining about are supported from gcc 4.0. >> You >> might want to update your gcc compiler. >> >> However, there are some other workarounds, you can remove them when >> configuring CTK (check the options CTK_CXX_FLAGS and VISIBILITY_CXX_FLAGS) >> All these flags are automatically set in CTK/CMakeLists.txt, if we want to >> support "old" gcc compilers, then we should probably make sure they are >> supported using ctkFunctionCheckCompilerFlags() >> >> Let us know if you have more feedbacks. Feel free to post a patch with all >> the changes you needed to add to have it working. >> >> Thanks, >> Julien. >> >> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >> wrote: >> >> >>> Hi, >>> >>> I'm new to CTK and have been trying to get things going on Win32 Vista >>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>> debug >>> (because >>> QtMobility would not compile with just a release build of Qt) and VTK 5.7 >>> shared release >>> but Im running into a snag with QtMobility: >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>> Scanning dependencies of target QtMobility >>> [ 0%] Creating directories for 'QtMobility' >>> [ 0%] Performing download step (extract) for 'QtMobility' >>> -- extracting... >>> >>> >>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>> ensource-src-1.0.0.tar.gz' >>> >>> >>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>> y' >>> -- extracting... [tar xfz] >>> -- extracting... [analysis] >>> -- extracting... [copy] >>> -- extracting... [clean up] >>> -- extracting... done >>> [ 0%] Performing patch step for 'QtMobility' >>> [ 0%] No update step for 'QtMobility' >>> [ 0%] Performing configure step for 'QtMobility' >>> Checking selected modules: >>> ServiceFramework selected >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>> Checking available Qt >>> 4.6.3 >>> Checking make >>> ... mingw32-make found. >>> >>> Start of compile tests >>> End of compile tests >>> >>> >>> The file cannot be copied onto itself. >>> 0 file(s) copied. >>> Generating Mobility Headers... >>> The system cannot find the file specified. >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QAbstractSecuritySession >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QServiceContext >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QServiceFilter >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QServiceInterfaceDescriptor >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QServiceManager >>> Create header >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>> ility\include/QServicePluginInterface >>> >>> Running qmake... >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>> src/src.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>> /src/global/global.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>> /src/serviceframework/serviceframework.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>> tools/tools.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>> /tools/servicefw/servicefw.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>> /tools/servicexmlgen/servicexmlgen.pro >>> Reading >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>> /tools/icheck/icheck.pro >>> >>> configure has finished. You may run mingw32-make to build the project >>> now. >>> [ 0%] Performing build step for 'QtMobility' >>> 'make' is not recognized as an internal or external command, >>> operable program or batch file. >>> mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>> Error 1 >>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> >>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>> build.make >>> file with >>> "make" instead of "mingw32-make": >>> >>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>> $(CMAKE_COMMAND) -E cmake_progress_report >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>> "Performing build step for 'QtMobility'" >>> cd >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>> && make<----------------------------* >>> cd >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>> >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>> >>> and "make install" instead of "mingw32-make install": >>> >>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>> $(CMAKE_COMMAND) -E cmake_progress_report >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>> "Performing install step for 'QtMobility'" >>> cd >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>> && make install<-----------------------* >>> cd >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>> >>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>> >>> >>> I manually edited build.make and QtMobility proceeded to build. Log4Qt >>> built without problems, but then I run into >>> >>> Scanning dependencies of target CTKCore >>> [ 6%] Building CXX object >>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>> .cpp.obj >>> cc1plus.exe: error: unrecognized command line option >>> "-Wstrict-null-sentinel" >>> cc1plus.exe: error: unrecognized command line option >>> "-fvisibility=hidden" >>> cc1plus.exe: error: unrecognized command line option >>> "-fvisibility-inlines-hidde >>> n" >>> mingw32-make[5]: *** >>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>> obj] Error 1 >>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>> mingw32-make[3]: *** [all] Error 2 >>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>> Error >>> 2 >>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> the command line options appear in a number of flags.make files which >>> cannot >>> be edited since cmake >>> overwrites them with every call to mingw32-make. >>> >>> Id really like to try out CTK and hopefully contribute as our company >>> would >>> like to switch >>> from KWWidgets to Qt. >>> >>> regards, >>> Dean >>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > From dean.inglis at camris.ca Sun Aug 22 23:18:52 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Sun, 22 Aug 2010 19:18:52 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: <4C719B8A.5060509@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> Message-ID: <07402C8BCD56496787720BD08CB60600@Hyoid> thanks Sascha, looking forward to getting a bit further along. QtMobility now builds out of the box. I updated my mingw install with mingw from http://tdm-gcc.tdragon.net/download to get a more up to date gcc compiler (4.5.0) and that fixed the initial compiler flag issues discussed at the beginning of this thread. Can CTK be built in shared release configuration or are there some configuration restrictions? If so, are there additional configuration restrictions on Qt, VTK etc.? best regards, Dean > Hi Dean, > > commit > http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab > will fix your QtMobility build issue. With commit > http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 > the CTK compiler flags will also work on MinGW systems. > > You will still get unresolved references during linking of CTKCore (in > Log4Qt) which probably is due to a wrong linking order (Log4Qt is a static > library, listed at the end of the linker command line). I will try and fix > it in the next week. > > Best, > Sascha > > Am 21.08.2010 00:04, schrieb Dean Inglis: >> Hi Julien, >> >> thanks for the suggestions. Im using the latest stable release for MinGW >> and to >> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >> I commented out >> >> #----------------------------------------------------------------------------- >> # Set symbol visibility Flags >> # >> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >> # SET(VISIBILITY_CXX_FLAGS >> "-fvisibility=hidden -fvisibility-inlines-hidden") >> #ENDIF() >> >> and removed -Wstrict-null-sentinel >> >> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >> SET(cflags >> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings >> -D_FORTIFY_SOURCE=2") >> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >> # SET(CTK_CXX_FLAGS >> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel -Wsign-promo >> ${CTK_CXX_FLAGS}") >> SET(CTK_CXX_FLAGS >> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >> ${CTK_CXX_FLAGS}") >> ENDIF() >> >> Now Im getting the following linking errors: >> >> [ 83%] Performing build step for 'CTK-build' >> Linking CXX shared library ..\..\bin\libCTKCore.dll >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >> reference >> to `_imp___ZN7QString17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >> referenc >> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >> referenc >> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >> referenc >> e to `_imp___ZN7QObject13setObjectNameERK7QString' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >> referenc >> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >> referenc >> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >> referenc >> e to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >> referenc >> e to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >> referenc >> e to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >> `_imp___ZN14QReadW >> riteLock6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >> `_imp___ZN14QReadW >> riteLock11lockForReadEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >> `_imp___ZN7QStrin >> g17fromLatin1_helperEPKci' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >> `_imp___ZN14QRead >> WriteLock11lockForReadEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >> `_imp___ZN14QRead >> WriteLock6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >> `_imp___ZN14QRead >> WriteLock6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >> `_imp___ZN14QRea >> dWriteLock11lockForReadEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >> `_imp___ZN14QRea >> dWriteLock6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >> `_imp___ZN14QRea >> dWriteLockC1ENS_13RecursionModeE' >> >> etc etc etc >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >> undefi >> ned reference to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >> undefi >> ned reference to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >> undefi >> ned reference to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >> undefi >> ned reference to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >> undefi >> ned reference to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >> reference >> to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >> reference >> to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >> reference >> to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >> reference >> to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >> reference >> to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >> f): undefined reference to `_imp___ZN6QMutex4lockEv' >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >> collect2: ld returned 1 exit status >> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >> mingw32-make[3]: *** [all] Error 2 >> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >> Error >> 2 >> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >> mingw32-make: *** [all] Error 2 >> >> Also, what is the correct fix/workaround for getting QtMobility to >> properly >> compile without modifying cmake's generated build.make? >> >> thanks, >> Dean >> >> >>> Hi Dean, glad to hear you're giving a shot with CTK. >>> >>> The flags the compiler is complaining about are supported from gcc 4.0. >>> You >>> might want to update your gcc compiler. >>> >>> However, there are some other workarounds, you can remove them when >>> configuring CTK (check the options CTK_CXX_FLAGS and >>> VISIBILITY_CXX_FLAGS) >>> All these flags are automatically set in CTK/CMakeLists.txt, if we want >>> to >>> support "old" gcc compilers, then we should probably make sure they are >>> supported using ctkFunctionCheckCompilerFlags() >>> >>> Let us know if you have more feedbacks. Feel free to post a patch with >>> all >>> the changes you needed to add to have it working. >>> >>> Thanks, >>> Julien. >>> >>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>> wrote: >>> >>> >>>> Hi, >>>> >>>> I'm new to CTK and have been trying to get things going on Win32 Vista >>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>> debug >>>> (because >>>> QtMobility would not compile with just a release build of Qt) and VTK >>>> 5.7 >>>> shared release >>>> but Im running into a snag with QtMobility: >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>> Scanning dependencies of target QtMobility >>>> [ 0%] Creating directories for 'QtMobility' >>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>> -- extracting... >>>> >>>> >>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>> ensource-src-1.0.0.tar.gz' >>>> >>>> >>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>> y' >>>> -- extracting... [tar xfz] >>>> -- extracting... [analysis] >>>> -- extracting... [copy] >>>> -- extracting... [clean up] >>>> -- extracting... done >>>> [ 0%] Performing patch step for 'QtMobility' >>>> [ 0%] No update step for 'QtMobility' >>>> [ 0%] Performing configure step for 'QtMobility' >>>> Checking selected modules: >>>> ServiceFramework selected >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>> Checking available Qt >>>> 4.6.3 >>>> Checking make >>>> ... mingw32-make found. >>>> >>>> Start of compile tests >>>> End of compile tests >>>> >>>> >>>> The file cannot be copied onto itself. >>>> 0 file(s) copied. >>>> Generating Mobility Headers... >>>> The system cannot find the file specified. >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QAbstractSecuritySession >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QServiceContext >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QServiceFilter >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QServiceInterfaceDescriptor >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QServiceManager >>>> Create header >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>> ility\include/QServicePluginInterface >>>> >>>> Running qmake... >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>> src/src.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>> /src/global/global.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>> /src/serviceframework/serviceframework.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>> tools/tools.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>> /tools/servicefw/servicefw.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>> /tools/servicexmlgen/servicexmlgen.pro >>>> Reading >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>> /tools/icheck/icheck.pro >>>> >>>> configure has finished. You may run mingw32-make to build the project >>>> now. >>>> [ 0%] Performing build step for 'QtMobility' >>>> 'make' is not recognized as an internal or external command, >>>> operable program or batch file. >>>> mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>> Error 1 >>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>> mingw32-make: *** [all] Error 2 >>>> >>>> >>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>> build.make >>>> file with >>>> "make" instead of "mingw32-make": >>>> >>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>> "Performing build step for 'QtMobility'" >>>> cd >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>> && make<----------------------------* >>>> cd >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>> >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>> >>>> and "make install" instead of "mingw32-make install": >>>> >>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>> "Performing install step for 'QtMobility'" >>>> cd >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>> && make install<-----------------------* >>>> cd >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>> >>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>> >>>> >>>> I manually edited build.make and QtMobility proceeded to build. Log4Qt >>>> built without problems, but then I run into >>>> >>>> Scanning dependencies of target CTKCore >>>> [ 6%] Building CXX object >>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>> .cpp.obj >>>> cc1plus.exe: error: unrecognized command line option >>>> "-Wstrict-null-sentinel" >>>> cc1plus.exe: error: unrecognized command line option >>>> "-fvisibility=hidden" >>>> cc1plus.exe: error: unrecognized command line option >>>> "-fvisibility-inlines-hidde >>>> n" >>>> mingw32-make[5]: *** >>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>> obj] Error 1 >>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>> mingw32-make[3]: *** [all] Error 2 >>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>> Error >>>> 2 >>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>> mingw32-make: *** [all] Error 2 >>>> >>>> the command line options appear in a number of flags.make files which >>>> cannot >>>> be edited since cmake >>>> overwrites them with every call to mingw32-make. >>>> >>>> Id really like to try out CTK and hopefully contribute as our company >>>> would >>>> like to switch >>>> from KWWidgets to Qt. >>>> >>>> regards, >>>> Dean >>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From julien.finet at kitware.com Mon Aug 23 21:44:32 2010 From: julien.finet at kitware.com (Julien Finet) Date: Mon, 23 Aug 2010 17:44:32 -0400 Subject: [Ctk-developers] CTK support VTK trunk Message-ID: So far, I don't think anything in CTK was requiring the trunk version of VTK to be able to compile. In a close future, I would like to make some commits on CTK (Transfer function widgets) that require the last version (trunk) of VTK to compile. Will it generate any problem for anyone ? Thanks, Julien. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Mon Aug 23 21:48:43 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Mon, 23 Aug 2010 17:48:43 -0400 Subject: [Ctk-developers] Update CTK Message-ID: Hi Folks, Please, next time you update you repository and before you push any changes, make sure you do the following: git fetch upstream git reset --hard refs/remotes/upstream/master git pull upstream master where upstream is the remote identifying the official CTK repository. The command git config -l should help you to identify what's the remote corresponding to the offical CTK. For example: $ git config -l core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* remote.*origin*.url=*git://github.com/commontk/CTK.git* branch.master.remote=origin branch.master.merge=refs/heads/master In that case, *origin* identify the remote. *Why ? * To fix the history, the last few commits have been re-pushed. In the future, we will have some hooks that you will be able to install in order to avoid any problem ... Any question, let me know Thks Jc -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pieper at bwh.harvard.edu Mon Aug 23 22:17:44 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Mon, 23 Aug 2010 18:17:44 -0400 Subject: [Ctk-developers] Update CTK In-Reply-To: References: Message-ID: <4C72F388.9000802@bwh.harvard.edu> Hi Jc - Is this a one-time operation to do the hard reset? That is, for now we are still following the 'simple git' model describe here, correct? http://www.commontk.org/index.php/Build_Instructions#Simple_Git -Steve On Aug/23/10 5:48 PM, Jean-Christophe Fillion-Robin wrote: > > Hi Folks, > > Please, next time you update you repository and before you push any > changes, make sure you do the following: > > git fetch upstream > git reset --hard refs/remotes/upstream/master > git pull upstream master > > where upstream is the remote identifying the official CTK repository. > > The command git config -l should help you to identify what's the remote > corresponding to the offical CTK. > > For example: > > $ git config -l > > core.repositoryformatversion=0 > core.filemode=true > core.bare=false > core.logallrefupdates=true > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* > remote.*origin*.url=*git://github.com/commontk/CTK.git > * > branch.master.remote=origin > branch.master.merge=refs/heads/master > > In that case, *origin* identify the remote. > > > *Why ? * > > To fix the history, the last few commits have been re-pushed. > > In the future, we will have some hooks that you will be able to install > in order to avoid any problem ... > > Any question, let me know > > Thks > Jc > > > > -- > Phone: 1-518-836-2174 > Ext: 304 > > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From jchris.fillionr at kitware.com Mon Aug 23 22:25:54 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Mon, 23 Aug 2010 18:25:54 -0400 Subject: [Ctk-developers] Update CTK In-Reply-To: <4C72F388.9000802@bwh.harvard.edu> References: <4C72F388.9000802@bwh.harvard.edu> Message-ID: Correct - this is one time operation required only for CTK developer. (dashboard, slicer superbuild etc .. are not concerned) The linear history workflow as described on http://www.commontk.org/index.php/Build_Instructions#Simple_Git still apply. Nevertheless, if you plan to work on a new feature (more than on classes, a CTK library, etc .. ) you may want to move toward a branchy workflow. I started a page (work in progress): http://www.commontk.org/index.php/Contributing_to_CTK that will describe how to follow a branchy workflow Thks Jc On Mon, Aug 23, 2010 at 6:17 PM, Steve Pieper wrote: > Hi Jc - > > Is this a one-time operation to do the hard reset? > > That is, for now we are still following the 'simple git' model describe > here, correct? > > http://www.commontk.org/index.php/Build_Instructions#Simple_Git > > -Steve > > > On Aug/23/10 5:48 PM, Jean-Christophe Fillion-Robin wrote: > >> >> Hi Folks, >> >> Please, next time you update you repository and before you push any >> changes, make sure you do the following: >> >> git fetch upstream >> git reset --hard refs/remotes/upstream/master >> git pull upstream master >> >> where upstream is the remote identifying the official CTK repository. >> >> The command git config -l should help you to identify what's the remote >> corresponding to the offical CTK. >> >> For example: >> >> $ git config -l >> >> core.repositoryformatversion=0 >> core.filemode=true >> core.bare=false >> core.logallrefupdates=true >> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* >> remote.*origin*.url=*git://github.com/commontk/CTK.git >> * >> >> branch.master.remote=origin >> branch.master.merge=refs/heads/master >> >> In that case, *origin* identify the remote. >> >> >> *Why ? * >> >> To fix the history, the last few commits have been re-pushed. >> >> In the future, we will have some hooks that you will be able to install >> in order to avoid any problem ... >> >> Any question, let me know >> >> Thks >> Jc >> >> >> >> -- >> Phone: 1-518-836-2174 >> Ext: 304 >> >> >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pieper at bwh.harvard.edu Tue Aug 24 13:09:33 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Tue, 24 Aug 2010 09:09:33 -0400 Subject: [Ctk-developers] tcon - now - Fwd: 2010.09 CTK Hackfest - Hacking coordination tcon Message-ID: <4C73C48D.4050905@bwh.harvard.edu> Hi - We're having another of our weekly tcons leading up to the hackfest - anyone interested is welcome to call in... The telephone conference phone number from within the USA is toll-free at 1-800-704-9804 For international participants, you can dial-in using the USA number (404) 920-6604 The conference code is 718324. -Steve -------- Original Message -------- Subject: [Ctk-developers] 2010.09 CTK Hackfest - Hacking coordination tcon Date: Mon, 9 Aug 2010 09:55:53 -0400 From: Stephen Aylward To: ctk-developers at commontk.org If you would like to participate (in person or in spirit) in the next CTK Hackfest, please join us for a hacker-coordination meeting, tomorrow, 10-Aug-2010, 9am EDT. The telephone conference phone number from within the USA is toll-free at 1-800-704-9804 For international participants, you can dial-in using the USA number (404) 920-6604 The conference code is 718324. The next CTK Hackfest is being held in Barcelona Spain from 13-17 September, 2010. http://www.commontk.org/index.php/CTK-Hackfest-September-2010 We look forward to talking and hacking with you. Best regards, Ivo, Stephen, and Steve PS> For timezone conversion, visit: http://www.timeanddate.com/worldclock/city.html?n=179 -- ============================== Stephen R. Aylward, Ph.D. Director of Medical Imaging Research Kitware, Inc. - North Carolina Office http://www.kitware.com stephen.aylward (Skype) (919) 969-6990 x300 _______________________________________________ Ctk-developers mailing list Ctk-developers at commontk.org http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From julien.finet at kitware.com Mon Aug 23 21:36:32 2010 From: julien.finet at kitware.com (Julien Finet) Date: Mon, 23 Aug 2010 17:36:32 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: <07402C8BCD56496787720BD08CB60600@Hyoid> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> Message-ID: Hi Dean, CTK is supposed to build in shared release configuration. We may not have tested it too much though. It's a good reminder that we need to setup dashboard machines to build in static. We theoretically support Qt (>=4.6) in shared and static (didn't try static). Concerning the optional build of VTK, if I remember correctly, VTK (>5.6) must be built in shared only, I don't remember why though (anyone ?) Thanks, Julien. On Sun, Aug 22, 2010 at 7:18 PM, Dean Inglis wrote: > thanks Sascha, looking forward to getting a bit further along. QtMobility > now > builds out of the box. > > I updated my mingw install with mingw from > http://tdm-gcc.tdragon.net/download > to get a more up to date gcc compiler (4.5.0) and that fixed the initial > compiler flag issues discussed at the beginning of this thread. > > Can CTK be built in shared release configuration or are there some > configuration restrictions? If so, are there additional configuration > restrictions > on Qt, VTK etc.? > > best regards, > Dean > > > > Hi Dean, >> >> commit >> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6abwill fix your QtMobility build issue. With commit >> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981the CTK compiler flags will also work on MinGW systems. >> >> You will still get unresolved references during linking of CTKCore (in >> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a static >> library, listed at the end of the linker command line). I will try and fix >> it in the next week. >> >> Best, >> Sascha >> >> Am 21.08.2010 00:04, schrieb Dean Inglis: >> >>> Hi Julien, >>> >>> thanks for the suggestions. Im using the latest stable release for MinGW >>> and to >>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>> I commented out >>> >>> >>> #----------------------------------------------------------------------------- >>> # Set symbol visibility Flags >>> # >>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>> # SET(VISIBILITY_CXX_FLAGS >>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>> #ENDIF() >>> >>> and removed -Wstrict-null-sentinel >>> >>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>> SET(cflags >>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings >>> -D_FORTIFY_SOURCE=2") >>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>> # SET(CTK_CXX_FLAGS >>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>> -Wsign-promo >>> ${CTK_CXX_FLAGS}") >>> SET(CTK_CXX_FLAGS >>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>> ${CTK_CXX_FLAGS}") >>> ENDIF() >>> >>> Now Im getting the following linking errors: >>> >>> [ 83%] Performing build step for 'CTK-build' >>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>> reference >>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>> referenc >>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>> referenc >>> e to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>> referenc >>> e to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>> referenc >>> e to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>> `_imp___ZN14QReadW >>> riteLock6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>> `_imp___ZN14QReadW >>> riteLock11lockForReadEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>> `_imp___ZN7QStrin >>> g17fromLatin1_helperEPKci' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock11lockForReadEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLock11lockForReadEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLock6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLockC1ENS_13RecursionModeE' >>> >>> etc etc etc >>> >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>> undefi >>> ned reference to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>> undefi >>> ned reference to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>> reference >>> to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>> reference >>> to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> collect2: ld returned 1 exit status >>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>> mingw32-make[3]: *** [all] Error 2 >>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>> Error >>> 2 >>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> Also, what is the correct fix/workaround for getting QtMobility to >>> properly >>> compile without modifying cmake's generated build.make? >>> >>> thanks, >>> Dean >>> >>> >>> Hi Dean, glad to hear you're giving a shot with CTK. >>>> >>>> The flags the compiler is complaining about are supported from gcc 4.0. >>>> You >>>> might want to update your gcc compiler. >>>> >>>> However, there are some other workarounds, you can remove them when >>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>> VISIBILITY_CXX_FLAGS) >>>> All these flags are automatically set in CTK/CMakeLists.txt, if we want >>>> to >>>> support "old" gcc compilers, then we should probably make sure they are >>>> supported using ctkFunctionCheckCompilerFlags() >>>> >>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>> all >>>> the changes you needed to add to have it working. >>>> >>>> Thanks, >>>> Julien. >>>> >>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>> wrote: >>>> >>>> >>>> Hi, >>>>> >>>>> I'm new to CTK and have been trying to get things going on Win32 Vista >>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>> debug >>>>> (because >>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>> 5.7 >>>>> shared release >>>>> but Im running into a snag with QtMobility: >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>> Scanning dependencies of target QtMobility >>>>> [ 0%] Creating directories for 'QtMobility' >>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>> -- extracting... >>>>> >>>>> >>>>> >>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>> ensource-src-1.0.0.tar.gz' >>>>> >>>>> >>>>> >>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>> y' >>>>> -- extracting... [tar xfz] >>>>> -- extracting... [analysis] >>>>> -- extracting... [copy] >>>>> -- extracting... [clean up] >>>>> -- extracting... done >>>>> [ 0%] Performing patch step for 'QtMobility' >>>>> [ 0%] No update step for 'QtMobility' >>>>> [ 0%] Performing configure step for 'QtMobility' >>>>> Checking selected modules: >>>>> ServiceFramework selected >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> Checking available Qt >>>>> 4.6.3 >>>>> Checking make >>>>> ... mingw32-make found. >>>>> >>>>> Start of compile tests >>>>> End of compile tests >>>>> >>>>> >>>>> The file cannot be copied onto itself. >>>>> 0 file(s) copied. >>>>> Generating Mobility Headers... >>>>> The system cannot find the file specified. >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QAbstractSecuritySession >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceContext >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceFilter >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceInterfaceDescriptor >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceManager >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServicePluginInterface >>>>> >>>>> Running qmake... >>>>> Reading >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>> src/src.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /src/global/global.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /src/serviceframework/serviceframework.pro >>>>> Reading >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>> tools/tools.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/servicefw/servicefw.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/icheck/icheck.pro >>>>> >>>>> configure has finished. You may run mingw32-make to build the project >>>>> now. >>>>> [ 0%] Performing build step for 'QtMobility' >>>>> 'make' is not recognized as an internal or external command, >>>>> operable program or batch file. >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>> Error 1 >>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> >>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>> build.make >>>>> file with >>>>> "make" instead of "mingw32-make": >>>>> >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>> "Performing build step for 'QtMobility'" >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && make<----------------------------* >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>> >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>> >>>>> and "make install" instead of "mingw32-make install": >>>>> >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>> "Performing install step for 'QtMobility'" >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && make install<-----------------------* >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>> >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>> >>>>> >>>>> I manually edited build.make and QtMobility proceeded to build. Log4Qt >>>>> built without problems, but then I run into >>>>> >>>>> Scanning dependencies of target CTKCore >>>>> [ 6%] Building CXX object >>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>> .cpp.obj >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-Wstrict-null-sentinel" >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-fvisibility=hidden" >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-fvisibility-inlines-hidde >>>>> n" >>>>> mingw32-make[5]: *** >>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>> obj] Error 1 >>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>> mingw32-make[3]: *** [all] Error 2 >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>> Error >>>>> 2 >>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> the command line options appear in a number of flags.make files which >>>>> cannot >>>>> be edited since cmake >>>>> overwrites them with every call to mingw32-make. >>>>> >>>>> Id really like to try out CTK and hopefully contribute as our company >>>>> would >>>>> like to switch >>>>> from KWWidgets to Qt. >>>>> >>>>> regards, >>>>> Dean >>>>> >>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > _______________________________________________ > 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 pieper at bwh.harvard.edu Thu Aug 26 11:59:59 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Thu, 26 Aug 2010 07:59:59 -0400 Subject: [Ctk-developers] Hotel info - Fwd: CTK hackfest Sept 13-17 in Barcelona Message-ID: <4C76573F.2000505@bwh.harvard.edu> Hi CTKers - Hackfest plans are coming together nicely - Barcelona will be an exciting place to visit and work! Travel info is now on the wiki - see email from Xavi below. Note that you should be making hotel arrangement *asap*. http://www.commontk.org/index.php/CTK-Hackfest-September-2010#Travel_.26_Hotel Early reminder: We'll have another organizing tcon next Tuesday at 9am eastern time. -Steve *From:* Xavier Planes *Sent:* mi?rcoles, 25 de agosto de 2010 14:15 *To:* 'ctk-developers at commontk.org' *Subject:* CTK hackfest Sept 13-17 in Barcelona Dear all, We have made a pre hotel booking for CTK in a hotel that is very close to the meeting place. We booked 10 rooms (individual or double). There?s a reduced price for UPF (15%), so you can directly contact to the hotel using the name ?CTK UPF? and you will get the reduction. This reduction will be applied individually, not for a group. To *formalize* this pre hotel booking you need to contact with the hotel and provide the *credit card number and Expiry date*. This pre hotel booking is valid until *06.09.10*. If you will stay more days in Barcelona, you can request them to the hotel *as* *soon as possible*. Details: ? Hotel booking name: ?CTK UPF? ? Hotel: ?Hotel Amrey Diagonal?: http://www.amrey-hotels.com/hoteldiagonal/home.php?lang=EN&c=1 ? Arrival date: 13.09.10 (Monday) ? Departure date: 17.09.10 (Friday) ? Daily rate: o 95.89 ? VAT Incl. ? DOBLE o 85.79 ? VAT Incl. ? SINGLE ? Breakfast included ? You need to pay directly when you arrive on 13.09.10 until 18H If you need further details or we can give you more support, please contact me. Best, *Xavier Planes Cid* Scientific Software Developer (SSD) Research Group for Computational Imaging and Simulation Technologies in Biomedicine - CISTIB Information & Communication Technologies Department ? D. 55.117 Universitat Pompeu Fabra C/ T?nger, 122-140 - E08018 Barcelona - Spain Phone: +34 93 542 13 50 Fax: +34 93 542 14 46 Office number : 55 105 From s.zelzer at dkfz-heidelberg.de Thu Aug 26 16:53:41 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Thu, 26 Aug 2010 18:53:41 +0200 Subject: [Ctk-developers] mingw build failure In-Reply-To: <07402C8BCD56496787720BD08CB60600@Hyoid> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> Message-ID: <4C769C15.8020907@dkfz-heidelberg.de> Hi, with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 which has Qt 4.6.3 and MinGW with gcc 4.4.0): http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 However, vtklibxml2 seems to have some troubles compiling, so the VTK dependent parts of CTK still require some work. Best, Sascha On 08/23/2010 01:18 AM, Dean Inglis wrote: > thanks Sascha, looking forward to getting a bit further along. QtMobility > now > builds out of the box. > > I updated my mingw install with mingw from > http://tdm-gcc.tdragon.net/download > to get a more up to date gcc compiler (4.5.0) and that fixed the initial > compiler flag issues discussed at the beginning of this thread. > > Can CTK be built in shared release configuration or are there some > configuration restrictions? If so, are there additional configuration > restrictions > on Qt, VTK etc.? > > best regards, > Dean > > > >> Hi Dean, >> >> commit >> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >> will fix your QtMobility build issue. With commit >> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >> the CTK compiler flags will also work on MinGW systems. >> >> You will still get unresolved references during linking of CTKCore (in >> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a static >> library, listed at the end of the linker command line). I will try and fix >> it in the next week. >> >> Best, >> Sascha >> >> Am 21.08.2010 00:04, schrieb Dean Inglis: >> >>> Hi Julien, >>> >>> thanks for the suggestions. Im using the latest stable release for MinGW >>> and to >>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>> I commented out >>> >>> #----------------------------------------------------------------------------- >>> # Set symbol visibility Flags >>> # >>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>> # SET(VISIBILITY_CXX_FLAGS >>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>> #ENDIF() >>> >>> and removed -Wstrict-null-sentinel >>> >>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>> SET(cflags >>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings >>> -D_FORTIFY_SOURCE=2") >>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>> # SET(CTK_CXX_FLAGS >>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel -Wsign-promo >>> ${CTK_CXX_FLAGS}") >>> SET(CTK_CXX_FLAGS >>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>> ${CTK_CXX_FLAGS}") >>> ENDIF() >>> >>> Now Im getting the following linking errors: >>> >>> [ 83%] Performing build step for 'CTK-build' >>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>> reference >>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>> referenc >>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>> referenc >>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>> referenc >>> e to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>> referenc >>> e to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>> referenc >>> e to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>> `_imp___ZN14QReadW >>> riteLock6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>> `_imp___ZN14QReadW >>> riteLock11lockForReadEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>> `_imp___ZN7QStrin >>> g17fromLatin1_helperEPKci' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock11lockForReadEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>> `_imp___ZN14QRead >>> WriteLock6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLock11lockForReadEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLock6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>> `_imp___ZN14QRea >>> dWriteLockC1ENS_13RecursionModeE' >>> >>> etc etc etc >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>> undefi >>> ned reference to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>> undefi >>> ned reference to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>> undefi >>> ned reference to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>> reference >>> to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>> reference >>> to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>> reference >>> to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>> collect2: ld returned 1 exit status >>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>> mingw32-make[3]: *** [all] Error 2 >>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>> Error >>> 2 >>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> Also, what is the correct fix/workaround for getting QtMobility to >>> properly >>> compile without modifying cmake's generated build.make? >>> >>> thanks, >>> Dean >>> >>> >>> >>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>> >>>> The flags the compiler is complaining about are supported from gcc 4.0. >>>> You >>>> might want to update your gcc compiler. >>>> >>>> However, there are some other workarounds, you can remove them when >>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>> VISIBILITY_CXX_FLAGS) >>>> All these flags are automatically set in CTK/CMakeLists.txt, if we want >>>> to >>>> support "old" gcc compilers, then we should probably make sure they are >>>> supported using ctkFunctionCheckCompilerFlags() >>>> >>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>> all >>>> the changes you needed to add to have it working. >>>> >>>> Thanks, >>>> Julien. >>>> >>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>> wrote: >>>> >>>> >>>> >>>>> Hi, >>>>> >>>>> I'm new to CTK and have been trying to get things going on Win32 Vista >>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>> debug >>>>> (because >>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>> 5.7 >>>>> shared release >>>>> but Im running into a snag with QtMobility: >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>> Scanning dependencies of target QtMobility >>>>> [ 0%] Creating directories for 'QtMobility' >>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>> -- extracting... >>>>> >>>>> >>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>> ensource-src-1.0.0.tar.gz' >>>>> >>>>> >>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>> y' >>>>> -- extracting... [tar xfz] >>>>> -- extracting... [analysis] >>>>> -- extracting... [copy] >>>>> -- extracting... [clean up] >>>>> -- extracting... done >>>>> [ 0%] Performing patch step for 'QtMobility' >>>>> [ 0%] No update step for 'QtMobility' >>>>> [ 0%] Performing configure step for 'QtMobility' >>>>> Checking selected modules: >>>>> ServiceFramework selected >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> Checking available Qt >>>>> 4.6.3 >>>>> Checking make >>>>> ... mingw32-make found. >>>>> >>>>> Start of compile tests >>>>> End of compile tests >>>>> >>>>> >>>>> The file cannot be copied onto itself. >>>>> 0 file(s) copied. >>>>> Generating Mobility Headers... >>>>> The system cannot find the file specified. >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QAbstractSecuritySession >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceContext >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceFilter >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceInterfaceDescriptor >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServiceManager >>>>> Create header >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>> ility\include/QServicePluginInterface >>>>> >>>>> Running qmake... >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>> src/src.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /src/global/global.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /src/serviceframework/serviceframework.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>> tools/tools.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/servicefw/servicefw.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>> Reading >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>> /tools/icheck/icheck.pro >>>>> >>>>> configure has finished. You may run mingw32-make to build the project >>>>> now. >>>>> [ 0%] Performing build step for 'QtMobility' >>>>> 'make' is not recognized as an internal or external command, >>>>> operable program or batch file. >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>> Error 1 >>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> >>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>> build.make >>>>> file with >>>>> "make" instead of "mingw32-make": >>>>> >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>> "Performing build step for 'QtMobility'" >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && make<----------------------------* >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>> >>>>> and "make install" instead of "mingw32-make install": >>>>> >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>> "Performing install step for 'QtMobility'" >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && make install<-----------------------* >>>>> cd >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>> >>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>> >>>>> >>>>> I manually edited build.make and QtMobility proceeded to build. Log4Qt >>>>> built without problems, but then I run into >>>>> >>>>> Scanning dependencies of target CTKCore >>>>> [ 6%] Building CXX object >>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>> .cpp.obj >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-Wstrict-null-sentinel" >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-fvisibility=hidden" >>>>> cc1plus.exe: error: unrecognized command line option >>>>> "-fvisibility-inlines-hidde >>>>> n" >>>>> mingw32-make[5]: *** >>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>> obj] Error 1 >>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>> mingw32-make[3]: *** [all] Error 2 >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>> Error >>>>> 2 >>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> the command line options appear in a number of flags.make files which >>>>> cannot >>>>> be edited since cmake >>>>> overwrites them with every call to mingw32-make. >>>>> >>>>> Id really like to try out CTK and hopefully contribute as our company >>>>> would >>>>> like to switch >>>>> from KWWidgets to Qt. >>>>> >>>>> regards, >>>>> Dean >>>>> >>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > From jchris.fillionr at kitware.com Thu Aug 26 17:00:14 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 26 Aug 2010 13:00:14 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: <4C769C15.8020907@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: Thank Sasha :) What the problem with VTK ? It would be great to share the problem on the vtk developer list. Could you take care of that ? Thks Jc On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer wrote: > Hi, > > with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 > which has Qt 4.6.3 and MinGW with gcc 4.4.0): > > > http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 > > http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 > > http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 > > However, vtklibxml2 seems to have some troubles compiling, so the VTK > dependent parts of CTK still require some work. > > Best, > Sascha > > > > On 08/23/2010 01:18 AM, Dean Inglis wrote: > >> thanks Sascha, looking forward to getting a bit further along. QtMobility >> now >> builds out of the box. >> >> I updated my mingw install with mingw from >> http://tdm-gcc.tdragon.net/download >> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >> compiler flag issues discussed at the beginning of this thread. >> >> Can CTK be built in shared release configuration or are there some >> configuration restrictions? If so, are there additional configuration >> restrictions >> on Qt, VTK etc.? >> >> best regards, >> Dean >> >> >> >> >>> Hi Dean, >>> >>> commit >>> >>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>> will fix your QtMobility build issue. With commit >>> >>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>> the CTK compiler flags will also work on MinGW systems. >>> >>> You will still get unresolved references during linking of CTKCore (in >>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>> static >>> library, listed at the end of the linker command line). I will try and >>> fix >>> it in the next week. >>> >>> Best, >>> Sascha >>> >>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>> >>> >>>> Hi Julien, >>>> >>>> thanks for the suggestions. Im using the latest stable release for >>>> MinGW >>>> and to >>>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>>> I commented out >>>> >>>> >>>> #----------------------------------------------------------------------------- >>>> # Set symbol visibility Flags >>>> # >>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>> # SET(VISIBILITY_CXX_FLAGS >>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>> #ENDIF() >>>> >>>> and removed -Wstrict-null-sentinel >>>> >>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>> SET(cflags >>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>> -Wwrite-strings >>>> -D_FORTIFY_SOURCE=2") >>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>> # SET(CTK_CXX_FLAGS >>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>>> -Wsign-promo >>>> ${CTK_CXX_FLAGS}") >>>> SET(CTK_CXX_FLAGS >>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>> ${CTK_CXX_FLAGS}") >>>> ENDIF() >>>> >>>> Now Im getting the following linking errors: >>>> >>>> [ 83%] Performing build step for 'CTK-build' >>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>> reference >>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>>> referenc >>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>> `_imp___ZN14QReadW >>>> riteLock6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>> `_imp___ZN14QReadW >>>> riteLock11lockForReadEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>> `_imp___ZN7QStrin >>>> g17fromLatin1_helperEPKci' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock11lockForReadEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLock11lockForReadEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLock6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLockC1ENS_13RecursionModeE' >>>> >>>> etc etc etc >>>> >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>> reference >>>> to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>> reference >>>> to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> collect2: ld returned 1 exit status >>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>> mingw32-make[3]: *** [all] Error 2 >>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>> Error >>>> 2 >>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>> mingw32-make: *** [all] Error 2 >>>> >>>> Also, what is the correct fix/workaround for getting QtMobility to >>>> properly >>>> compile without modifying cmake's generated build.make? >>>> >>>> thanks, >>>> Dean >>>> >>>> >>>> >>>> >>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>> >>>>> The flags the compiler is complaining about are supported from gcc 4.0. >>>>> You >>>>> might want to update your gcc compiler. >>>>> >>>>> However, there are some other workarounds, you can remove them when >>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>> VISIBILITY_CXX_FLAGS) >>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we want >>>>> to >>>>> support "old" gcc compilers, then we should probably make sure they are >>>>> supported using ctkFunctionCheckCompilerFlags() >>>>> >>>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>>> all >>>>> the changes you needed to add to have it working. >>>>> >>>>> Thanks, >>>>> Julien. >>>>> >>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>> wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm new to CTK and have been trying to get things going on Win32 Vista >>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>>> debug >>>>>> (because >>>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>>> 5.7 >>>>>> shared release >>>>>> but Im running into a snag with QtMobility: >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>> Scanning dependencies of target QtMobility >>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>> -- extracting... >>>>>> >>>>>> >>>>>> >>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>> ensource-src-1.0.0.tar.gz' >>>>>> >>>>>> >>>>>> >>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>> y' >>>>>> -- extracting... [tar xfz] >>>>>> -- extracting... [analysis] >>>>>> -- extracting... [copy] >>>>>> -- extracting... [clean up] >>>>>> -- extracting... done >>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>> [ 0%] No update step for 'QtMobility' >>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>> Checking selected modules: >>>>>> ServiceFramework selected >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> Checking available Qt >>>>>> 4.6.3 >>>>>> Checking make >>>>>> ... mingw32-make found. >>>>>> >>>>>> Start of compile tests >>>>>> End of compile tests >>>>>> >>>>>> >>>>>> The file cannot be copied onto itself. >>>>>> 0 file(s) copied. >>>>>> Generating Mobility Headers... >>>>>> The system cannot find the file specified. >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QAbstractSecuritySession >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceContext >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceFilter >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceInterfaceDescriptor >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceManager >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServicePluginInterface >>>>>> >>>>>> Running qmake... >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>> src/src.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /src/global/global.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /src/serviceframework/serviceframework.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>> tools/tools.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/servicefw/servicefw.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>> Reading >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/icheck/icheck.pro >>>>>> >>>>>> configure has finished. You may run mingw32-make to build the project >>>>>> now. >>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>> 'make' is not recognized as an internal or external command, >>>>>> operable program or batch file. >>>>>> mingw32-make[2]: *** >>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>> Error 1 >>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> >>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>> build.make >>>>>> file with >>>>>> "make" instead of "mingw32-make": >>>>>> >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>> "Performing build step for 'QtMobility'" >>>>>> cd >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && make<----------------------------* >>>>>> cd >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>> >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>> >>>>>> and "make install" instead of "mingw32-make install": >>>>>> >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>> "Performing install step for 'QtMobility'" >>>>>> cd >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && make install<-----------------------* >>>>>> cd >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>> >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>> >>>>>> >>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>> Log4Qt >>>>>> built without problems, but then I run into >>>>>> >>>>>> Scanning dependencies of target CTKCore >>>>>> [ 6%] Building CXX object >>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>> .cpp.obj >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-Wstrict-null-sentinel" >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-fvisibility=hidden" >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-fvisibility-inlines-hidde >>>>>> n" >>>>>> mingw32-make[5]: *** >>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>> obj] Error 1 >>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>> Error >>>>>> 2 >>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> the command line options appear in a number of flags.make files which >>>>>> cannot >>>>>> be edited since cmake >>>>>> overwrites them with every call to mingw32-make. >>>>>> >>>>>> Id really like to try out CTK and hopefully contribute as our company >>>>>> would >>>>>> like to switch >>>>>> from KWWidgets to Qt. >>>>>> >>>>>> regards, >>>>>> Dean >>>>>> >>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> >> > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Thu Aug 26 19:15:56 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Thu, 26 Aug 2010 15:15:56 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: <4C769C15.8020907@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: using Qt 4.6.3, non SDK, MinGW with gcc 4.5.0 some odd things: Ive configured to build ctk shared Release but QtMobility is built Debug: QtServiceFrameworkd.dll libQtServiceFrameworkd.a I couldnt compile CTKCore due to Scanning dependencies of target CTKCore [ 6%] Building CXX object Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser .cpp.obj cc1plus.exe: error: unrecognized command line option "-fenable-auto-import" mingw32-make[5]: *** [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. obj] Error 1 mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 2 mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 mingw32-make: *** [all] Error 2 according to, for example http://old.nabble.com/link-error---enable-auto-imports-for-details-td20734348.html http://www.cygwin.com/ml/cygwin/2009-06/msg00183.html one can SET(cflags "-Wl,--enable-auto-import ${cflags}") but that didnt work. so in ctk root CmakeLists I commented out # IF(MINGW) # suppress warnings about auto imported symbols # SET(cflags "--enable-auto-import ${cflags}") # ENDIF() and I can build CTK-Build: libCTKCore.dll, CTKCoreCppTests.exe, libCTKPluginFramework.dll, CTKPluginFrameworkCppTests.exe, liborg_commontk_eventbus.dll but get warnings like: Info: resolving ___stack_chk_guard by linking to __imp____stack_chk_guard (auto- import) c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c ommand line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. currently trying to build VTK components (didnt realize ctk build would git clone vtk instead of using the one I already have!!!) ... ill keep you posted Dean > Hi, > > with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 > which has Qt 4.6.3 and MinGW with gcc 4.4.0): > > http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 > http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 > http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 > > However, vtklibxml2 seems to have some troubles compiling, so the VTK > dependent parts of CTK still require some work. > > Best, > Sascha > > > On 08/23/2010 01:18 AM, Dean Inglis wrote: >> thanks Sascha, looking forward to getting a bit further along. >> QtMobility >> now >> builds out of the box. >> >> I updated my mingw install with mingw from >> http://tdm-gcc.tdragon.net/download >> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >> compiler flag issues discussed at the beginning of this thread. >> >> Can CTK be built in shared release configuration or are there some >> configuration restrictions? If so, are there additional configuration >> restrictions >> on Qt, VTK etc.? >> >> best regards, >> Dean >> >> >> >>> Hi Dean, >>> >>> commit >>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>> will fix your QtMobility build issue. With commit >>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>> the CTK compiler flags will also work on MinGW systems. >>> >>> You will still get unresolved references during linking of CTKCore (in >>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>> static >>> library, listed at the end of the linker command line). I will try and >>> fix >>> it in the next week. >>> >>> Best, >>> Sascha >>> >>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>> >>>> Hi Julien, >>>> >>>> thanks for the suggestions. Im using the latest stable release for >>>> MinGW >>>> and to >>>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>>> I commented out >>>> >>>> #----------------------------------------------------------------------------- >>>> # Set symbol visibility Flags >>>> # >>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>> # SET(VISIBILITY_CXX_FLAGS >>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>> #ENDIF() >>>> >>>> and removed -Wstrict-null-sentinel >>>> >>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>> SET(cflags >>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings >>>> -D_FORTIFY_SOURCE=2") >>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>> # SET(CTK_CXX_FLAGS >>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>>> -Wsign-promo >>>> ${CTK_CXX_FLAGS}") >>>> SET(CTK_CXX_FLAGS >>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>> ${CTK_CXX_FLAGS}") >>>> ENDIF() >>>> >>>> Now Im getting the following linking errors: >>>> >>>> [ 83%] Performing build step for 'CTK-build' >>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>> reference >>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>>> referenc >>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>>> referenc >>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>>> referenc >>>> e to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>> `_imp___ZN14QReadW >>>> riteLock6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>> `_imp___ZN14QReadW >>>> riteLock11lockForReadEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>> `_imp___ZN7QStrin >>>> g17fromLatin1_helperEPKci' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock11lockForReadEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>> `_imp___ZN14QRead >>>> WriteLock6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLock11lockForReadEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLock6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>> `_imp___ZN14QRea >>>> dWriteLockC1ENS_13RecursionModeE' >>>> >>>> etc etc etc >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>> undefi >>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>> reference >>>> to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>> reference >>>> to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>> reference >>>> to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>> collect2: ld returned 1 exit status >>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>> mingw32-make[3]: *** [all] Error 2 >>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>> Error >>>> 2 >>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>> mingw32-make: *** [all] Error 2 >>>> >>>> Also, what is the correct fix/workaround for getting QtMobility to >>>> properly >>>> compile without modifying cmake's generated build.make? >>>> >>>> thanks, >>>> Dean >>>> >>>> >>>> >>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>> >>>>> The flags the compiler is complaining about are supported from gcc >>>>> 4.0. >>>>> You >>>>> might want to update your gcc compiler. >>>>> >>>>> However, there are some other workarounds, you can remove them when >>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>> VISIBILITY_CXX_FLAGS) >>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>> want >>>>> to >>>>> support "old" gcc compilers, then we should probably make sure they >>>>> are >>>>> supported using ctkFunctionCheckCompilerFlags() >>>>> >>>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>>> all >>>>> the changes you needed to add to have it working. >>>>> >>>>> Thanks, >>>>> Julien. >>>>> >>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>> wrote: >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>> Vista >>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>>> debug >>>>>> (because >>>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>>> 5.7 >>>>>> shared release >>>>>> but Im running into a snag with QtMobility: >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>> Scanning dependencies of target QtMobility >>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>> -- extracting... >>>>>> >>>>>> >>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>> ensource-src-1.0.0.tar.gz' >>>>>> >>>>>> >>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>> y' >>>>>> -- extracting... [tar xfz] >>>>>> -- extracting... [analysis] >>>>>> -- extracting... [copy] >>>>>> -- extracting... [clean up] >>>>>> -- extracting... done >>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>> [ 0%] No update step for 'QtMobility' >>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>> Checking selected modules: >>>>>> ServiceFramework selected >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> Checking available Qt >>>>>> 4.6.3 >>>>>> Checking make >>>>>> ... mingw32-make found. >>>>>> >>>>>> Start of compile tests >>>>>> End of compile tests >>>>>> >>>>>> >>>>>> The file cannot be copied onto itself. >>>>>> 0 file(s) copied. >>>>>> Generating Mobility Headers... >>>>>> The system cannot find the file specified. >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QAbstractSecuritySession >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceContext >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceFilter >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceInterfaceDescriptor >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServiceManager >>>>>> Create header >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>> ility\include/QServicePluginInterface >>>>>> >>>>>> Running qmake... >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>> src/src.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /src/global/global.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /src/serviceframework/serviceframework.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>> tools/tools.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/servicefw/servicefw.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>> Reading >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>> /tools/icheck/icheck.pro >>>>>> >>>>>> configure has finished. You may run mingw32-make to build the project >>>>>> now. >>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>> 'make' is not recognized as an internal or external command, >>>>>> operable program or batch file. >>>>>> mingw32-make[2]: *** >>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>> Error 1 >>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> >>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>> build.make >>>>>> file with >>>>>> "make" instead of "mingw32-make": >>>>>> >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>> "Performing build step for 'QtMobility'" >>>>>> cd >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && make<----------------------------* >>>>>> cd >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>> >>>>>> and "make install" instead of "mingw32-make install": >>>>>> >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>> "Performing install step for 'QtMobility'" >>>>>> cd >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && make install<-----------------------* >>>>>> cd >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>> >>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>> >>>>>> >>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>> Log4Qt >>>>>> built without problems, but then I run into >>>>>> >>>>>> Scanning dependencies of target CTKCore >>>>>> [ 6%] Building CXX object >>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>> .cpp.obj >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-Wstrict-null-sentinel" >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-fvisibility=hidden" >>>>>> cc1plus.exe: error: unrecognized command line option >>>>>> "-fvisibility-inlines-hidde >>>>>> n" >>>>>> mingw32-make[5]: *** >>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>> obj] Error 1 >>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>> Error >>>>>> 2 >>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> the command line options appear in a number of flags.make files which >>>>>> cannot >>>>>> be edited since cmake >>>>>> overwrites them with every call to mingw32-make. >>>>>> >>>>>> Id really like to try out CTK and hopefully contribute as our company >>>>>> would >>>>>> like to switch >>>>>> from KWWidgets to Qt. >>>>>> >>>>>> regards, >>>>>> Dean >>>>>> >>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>>> >>>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >> > From julien.finet at kitware.com Thu Aug 26 19:21:07 2010 From: julien.finet at kitware.com (Julien Finet) Date: Thu, 26 Aug 2010 15:21:07 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: To answer your last question, you can give a custom VTK directory to CTK: ccmake -DVTK_DIR:PATH=mypath ../CTK It will then not try to git download a VTK for you but you the one you provide. Julien. On Thu, Aug 26, 2010 at 3:15 PM, Dean Inglis wrote: > using Qt 4.6.3, non SDK, MinGW with gcc 4.5.0 > > some odd things: Ive configured to build ctk shared Release but > QtMobility is built Debug: > QtServiceFrameworkd.dll > libQtServiceFrameworkd.a > > I couldnt compile CTKCore due to > > > Scanning dependencies of target CTKCore > [ 6%] Building CXX object > Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser > .cpp.obj > cc1plus.exe: error: unrecognized command line option "-fenable-auto-import" > > mingw32-make[5]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. > obj] Error 1 > mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > according to, for example > > http://old.nabble.com/link-error---enable-auto-imports-for-details-td20734348.html > http://www.cygwin.com/ml/cygwin/2009-06/msg00183.html > > one can > SET(cflags "-Wl,--enable-auto-import ${cflags}") > > but that didnt work. so in ctk root CmakeLists I commented out > # IF(MINGW) > # suppress warnings about auto imported symbols > # SET(cflags "--enable-auto-import ${cflags}") > # ENDIF() > > and I can build CTK-Build: libCTKCore.dll, CTKCoreCppTests.exe, > libCTKPluginFramework.dll, > CTKPluginFrameworkCppTests.exe, liborg_commontk_eventbus.dll > > but get warnings like: > > Info: resolving ___stack_chk_guard by linking to __imp____stack_chk_guard > (auto- > import) > c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: > warning: a > uto-importing has been activated without --enable-auto-import specified on > the c > ommand line. > This should work unless it involves constant data structures referencing > symbols > from auto-imported DLLs. > > currently trying to build VTK components (didnt realize ctk build would git > clone > vtk instead of using the one I already have!!!) ... ill keep you posted > > Dean > > > > Hi, >> >> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >> >> >> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >> >> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >> >> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >> >> However, vtklibxml2 seems to have some troubles compiling, so the VTK >> dependent parts of CTK still require some work. >> >> Best, >> Sascha >> >> >> On 08/23/2010 01:18 AM, Dean Inglis wrote: >> >>> thanks Sascha, looking forward to getting a bit further along. QtMobility >>> now >>> builds out of the box. >>> >>> I updated my mingw install with mingw from >>> http://tdm-gcc.tdragon.net/download >>> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >>> compiler flag issues discussed at the beginning of this thread. >>> >>> Can CTK be built in shared release configuration or are there some >>> configuration restrictions? If so, are there additional configuration >>> restrictions >>> on Qt, VTK etc.? >>> >>> best regards, >>> Dean >>> >>> >>> >>> Hi Dean, >>>> >>>> commit >>>> >>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>> will fix your QtMobility build issue. With commit >>>> >>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>> the CTK compiler flags will also work on MinGW systems. >>>> >>>> You will still get unresolved references during linking of CTKCore (in >>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>> static >>>> library, listed at the end of the linker command line). I will try and >>>> fix >>>> it in the next week. >>>> >>>> Best, >>>> Sascha >>>> >>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>> >>>> Hi Julien, >>>>> >>>>> thanks for the suggestions. Im using the latest stable release for >>>>> MinGW >>>>> and to >>>>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>>>> I commented out >>>>> >>>>> >>>>> #----------------------------------------------------------------------------- >>>>> # Set symbol visibility Flags >>>>> # >>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> # SET(VISIBILITY_CXX_FLAGS >>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>> #ENDIF() >>>>> >>>>> and removed -Wstrict-null-sentinel >>>>> >>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> SET(cflags >>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>>> -Wwrite-strings >>>>> -D_FORTIFY_SOURCE=2") >>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>> # SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>>>> -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> ENDIF() >>>>> >>>>> Now Im getting the following linking errors: >>>>> >>>>> [ 83%] Performing build step for 'CTK-build' >>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>>> reference >>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>>>> referenc >>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>> `_imp___ZN7QStrin >>>>> g17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLockC1ENS_13RecursionModeE' >>>>> >>>>> etc etc etc >>>>> >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> collect2: ld returned 1 exit status >>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>> mingw32-make[3]: *** [all] Error 2 >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>> Error >>>>> 2 >>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>> properly >>>>> compile without modifying cmake's generated build.make? >>>>> >>>>> thanks, >>>>> Dean >>>>> >>>>> >>>>> >>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>> >>>>>> The flags the compiler is complaining about are supported from gcc >>>>>> 4.0. >>>>>> You >>>>>> might want to update your gcc compiler. >>>>>> >>>>>> However, there are some other workarounds, you can remove them when >>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>> VISIBILITY_CXX_FLAGS) >>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>> want >>>>>> to >>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>> are >>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>> >>>>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>>>> all >>>>>> the changes you needed to add to have it working. >>>>>> >>>>>> Thanks, >>>>>> Julien. >>>>>> >>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> Hi, >>>>>>> >>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>> Vista >>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>>>> debug >>>>>>> (because >>>>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>>>> 5.7 >>>>>>> shared release >>>>>>> but Im running into a snag with QtMobility: >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>> Scanning dependencies of target QtMobility >>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>> -- extracting... >>>>>>> >>>>>>> >>>>>>> >>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>> >>>>>>> >>>>>>> >>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>> y' >>>>>>> -- extracting... [tar xfz] >>>>>>> -- extracting... [analysis] >>>>>>> -- extracting... [copy] >>>>>>> -- extracting... [clean up] >>>>>>> -- extracting... done >>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>> Checking selected modules: >>>>>>> ServiceFramework selected >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> Checking available Qt >>>>>>> 4.6.3 >>>>>>> Checking make >>>>>>> ... mingw32-make found. >>>>>>> >>>>>>> Start of compile tests >>>>>>> End of compile tests >>>>>>> >>>>>>> >>>>>>> The file cannot be copied onto itself. >>>>>>> 0 file(s) copied. >>>>>>> Generating Mobility Headers... >>>>>>> The system cannot find the file specified. >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QAbstractSecuritySession >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceContext >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceFilter >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceManager >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServicePluginInterface >>>>>>> >>>>>>> Running qmake... >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> src/src.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/global/global.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/serviceframework/serviceframework.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> tools/tools.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicefw/servicefw.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/icheck/icheck.pro >>>>>>> >>>>>>> configure has finished. You may run mingw32-make to build the project >>>>>>> now. >>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>> 'make' is not recognized as an internal or external command, >>>>>>> operable program or batch file. >>>>>>> mingw32-make[2]: *** >>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>> Error 1 >>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> >>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>> build.make >>>>>>> file with >>>>>>> "make" instead of "mingw32-make": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing build step for 'QtMobility'" >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make<----------------------------* >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> >>>>>>> and "make install" instead of "mingw32-make install": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing install step for 'QtMobility'" >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make install<-----------------------* >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>> >>>>>>> >>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>> Log4Qt >>>>>>> built without problems, but then I run into >>>>>>> >>>>>>> Scanning dependencies of target CTKCore >>>>>>> [ 6%] Building CXX object >>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>> .cpp.obj >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-Wstrict-null-sentinel" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility=hidden" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility-inlines-hidde >>>>>>> n" >>>>>>> mingw32-make[5]: *** >>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>> obj] Error 1 >>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>> Error >>>>>>> 2 >>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> the command line options appear in a number of flags.make files which >>>>>>> cannot >>>>>>> be edited since cmake >>>>>>> overwrites them with every call to mingw32-make. >>>>>>> >>>>>>> Id really like to try out CTK and hopefully contribute as our company >>>>>>> would >>>>>>> like to switch >>>>>>> from KWWidgets to Qt. >>>>>>> >>>>>>> regards, >>>>>>> Dean >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Ctk-developers mailing list >>>>>>> Ctk-developers at commontk.org >>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >> > _______________________________________________ > 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 dean.inglis at camris.ca Thu Aug 26 19:45:44 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Thu, 26 Aug 2010 15:45:44 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: with ctk's git fetch of vtk Im getting: D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c: In function 'vtk_libxml2_xmlRMutexUnlock': D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:399:18: error: incompatible types when assigning to type 'pthrea d_t' from type 'int' D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c: In function 'vtk_libxml2_xmlGetThreadId': D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:624:5: error: aggregate value used where an integer was expected D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c: In function 'vtk_libxml2_xmlIsMainThread': D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:660:23: error: invalid operands to binary == (have 'pthread_t' a nd 'pthread_t') D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c: In function 'xmlOnceInit': D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:790:10: error: 'run_once' undeclared (first use in this function ) D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:790:10: note: each undeclared identifier is reported only once f or each function it appears in D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli bxml2\threads.c:796:24: error: incompatible types when assigning to type 'pthrea d_t' from type 'DWORD' mingw32-make[5]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o bj] Error 1 mingw32-make[4]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/VTK/VTK-build] Error 2 mingw32-make[1]: *** [CMakeFiles/VTK.dir/all] Error 2 mingw32-make: *** [all] Error 2 >To answer your last question, you can give a custom VTK directory to CTK: >ccmake -DVTK_DIR:PATH=mypath ../CTK >It will then not try to git download a VTK for you but you the one you >provide. >Julien. I dont have ccmake, but doing cmake -DVTK_DIR:PATH=mypath_to_my_vtk_build ../CTK allows build to completion for CTK_LIB_Widgets:BOOL=ON CTK_LIB_Visualization/VTK/Core:BOOL=ON CTK_LIB_Visualization/VTK/Widgets:BOOL=ON I tried ctest in the root of my ctk build, but I get a no test found message? Dean > Thank Sasha :) > > What the problem with VTK ? > > It would be great to share the problem on the vtk developer list. Could > you > take care of that ? > > Thks > Jc > > > On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer > > wrote: > >> Hi, >> >> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >> >> >> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >> >> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >> >> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >> >> However, vtklibxml2 seems to have some troubles compiling, so the VTK >> dependent parts of CTK still require some work. >> >> Best, >> Sascha >> >> >> >> On 08/23/2010 01:18 AM, Dean Inglis wrote: >> >>> thanks Sascha, looking forward to getting a bit further along. >>> QtMobility >>> now >>> builds out of the box. >>> >>> I updated my mingw install with mingw from >>> http://tdm-gcc.tdragon.net/download >>> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >>> compiler flag issues discussed at the beginning of this thread. >>> >>> Can CTK be built in shared release configuration or are there some >>> configuration restrictions? If so, are there additional configuration >>> restrictions >>> on Qt, VTK etc.? >>> >>> best regards, >>> Dean >>> >>> >>> >>> >>>> Hi Dean, >>>> >>>> commit >>>> >>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>> will fix your QtMobility build issue. With commit >>>> >>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>> the CTK compiler flags will also work on MinGW systems. >>>> >>>> You will still get unresolved references during linking of CTKCore (in >>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>> static >>>> library, listed at the end of the linker command line). I will try and >>>> fix >>>> it in the next week. >>>> >>>> Best, >>>> Sascha >>>> >>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>> >>>> >>>>> Hi Julien, >>>>> >>>>> thanks for the suggestions. Im using the latest stable release for >>>>> MinGW >>>>> and to >>>>> gcc that comes with is all there is aFAIK. In CTK root >>>>> CMakeLists.txt, >>>>> I commented out >>>>> >>>>> >>>>> #----------------------------------------------------------------------------- >>>>> # Set symbol visibility Flags >>>>> # >>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> # SET(VISIBILITY_CXX_FLAGS >>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>> #ENDIF() >>>>> >>>>> and removed -Wstrict-null-sentinel >>>>> >>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> SET(cflags >>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>>> -Wwrite-strings >>>>> -D_FORTIFY_SOURCE=2") >>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>> # SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>>>> -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> ENDIF() >>>>> >>>>> Now Im getting the following linking errors: >>>>> >>>>> [ 83%] Performing build step for 'CTK-build' >>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>>> reference >>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): >>>>> undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>> `_imp___ZN7QStrin >>>>> g17fromLatin1_helperEPKci' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock11lockForReadEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLockC1ENS_13RecursionModeE' >>>>> >>>>> etc etc etc >>>>> >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> collect2: ld returned 1 exit status >>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>> mingw32-make[3]: *** [all] Error 2 >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>> Error >>>>> 2 >>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>> properly >>>>> compile without modifying cmake's generated build.make? >>>>> >>>>> thanks, >>>>> Dean >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>> >>>>>> The flags the compiler is complaining about are supported from gcc >>>>>> 4.0. >>>>>> You >>>>>> might want to update your gcc compiler. >>>>>> >>>>>> However, there are some other workarounds, you can remove them when >>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>> VISIBILITY_CXX_FLAGS) >>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>> want >>>>>> to >>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>> are >>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>> >>>>>> Let us know if you have more feedbacks. Feel free to post a patch >>>>>> with >>>>>> all >>>>>> the changes you needed to add to have it working. >>>>>> >>>>>> Thanks, >>>>>> Julien. >>>>>> >>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>> Vista >>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release >>>>>>> and >>>>>>> debug >>>>>>> (because >>>>>>> QtMobility would not compile with just a release build of Qt) and >>>>>>> VTK >>>>>>> 5.7 >>>>>>> shared release >>>>>>> but Im running into a snag with QtMobility: >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>> Scanning dependencies of target QtMobility >>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>> -- extracting... >>>>>>> >>>>>>> >>>>>>> >>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>> >>>>>>> >>>>>>> >>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>> y' >>>>>>> -- extracting... [tar xfz] >>>>>>> -- extracting... [analysis] >>>>>>> -- extracting... [copy] >>>>>>> -- extracting... [clean up] >>>>>>> -- extracting... done >>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>> Checking selected modules: >>>>>>> ServiceFramework selected >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> Checking available Qt >>>>>>> 4.6.3 >>>>>>> Checking make >>>>>>> ... mingw32-make found. >>>>>>> >>>>>>> Start of compile tests >>>>>>> End of compile tests >>>>>>> >>>>>>> >>>>>>> The file cannot be copied onto itself. >>>>>>> 0 file(s) copied. >>>>>>> Generating Mobility Headers... >>>>>>> The system cannot find the file specified. >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QAbstractSecuritySession >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceContext >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceFilter >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceManager >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServicePluginInterface >>>>>>> >>>>>>> Running qmake... >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> src/src.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/global/global.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/serviceframework/serviceframework.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> tools/tools.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicefw/servicefw.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>> Reading >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/icheck/icheck.pro >>>>>>> >>>>>>> configure has finished. You may run mingw32-make to build the >>>>>>> project >>>>>>> now. >>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>> 'make' is not recognized as an internal or external command, >>>>>>> operable program or batch file. >>>>>>> mingw32-make[2]: *** >>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>> Error 1 >>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> >>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>> build.make >>>>>>> file with >>>>>>> "make" instead of "mingw32-make": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>> $(CMAKE_PROGRESS_8) >>>>>>> @$(CMAKE_COMMAND) -E >>>>>>> cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing build step for 'QtMobility'" >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make<----------------------------* >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> >>>>>>> and "make install" instead of "mingw32-make install": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>> $(CMAKE_PROGRESS_2) >>>>>>> @$(CMAKE_COMMAND) -E >>>>>>> cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing install step for 'QtMobility'" >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make install<-----------------------* >>>>>>> cd >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>> >>>>>>> >>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>> Log4Qt >>>>>>> built without problems, but then I run into >>>>>>> >>>>>>> Scanning dependencies of target CTKCore >>>>>>> [ 6%] Building CXX object >>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>> .cpp.obj >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-Wstrict-null-sentinel" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility=hidden" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility-inlines-hidde >>>>>>> n" >>>>>>> mingw32-make[5]: *** >>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>> obj] Error 1 >>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>> mingw32-make[2]: *** >>>>>>> [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>> Error >>>>>>> 2 >>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> the command line options appear in a number of flags.make files >>>>>>> which >>>>>>> cannot >>>>>>> be edited since cmake >>>>>>> overwrites them with every call to mingw32-make. >>>>>>> >>>>>>> Id really like to try out CTK and hopefully contribute as our >>>>>>> company >>>>>>> would >>>>>>> like to switch >>>>>>> from KWWidgets to Qt. >>>>>>> >>>>>>> regards, >>>>>>> Dean >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Ctk-developers mailing list >>>>>>> Ctk-developers at commontk.org >>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >>> >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > > > -- > Phone: 1-518-836-2174 > Ext: 304 > From jchris.fillionr at kitware.com Thu Aug 26 19:57:31 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 26 Aug 2010 15:57:31 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: Hi Dean, Here is the description of the build directory structure: /CTK-build /CMakeExternals/{Source, Build, ...} The different external project are checked out, build, etc .. in the associated subdir you could find in CMakeExternals directory. CTK-build is what I would call the "inner" build directory, ctest should be run from that folder. Thks Jc On Thu, Aug 26, 2010 at 3:45 PM, Dean Inglis wrote: > with ctk's git fetch of vtk Im getting: > > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlRMutexUnlock': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:399:18: error: incompatible types when assigning to type > 'pthrea > d_t' from type 'int' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlGetThreadId': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:624:5: error: aggregate value used where an integer was > expected > > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlIsMainThread': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:660:23: error: invalid operands to binary == (have > 'pthread_t' a > nd 'pthread_t') > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'xmlOnceInit': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: error: 'run_once' undeclared (first use in this > function > ) > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: note: each undeclared identifier is reported only > once f > or each function it appears in > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:796:24: error: incompatible types when assigning to type > 'pthrea > d_t' from type 'DWORD' > mingw32-make[5]: *** > [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o > bj] Error 1 > mingw32-make[4]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] > Error > > 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/VTK/VTK-build] Error 2 > mingw32-make[1]: *** [CMakeFiles/VTK.dir/all] Error 2 > > mingw32-make: *** [all] Error 2 > > To answer your last question, you can give a custom VTK directory to CTK: >> ccmake -DVTK_DIR:PATH=mypath ../CTK >> It will then not try to git download a VTK for you but you the one you >> provide. >> Julien. >> > > I dont have ccmake, but doing > cmake -DVTK_DIR:PATH=mypath_to_my_vtk_build ../CTK > allows build to completion for > CTK_LIB_Widgets:BOOL=ON > CTK_LIB_Visualization/VTK/Core:BOOL=ON > CTK_LIB_Visualization/VTK/Widgets:BOOL=ON > > I tried ctest in the root of my ctk build, but I get a no test found > message? > > Dean > > > > > > Thank Sasha :) >> >> What the problem with VTK ? >> >> It would be great to share the problem on the vtk developer list. Could >> you >> take care of that ? >> >> Thks >> Jc >> >> >> On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer < >> s.zelzer at dkfz-heidelberg.de >> >>> wrote: >>> >> >> Hi, >>> >>> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >>> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >>> >>> >>> >>> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >>> >>> >>> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >>> >>> >>> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >>> >>> However, vtklibxml2 seems to have some troubles compiling, so the VTK >>> dependent parts of CTK still require some work. >>> >>> Best, >>> Sascha >>> >>> >>> >>> On 08/23/2010 01:18 AM, Dean Inglis wrote: >>> >>> thanks Sascha, looking forward to getting a bit further along. >>>> QtMobility >>>> now >>>> builds out of the box. >>>> >>>> I updated my mingw install with mingw from >>>> http://tdm-gcc.tdragon.net/download >>>> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >>>> compiler flag issues discussed at the beginning of this thread. >>>> >>>> Can CTK be built in shared release configuration or are there some >>>> configuration restrictions? If so, are there additional configuration >>>> restrictions >>>> on Qt, VTK etc.? >>>> >>>> best regards, >>>> Dean >>>> >>>> >>>> >>>> >>>> Hi Dean, >>>>> >>>>> commit >>>>> >>>>> >>>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>>> will fix your QtMobility build issue. With commit >>>>> >>>>> >>>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>>> the CTK compiler flags will also work on MinGW systems. >>>>> >>>>> You will still get unresolved references during linking of CTKCore (in >>>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>>> static >>>>> library, listed at the end of the linker command line). I will try and >>>>> fix >>>>> it in the next week. >>>>> >>>>> Best, >>>>> Sascha >>>>> >>>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>>> >>>>> >>>>> Hi Julien, >>>>>> >>>>>> thanks for the suggestions. Im using the latest stable release for >>>>>> MinGW >>>>>> and to >>>>>> gcc that comes with is all there is aFAIK. In CTK root >>>>>> CMakeLists.txt, >>>>>> I commented out >>>>>> >>>>>> >>>>>> >>>>>> #----------------------------------------------------------------------------- >>>>>> # Set symbol visibility Flags >>>>>> # >>>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>> # SET(VISIBILITY_CXX_FLAGS >>>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>>> #ENDIF() >>>>>> >>>>>> and removed -Wstrict-null-sentinel >>>>>> >>>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>> SET(cflags >>>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>>>> -Wwrite-strings >>>>>> -D_FORTIFY_SOURCE=2") >>>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>>> # SET(CTK_CXX_FLAGS >>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast >>>>>> -Wstrict-null-sentinel >>>>>> -Wsign-promo >>>>>> ${CTK_CXX_FLAGS}") >>>>>> SET(CTK_CXX_FLAGS >>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>>> ${CTK_CXX_FLAGS}") >>>>>> ENDIF() >>>>>> >>>>>> Now Im getting the following linking errors: >>>>>> >>>>>> [ 83%] Performing build step for 'CTK-build' >>>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>>>> reference >>>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>>> `_imp___ZN14QReadW >>>>>> riteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>>> `_imp___ZN14QReadW >>>>>> riteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>>> `_imp___ZN7QStrin >>>>>> g17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLockC1ENS_13RecursionModeE' >>>>>> >>>>>> etc etc etc >>>>>> >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> collect2: ld returned 1 exit status >>>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>> Error >>>>>> 2 >>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>>> properly >>>>>> compile without modifying cmake's generated build.make? >>>>>> >>>>>> thanks, >>>>>> Dean >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>>> >>>>>>> The flags the compiler is complaining about are supported from gcc >>>>>>> 4.0. >>>>>>> You >>>>>>> might want to update your gcc compiler. >>>>>>> >>>>>>> However, there are some other workarounds, you can remove them when >>>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>>> VISIBILITY_CXX_FLAGS) >>>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>>> want >>>>>>> to >>>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>>> are >>>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>>> >>>>>>> Let us know if you have more feedbacks. Feel free to post a patch >>>>>>> with >>>>>>> all >>>>>>> the changes you needed to add to have it working. >>>>>>> >>>>>>> Thanks, >>>>>>> Julien. >>>>>>> >>>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>>> >>>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>>> Vista >>>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release >>>>>>>> and >>>>>>>> debug >>>>>>>> (because >>>>>>>> QtMobility would not compile with just a release build of Qt) and >>>>>>>> VTK >>>>>>>> 5.7 >>>>>>>> shared release >>>>>>>> but Im running into a snag with QtMobility: >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>>> Scanning dependencies of target QtMobility >>>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>>> -- extracting... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>>> y' >>>>>>>> -- extracting... [tar xfz] >>>>>>>> -- extracting... [analysis] >>>>>>>> -- extracting... [copy] >>>>>>>> -- extracting... [clean up] >>>>>>>> -- extracting... done >>>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>>> Checking selected modules: >>>>>>>> ServiceFramework selected >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> Checking available Qt >>>>>>>> 4.6.3 >>>>>>>> Checking make >>>>>>>> ... mingw32-make found. >>>>>>>> >>>>>>>> Start of compile tests >>>>>>>> End of compile tests >>>>>>>> >>>>>>>> >>>>>>>> The file cannot be copied onto itself. >>>>>>>> 0 file(s) copied. >>>>>>>> Generating Mobility Headers... >>>>>>>> The system cannot find the file specified. >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QAbstractSecuritySession >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceContext >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceFilter >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceManager >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServicePluginInterface >>>>>>>> >>>>>>>> Running qmake... >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>> src/src.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /src/global/global.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /src/serviceframework/serviceframework.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>> tools/tools.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/servicefw/servicefw.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/icheck/icheck.pro >>>>>>>> >>>>>>>> configure has finished. You may run mingw32-make to build the >>>>>>>> project >>>>>>>> now. >>>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>>> 'make' is not recognized as an internal or external command, >>>>>>>> operable program or batch file. >>>>>>>> mingw32-make[2]: *** >>>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>>> Error 1 >>>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>> >>>>>>>> >>>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>>> build.make >>>>>>>> file with >>>>>>>> "make" instead of "mingw32-make": >>>>>>>> >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>> $(CMAKE_PROGRESS_8) >>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>> --bold >>>>>>>> "Performing build step for 'QtMobility'" >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && make<----------------------------* >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>> >>>>>>>> and "make install" instead of "mingw32-make install": >>>>>>>> >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>> $(CMAKE_PROGRESS_2) >>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>> --bold >>>>>>>> "Performing install step for 'QtMobility'" >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && make install<-----------------------* >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>>> >>>>>>>> >>>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>>> Log4Qt >>>>>>>> built without problems, but then I run into >>>>>>>> >>>>>>>> Scanning dependencies of target CTKCore >>>>>>>> [ 6%] Building CXX object >>>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>>> .cpp.obj >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-Wstrict-null-sentinel" >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-fvisibility=hidden" >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-fvisibility-inlines-hidde >>>>>>>> n" >>>>>>>> mingw32-make[5]: *** >>>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>>> obj] Error 1 >>>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>>> mingw32-make[2]: *** >>>>>>>> [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>>> Error >>>>>>>> 2 >>>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>> >>>>>>>> the command line options appear in a number of flags.make files >>>>>>>> which >>>>>>>> cannot >>>>>>>> be edited since cmake >>>>>>>> overwrites them with every call to mingw32-make. >>>>>>>> >>>>>>>> Id really like to try out CTK and hopefully contribute as our >>>>>>>> company >>>>>>>> would >>>>>>>> like to switch >>>>>>>> from KWWidgets to Qt. >>>>>>>> >>>>>>>> regards, >>>>>>>> Dean >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Ctk-developers mailing list >>>>>>>> Ctk-developers at commontk.org >>>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> >>>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> >> >> -- >> Phone: 1-518-836-2174 >> Ext: 304 >> >> > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Thu Aug 26 20:44:40 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Thu, 26 Aug 2010 16:44:40 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: thanks, I'm learning slowly here, would be nice if there were some design docs on the wiki explaining this kind of thing (ill be happy to post a how to mingw when things are working!). with ctest run in ctk/CTK-Build none of the tests (40) run: Could not find executable D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/R elease/CTKVisualizationVTKWidgetsCppTests Looked in the following places: D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/CTKVisualizationVTK WidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/CTKVisualizationVTK WidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Release/CTKVisualiz ationVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Release/CTKVisualiz ationVTKWidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Debug/CTKVisualizat ionVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Debug/CTKVisualizat ionVTKWidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/MinSizeRel/CTKVisua lizationVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/MinSizeRel/CTKVisua lizationVTKWidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/RelWithDebInfo/CTKV isualizationVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/RelWithDebInfo/CTKV isualizationVTKWidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Deployment/CTKVisua lizationVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Deployment/CTKVisua lizationVTKWidgetsCppTests.exe D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Development/CTKVisu alizationVTKWidgetsCppTests D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/Release/Development/CTKVisu alizationVTKWidgetsCppTests.exe Unable to find executable: D:/Developer/Releases/MinGW/SHARED/ctk/CTK-build/bin/ Release/CTKVisualizationVTKWidgetsCppTests 40/40 Test #40: ctkVTKRenderViewTest1 ..............***Not Run 0.00 sec seems that ctest is looking in the wrong place since all tests are in ctk/CTK-Build/bin I have a question that may be related to why QtMobility only builds in debug mode instead of release when ctk is cache configured to build release. In CTK/CMAKEExternals/QtMobility.cmake there is # Define configure options SET(qtmobility_modules "serviceframework") SET(qtmobility_build_type "release") IF(UNIX) IF(CMAKE_BUILD_TYPE STREQUAL "Debug") SET(qtmobility_build_type "debug") ENDIF() ELSEIF(NOT ${CMAKE_CFG_INTDIR} STREQUAL "Release") SET(qtmobility_build_type "debug") ENDIf() since im in win32, the logic gets passed to the elseif but what is CMAKE_CFG_INTDIR and how/why would it ever get set to Release? CMAKE_CFG_INTDIR looks to me like a internal directory var. Dean > Hi Dean, > > Here is the description of the build directory structure: > > /CTK-build > /CMakeExternals/{Source, Build, ...} > > The different external project are checked out, build, etc .. in the > associated subdir you could find in CMakeExternals directory. > > CTK-build is what I would call the "inner" build directory, ctest should > be > run from that folder. > > Thks > Jc > > On Thu, Aug 26, 2010 at 3:45 PM, Dean Inglis > wrote: > >> with ctk's git fetch of vtk Im getting: >> >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c: In function 'vtk_libxml2_xmlRMutexUnlock': >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:399:18: error: incompatible types when assigning to type >> 'pthrea >> d_t' from type 'int' >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c: In function 'vtk_libxml2_xmlGetThreadId': >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:624:5: error: aggregate value used where an integer was >> expected >> >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c: In function 'vtk_libxml2_xmlIsMainThread': >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:660:23: error: invalid operands to binary == (have >> 'pthread_t' a >> nd 'pthread_t') >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c: In function 'xmlOnceInit': >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:790:10: error: 'run_once' undeclared (first use in this >> function >> ) >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:790:10: note: each undeclared identifier is reported only >> once f >> or each function it appears in >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli >> bxml2\threads.c:796:24: error: incompatible types when assigning to type >> 'pthrea >> d_t' from type 'DWORD' >> mingw32-make[5]: *** >> [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o >> bj] Error 1 >> mingw32-make[4]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] >> Error >> >> 2 >> mingw32-make[3]: *** [all] Error 2 >> mingw32-make[2]: *** [CMakeExternals/Stamp/VTK/VTK-build] Error 2 >> mingw32-make[1]: *** [CMakeFiles/VTK.dir/all] Error 2 >> >> mingw32-make: *** [all] Error 2 >> >> To answer your last question, you can give a custom VTK directory to >> CTK: >>> ccmake -DVTK_DIR:PATH=mypath ../CTK >>> It will then not try to git download a VTK for you but you the one you >>> provide. >>> Julien. >>> >> >> I dont have ccmake, but doing >> cmake -DVTK_DIR:PATH=mypath_to_my_vtk_build ../CTK >> allows build to completion for >> CTK_LIB_Widgets:BOOL=ON >> CTK_LIB_Visualization/VTK/Core:BOOL=ON >> CTK_LIB_Visualization/VTK/Widgets:BOOL=ON >> >> I tried ctest in the root of my ctk build, but I get a no test found >> message? >> >> Dean >> >> >> >> >> >> Thank Sasha :) >>> >>> What the problem with VTK ? >>> >>> It would be great to share the problem on the vtk developer list. Could >>> you >>> take care of that ? >>> >>> Thks >>> Jc >>> >>> >>> On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer < >>> s.zelzer at dkfz-heidelberg.de >>> >>>> wrote: >>>> >>> >>> Hi, >>>> >>>> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >>>> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >>>> >>>> >>>> >>>> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >>>> >>>> >>>> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >>>> >>>> >>>> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >>>> >>>> However, vtklibxml2 seems to have some troubles compiling, so the VTK >>>> dependent parts of CTK still require some work. >>>> >>>> Best, >>>> Sascha >>>> >>>> >>>> >>>> On 08/23/2010 01:18 AM, Dean Inglis wrote: >>>> >>>> thanks Sascha, looking forward to getting a bit further along. >>>>> QtMobility >>>>> now >>>>> builds out of the box. >>>>> >>>>> I updated my mingw install with mingw from >>>>> http://tdm-gcc.tdragon.net/download >>>>> to get a more up to date gcc compiler (4.5.0) and that fixed the >>>>> initial >>>>> compiler flag issues discussed at the beginning of this thread. >>>>> >>>>> Can CTK be built in shared release configuration or are there some >>>>> configuration restrictions? If so, are there additional configuration >>>>> restrictions >>>>> on Qt, VTK etc.? >>>>> >>>>> best regards, >>>>> Dean >>>>> >>>>> >>>>> >>>>> >>>>> Hi Dean, >>>>>> >>>>>> commit >>>>>> >>>>>> >>>>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>>>> will fix your QtMobility build issue. With commit >>>>>> >>>>>> >>>>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>>>> the CTK compiler flags will also work on MinGW systems. >>>>>> >>>>>> You will still get unresolved references during linking of CTKCore >>>>>> (in >>>>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>>>> static >>>>>> library, listed at the end of the linker command line). I will try >>>>>> and >>>>>> fix >>>>>> it in the next week. >>>>>> >>>>>> Best, >>>>>> Sascha >>>>>> >>>>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>>>> >>>>>> >>>>>> Hi Julien, >>>>>>> >>>>>>> thanks for the suggestions. Im using the latest stable release for >>>>>>> MinGW >>>>>>> and to >>>>>>> gcc that comes with is all there is aFAIK. In CTK root >>>>>>> CMakeLists.txt, >>>>>>> I commented out >>>>>>> >>>>>>> >>>>>>> >>>>>>> #----------------------------------------------------------------------------- >>>>>>> # Set symbol visibility Flags >>>>>>> # >>>>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>>> # SET(VISIBILITY_CXX_FLAGS >>>>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>>>> #ENDIF() >>>>>>> >>>>>>> and removed -Wstrict-null-sentinel >>>>>>> >>>>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>>> SET(cflags >>>>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>>>>> -Wwrite-strings >>>>>>> -D_FORTIFY_SOURCE=2") >>>>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>>>> # SET(CTK_CXX_FLAGS >>>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast >>>>>>> -Wstrict-null-sentinel >>>>>>> -Wsign-promo >>>>>>> ${CTK_CXX_FLAGS}") >>>>>>> SET(CTK_CXX_FLAGS >>>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>>>> ${CTK_CXX_FLAGS}") >>>>>>> ENDIF() >>>>>>> >>>>>>> Now Im getting the following linking errors: >>>>>>> >>>>>>> [ 83%] Performing build step for 'CTK-build' >>>>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): >>>>>>> undefined >>>>>>> referenc >>>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>>>> `_imp___ZN14QReadW >>>>>>> riteLock6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>>>> `_imp___ZN14QReadW >>>>>>> riteLock11lockForReadEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>>>> `_imp___ZN7QStrin >>>>>>> g17fromLatin1_helperEPKci' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>>>> `_imp___ZN14QRead >>>>>>> WriteLock11lockForReadEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>>>> `_imp___ZN14QRead >>>>>>> WriteLock6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>>>> `_imp___ZN14QRead >>>>>>> WriteLock6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>>>> `_imp___ZN14QRea >>>>>>> dWriteLock11lockForReadEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>>>> `_imp___ZN14QRea >>>>>>> dWriteLock6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>>>> `_imp___ZN14QRea >>>>>>> dWriteLockC1ENS_13RecursionModeE' >>>>>>> >>>>>>> etc etc etc >>>>>>> >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>>>> undefi >>>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>>>> undefi >>>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>>>> undefi >>>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>>>> undefi >>>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>>>> undefi >>>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): >>>>>>> undefined >>>>>>> reference >>>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>>> >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>>> >>>>>>> >>>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>>> collect2: ld returned 1 exit status >>>>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>> mingw32-make[2]: *** >>>>>>> [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>> Error >>>>>>> 2 >>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>>>> properly >>>>>>> compile without modifying cmake's generated build.make? >>>>>>> >>>>>>> thanks, >>>>>>> Dean >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>>>> >>>>>>>> The flags the compiler is complaining about are supported from gcc >>>>>>>> 4.0. >>>>>>>> You >>>>>>>> might want to update your gcc compiler. >>>>>>>> >>>>>>>> However, there are some other workarounds, you can remove them when >>>>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>>>> VISIBILITY_CXX_FLAGS) >>>>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>>>> want >>>>>>>> to >>>>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>>>> are >>>>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>>>> >>>>>>>> Let us know if you have more feedbacks. Feel free to post a patch >>>>>>>> with >>>>>>>> all >>>>>>>> the changes you needed to add to have it working. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Julien. >>>>>>>> >>>>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean >>>>>>>> Inglis >>>>>>>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>>>> Vista >>>>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release >>>>>>>>> and >>>>>>>>> debug >>>>>>>>> (because >>>>>>>>> QtMobility would not compile with just a release build of Qt) and >>>>>>>>> VTK >>>>>>>>> 5.7 >>>>>>>>> shared release >>>>>>>>> but Im running into a snag with QtMobility: >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>>>> Scanning dependencies of target QtMobility >>>>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>>>> -- extracting... >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>>>> y' >>>>>>>>> -- extracting... [tar xfz] >>>>>>>>> -- extracting... [analysis] >>>>>>>>> -- extracting... [copy] >>>>>>>>> -- extracting... [clean up] >>>>>>>>> -- extracting... done >>>>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>>>> Checking selected modules: >>>>>>>>> ServiceFramework selected >>>>>>>>> >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>>> Checking available Qt >>>>>>>>> 4.6.3 >>>>>>>>> Checking make >>>>>>>>> ... mingw32-make found. >>>>>>>>> >>>>>>>>> Start of compile tests >>>>>>>>> End of compile tests >>>>>>>>> >>>>>>>>> >>>>>>>>> The file cannot be copied onto itself. >>>>>>>>> 0 file(s) copied. >>>>>>>>> Generating Mobility Headers... >>>>>>>>> The system cannot find the file specified. >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QAbstractSecuritySession >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QServiceContext >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QServiceFilter >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QServiceManager >>>>>>>>> Create header >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>>> ility\include/QServicePluginInterface >>>>>>>>> >>>>>>>>> Running qmake... >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>>> src/src.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>>> /src/global/global.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>>> /src/serviceframework/serviceframework.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>>> tools/tools.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>>> /tools/servicefw/servicefw.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>>>> Reading >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>>> /tools/icheck/icheck.pro >>>>>>>>> >>>>>>>>> configure has finished. You may run mingw32-make to build the >>>>>>>>> project >>>>>>>>> now. >>>>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>>>> 'make' is not recognized as an internal or external command, >>>>>>>>> operable program or batch file. >>>>>>>>> mingw32-make[2]: *** >>>>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>>>> Error 1 >>>>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>>> >>>>>>>>> >>>>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>>>> build.make >>>>>>>>> file with >>>>>>>>> "make" instead of "mingw32-make": >>>>>>>>> >>>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>>> $(CMAKE_PROGRESS_8) >>>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>>> --bold >>>>>>>>> "Performing build step for 'QtMobility'" >>>>>>>>> cd >>>>>>>>> >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>>> && make<----------------------------* >>>>>>>>> cd >>>>>>>>> >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>>> >>>>>>>>> and "make install" instead of "mingw32-make install": >>>>>>>>> >>>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>>> $(CMAKE_PROGRESS_2) >>>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>>> --bold >>>>>>>>> "Performing install step for 'QtMobility'" >>>>>>>>> cd >>>>>>>>> >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>>> && make install<-----------------------* >>>>>>>>> cd >>>>>>>>> >>>>>>>>> >>>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>>>> >>>>>>>>> >>>>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>>>> Log4Qt >>>>>>>>> built without problems, but then I run into >>>>>>>>> >>>>>>>>> Scanning dependencies of target CTKCore >>>>>>>>> [ 6%] Building CXX object >>>>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>>>> .cpp.obj >>>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>>> "-Wstrict-null-sentinel" >>>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>>> "-fvisibility=hidden" >>>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>>> "-fvisibility-inlines-hidde >>>>>>>>> n" >>>>>>>>> mingw32-make[5]: *** >>>>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>>>> obj] Error 1 >>>>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error >>>>>>>>> 2 >>>>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>>>> mingw32-make[2]: *** >>>>>>>>> [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>>>> Error >>>>>>>>> 2 >>>>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>>> >>>>>>>>> the command line options appear in a number of flags.make files >>>>>>>>> which >>>>>>>>> cannot >>>>>>>>> be edited since cmake >>>>>>>>> overwrites them with every call to mingw32-make. >>>>>>>>> >>>>>>>>> Id really like to try out CTK and hopefully contribute as our >>>>>>>>> company >>>>>>>>> would >>>>>>>>> like to switch >>>>>>>>> from KWWidgets to Qt. >>>>>>>>> >>>>>>>>> regards, >>>>>>>>> Dean >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Ctk-developers mailing list >>>>>>>>> Ctk-developers at commontk.org >>>>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> Ctk-developers mailing list >>>>>>> Ctk-developers at commontk.org >>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >>> >>> -- >>> Phone: 1-518-836-2174 >>> Ext: 304 >>> >>> >> > > > -- > Phone: 1-518-836-2174 > Ext: 304 > From pieper at bwh.harvard.edu Thu Aug 26 21:11:28 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Thu, 26 Aug 2010 17:11:28 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: <4C76D880.3040903@bwh.harvard.edu> To make things easier to remember I always use this convention: CTK my git clone directory CTK-superbuild where I'd run cmake ../CTK CTK-superbuild/CTK-build what Jc calls the 'inner' build dir -Steve On Aug/26/10 3:57 PM, Jean-Christophe Fillion-Robin wrote: > Hi Dean, > > Here is the description of the build directory structure: > > /CTK-build > /CMakeExternals/{Source, Build, ...} > > The different external project are checked out, build, etc .. in the > associated subdir you could find in CMakeExternals directory. > > CTK-build is what I would call the "inner" build directory, ctest should > be run from that folder. > > Thks > Jc > > On Thu, Aug 26, 2010 at 3:45 PM, Dean Inglis > wrote: > > with ctk's git fetch of vtk Im getting: > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlRMutexUnlock': > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:399:18: error: incompatible types when assigning to > type 'pthrea > d_t' from type 'int' > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlGetThreadId': > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:624:5: error: aggregate value used where an integer > was expected > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlIsMainThread': > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:660:23: error: invalid operands to binary == (have > 'pthread_t' a > nd 'pthread_t') > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'xmlOnceInit': > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: error: 'run_once' undeclared (first use in > this function > ) > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: note: each undeclared identifier is reported > only once f > or each function it appears in > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:796:24: error: incompatible types when assigning to > type 'pthrea > d_t' from type 'DWORD' > mingw32-make[5]: *** > [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o > bj] Error 1 > mingw32-make[4]: *** > [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] Error > > 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/VTK/VTK-build] Error 2 > mingw32-make[1]: *** [CMakeFiles/VTK.dir/all] Error 2 > > mingw32-make: *** [all] Error 2 > > To answer your last question, you can give a custom VTK > directory to CTK: > ccmake -DVTK_DIR:PATH=mypath ../CTK > It will then not try to git download a VTK for you but you the > one you provide. > Julien. > > > I dont have ccmake, but doing > cmake -DVTK_DIR:PATH=mypath_to_my_vtk_build ../CTK > allows build to completion for > CTK_LIB_Widgets:BOOL=ON > CTK_LIB_Visualization/VTK/Core:BOOL=ON > CTK_LIB_Visualization/VTK/Widgets:BOOL=ON > > I tried ctest in the root of my ctk build, but I get a no test found > message? > > Dean > > > > > > Thank Sasha :) > > What the problem with VTK ? > > It would be great to share the problem on the vtk developer > list. Could you > take care of that ? > > Thks > Jc > > > On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer > > > wrote: > > > Hi, > > with these three commits CTK builds on MinGW (I used the Qt > SDK 2010.04 > which has Qt 4.6.3 and MinGW with gcc 4.4.0): > > > http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 > > http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 > > http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 > > However, vtklibxml2 seems to have some troubles compiling, > so the VTK > dependent parts of CTK still require some work. > > Best, > Sascha > > > > On 08/23/2010 01:18 AM, Dean Inglis wrote: > > thanks Sascha, looking forward to getting a bit further > along. QtMobility > now > builds out of the box. > > I updated my mingw install with mingw from > http://tdm-gcc.tdragon.net/download > to get a more up to date gcc compiler (4.5.0) and that > fixed the initial > compiler flag issues discussed at the beginning of this > thread. > > Can CTK be built in shared release configuration or are > there some > configuration restrictions? If so, are there additional > configuration > restrictions > on Qt, VTK etc.? > > best regards, > Dean > > > > > Hi Dean, > > commit > > http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab > will fix your QtMobility build issue. With commit > > http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 > the CTK compiler flags will also work on MinGW systems. > > You will still get unresolved references during > linking of CTKCore (in > Log4Qt) which probably is due to a wrong linking > order (Log4Qt is a > static > library, listed at the end of the linker command > line). I will try and > fix > it in the next week. > > Best, > Sascha > > Am 21.08.2010 00:04, schrieb Dean Inglis: > > > Hi Julien, > > thanks for the suggestions. Im using the latest > stable release for > MinGW > and to > gcc that comes with is all there is aFAIK. In > CTK root CMakeLists.txt, > I commented out > > > #----------------------------------------------------------------------------- > # Set symbol visibility Flags > # > #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") > # SET(VISIBILITY_CXX_FLAGS > "-fvisibility=hidden -fvisibility-inlines-hidden") > #ENDIF() > > and removed -Wstrict-null-sentinel > > IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") > SET(cflags > "-Wall -Wextra -Wpointer-arith -Winvalid-pch > -Wcast-align > -Wwrite-strings > -D_FORTIFY_SOURCE=2") > > ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" > cflags) > > ctkFunctionCheckCompilerFlags("-fstack-protector-all" > cflags) > SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") > # SET(CTK_CXX_FLAGS > "${cflags} -Woverloaded-virtual -Wold-style-cast > -Wstrict-null-sentinel > -Wsign-promo > ${CTK_CXX_FLAGS}") > SET(CTK_CXX_FLAGS > "${cflags} -Woverloaded-virtual -Wold-style-cast > -Wsign-promo > ${CTK_CXX_FLAGS}") > ENDIF() > > Now Im getting the following linking errors: > > [ 83%] Performing build step for 'CTK-build' > Linking CXX shared library ..\..\bin\libCTKCore.dll > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): > undefined > reference > to `_imp___ZN7QString17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): > undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): > undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): > undefined > referenc > e to `_imp___ZN7QObject13setObjectNameERK7QString' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): > undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): > undefined > referenc > e to `_imp___ZN7QString17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): > undefined > referenc > e to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): > undefined > referenc > e to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba > sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): > undefined > referenc > e to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x63): undefined > reference to > `_imp___ZN14QReadW > riteLock6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x7c): undefined > reference to > `_imp___ZN14QReadW > riteLock11lockForReadEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x149): > undefined reference to > `_imp___ZN7QStrin > g17fromLatin1_helperEPKci' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xcea): > undefined reference to > `_imp___ZN14QRead > WriteLock11lockForReadEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xd6f): > undefined reference to > `_imp___ZN14QRead > WriteLock6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0xe85): > undefined reference to > `_imp___ZN14QRead > WriteLock6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x160d): > undefined reference to > `_imp___ZN14QRea > dWriteLock11lockForReadEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x1648): > undefined reference to > `_imp___ZN14QRea > dWriteLock6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo > gger.cpp.obj):logger.cpp:(.text+0x1712): > undefined reference to > `_imp___ZN14QRea > dWriteLockC1ENS_13RecursionModeE' > > etc etc etc > > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): > undefi > ned reference to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): > undefi > ned reference to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): > undefi > ned reference to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): > undefined > reference > to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): > undefined > reference > to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): > undefined > reference > to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): > undefined > reference > to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): > undefined > reference > to `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 > 8): undefined reference to > `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 > 8): undefined reference to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 > 2): undefined reference to > `_imp___ZN6QMutex6unlockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e > f): undefined reference to `_imp___ZN6QMutex4lockEv' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo > > c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 > 1): undefined reference to > `_imp___ZN6QMutex6unlockEv' > collect2: ld returned 1 exit status > mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 > mingw32-make[4]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** > [CMakeExternals/Stamp/CTK-build/CTK-build-build] > Error > 2 > mingw32-make[1]: *** > [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > Also, what is the correct fix/workaround for > getting QtMobility to > properly > compile without modifying cmake's generated > build.make? > > thanks, > Dean > > > > > Hi Dean, glad to hear you're giving a shot > with CTK. > > The flags the compiler is complaining about > are supported from gcc 4.0. > You > might want to update your gcc compiler. > > However, there are some other workarounds, > you can remove them when > configuring CTK (check the options > CTK_CXX_FLAGS and > VISIBILITY_CXX_FLAGS) > All these flags are automatically set in > CTK/CMakeLists.txt, if we want > to > support "old" gcc compilers, then we should > probably make sure they are > supported using ctkFunctionCheckCompilerFlags() > > Let us know if you have more feedbacks. Feel > free to post a patch with > all > the changes you needed to add to have it > working. > > Thanks, > Julien. > > On Fri, Aug 20, 2010 at 11:42 AM, Dean > Inglis > > wrote: > > > > > Hi, > > I'm new to CTK and have been trying to > get things going on Win32 Vista > with MinGW and CMake 2.8.1. Ive > compiled Qt 4.6.3 shared release and > debug > (because > QtMobility would not compile with just a > release build of Qt) and VTK > 5.7 > shared release > but Im running into a snag with QtMobility: > > D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make > Scanning dependencies of target QtMobility > [ 0%] Creating directories for 'QtMobility' > [ 0%] Performing download step > (extract) for 'QtMobility' > -- extracting... > > > > src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op > ensource-src-1.0.0.tar.gz' > > > > dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit > y' > -- extracting... [tar xfz] > -- extracting... [analysis] > -- extracting... [copy] > -- extracting... [clean up] > -- extracting... done > [ 0%] Performing patch step for > 'QtMobility' > [ 0%] No update step for 'QtMobility' > [ 0%] Performing configure step for > 'QtMobility' > Checking selected modules: > ServiceFramework selected > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > Checking available Qt > 4.6.3 > Checking make > ... mingw32-make found. > > Start of compile tests > End of compile tests > > > The file cannot be copied onto itself. > 0 file(s) copied. > Generating Mobility Headers... > The system cannot find the file specified. > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QAbstractSecuritySession > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceContext > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceFilter > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceInterfaceDescriptor > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServiceManager > Create header > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob > ility\include/QServicePluginInterface > > Running qmake... > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ > src/src.pro > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /src/global/global.pro > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /src/serviceframework/serviceframework.pro > > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ > tools/tools.pro > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/servicefw/servicefw.pro > > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/servicexmlgen/servicexmlgen.pro > > Reading > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility > /tools/icheck/icheck.pro > > configure has finished. You may run > mingw32-make to build the project > now. > [ 0%] Performing build step for > 'QtMobility' > 'make' is not recognized as an internal > or external command, > operable program or batch file. > mingw32-make[2]: *** > [CMakeExternals/Stamp/QtMobility/QtMobility-build] > Error 1 > mingw32-make[1]: *** > [CMakeFiles/QtMobility.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > > I have in my ctk build directory > ctk/CMakeFiles/QtMobility.dir a > build.make > file with > "make" instead of "mingw32-make": > > CMakeExternals/Stamp/QtMobility/QtMobility-build: > CMakeExternals/Stamp/QtMobility/QtMobility-configure > $(CMAKE_COMMAND) -E cmake_progress_report > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles > $(CMAKE_PROGRESS_8) > @$(CMAKE_COMMAND) -E cmake_echo_color > --switch=$(COLOR) --blue --bold > "Performing build step for 'QtMobility'" > cd > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && make<----------------------------* > cd > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && "C:\Program Files\CMake > 2.8\bin\cmake.exe" -E touch > > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build > > and "make install" instead of > "mingw32-make install": > > CMakeExternals/Stamp/QtMobility/QtMobility-install: > CMakeExternals/Stamp/QtMobility/QtMobility-build > $(CMAKE_COMMAND) -E cmake_progress_report > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles > $(CMAKE_PROGRESS_2) > @$(CMAKE_COMMAND) -E cmake_echo_color > --switch=$(COLOR) --blue --bold > "Performing install step for 'QtMobility'" > cd > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && make install<-----------------------* > cd > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility > && "C:\Program Files\CMake > 2.8\bin\cmake.exe" -E touch > > > D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install > > > I manually edited build.make and > QtMobility proceeded to build. > Log4Qt > built without problems, but then I run into > > Scanning dependencies of target CTKCore > [ 6%] Building CXX object > Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser > .cpp.obj > cc1plus.exe: error: unrecognized command > line option > "-Wstrict-null-sentinel" > cc1plus.exe: error: unrecognized command > line option > "-fvisibility=hidden" > cc1plus.exe: error: unrecognized command > line option > "-fvisibility-inlines-hidde > n" > mingw32-make[5]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. > obj] Error 1 > mingw32-make[4]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/all] > Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** > [CMakeExternals/Stamp/CTK-build/CTK-build-build] > Error > 2 > mingw32-make[1]: *** > [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > the command line options appear in a > number of flags.make files which > cannot > be edited since cmake > overwrites them with every call to > mingw32-make. > > Id really like to try out CTK and > hopefully contribute as our company > would > like to switch > from KWWidgets to Qt. > > regards, > Dean > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > -- > Phone: 1-518-836-2174 > Ext: 304 > > > > > > -- > Phone: 1-518-836-2174 > Ext: 304 > > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From julien.finet at kitware.com Thu Aug 26 23:05:59 2010 From: julien.finet at kitware.com (Julien Finet) Date: Thu, 26 Aug 2010 19:05:59 -0400 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: For the threads errors in VTK, you can turn off all the *_PTHREADS options in the VTK project (CMAKE_HP_THREADS, CMAKE_USE_PTHREADS, PROJ_USE_PTHREADS). I hope it fixes your pbs, Julien. On Thu, Aug 26, 2010 at 3:45 PM, Dean Inglis wrote: > with ctk's git fetch of vtk Im getting: > > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlRMutexUnlock': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:399:18: error: incompatible types when assigning to type > 'pthrea > d_t' from type 'int' > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlGetThreadId': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:624:5: error: aggregate value used where an integer was > expected > > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'vtk_libxml2_xmlIsMainThread': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:660:23: error: invalid operands to binary == (have > 'pthread_t' a > nd 'pthread_t') > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c: In function 'xmlOnceInit': > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: error: 'run_once' undeclared (first use in this > function > ) > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:790:10: note: each undeclared identifier is reported only > once f > or each function it appears in > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\VTK\Utilities\vtkli > bxml2\threads.c:796:24: error: incompatible types when assigning to type > 'pthrea > d_t' from type 'DWORD' > mingw32-make[5]: *** > [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o > bj] Error 1 > mingw32-make[4]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] > Error > > 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/VTK/VTK-build] Error 2 > mingw32-make[1]: *** [CMakeFiles/VTK.dir/all] Error 2 > > mingw32-make: *** [all] Error 2 > > To answer your last question, you can give a custom VTK directory to CTK: >> ccmake -DVTK_DIR:PATH=mypath ../CTK >> It will then not try to git download a VTK for you but you the one you >> provide. >> Julien. >> > > I dont have ccmake, but doing > cmake -DVTK_DIR:PATH=mypath_to_my_vtk_build ../CTK > allows build to completion for > CTK_LIB_Widgets:BOOL=ON > CTK_LIB_Visualization/VTK/Core:BOOL=ON > CTK_LIB_Visualization/VTK/Widgets:BOOL=ON > > I tried ctest in the root of my ctk build, but I get a no test found > message? > > Dean > > > > > > Thank Sasha :) >> >> What the problem with VTK ? >> >> It would be great to share the problem on the vtk developer list. Could >> you >> take care of that ? >> >> Thks >> Jc >> >> >> On Thu, Aug 26, 2010 at 12:53 PM, Sascha Zelzer < >> s.zelzer at dkfz-heidelberg.de >> >>> wrote: >>> >> >> Hi, >>> >>> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >>> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >>> >>> >>> >>> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >>> >>> >>> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >>> >>> >>> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >>> >>> However, vtklibxml2 seems to have some troubles compiling, so the VTK >>> dependent parts of CTK still require some work. >>> >>> Best, >>> Sascha >>> >>> >>> >>> On 08/23/2010 01:18 AM, Dean Inglis wrote: >>> >>> thanks Sascha, looking forward to getting a bit further along. >>>> QtMobility >>>> now >>>> builds out of the box. >>>> >>>> I updated my mingw install with mingw from >>>> http://tdm-gcc.tdragon.net/download >>>> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >>>> compiler flag issues discussed at the beginning of this thread. >>>> >>>> Can CTK be built in shared release configuration or are there some >>>> configuration restrictions? If so, are there additional configuration >>>> restrictions >>>> on Qt, VTK etc.? >>>> >>>> best regards, >>>> Dean >>>> >>>> >>>> >>>> >>>> Hi Dean, >>>>> >>>>> commit >>>>> >>>>> >>>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>>> will fix your QtMobility build issue. With commit >>>>> >>>>> >>>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>>> the CTK compiler flags will also work on MinGW systems. >>>>> >>>>> You will still get unresolved references during linking of CTKCore (in >>>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>>> static >>>>> library, listed at the end of the linker command line). I will try and >>>>> fix >>>>> it in the next week. >>>>> >>>>> Best, >>>>> Sascha >>>>> >>>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>>> >>>>> >>>>> Hi Julien, >>>>>> >>>>>> thanks for the suggestions. Im using the latest stable release for >>>>>> MinGW >>>>>> and to >>>>>> gcc that comes with is all there is aFAIK. In CTK root >>>>>> CMakeLists.txt, >>>>>> I commented out >>>>>> >>>>>> >>>>>> >>>>>> #----------------------------------------------------------------------------- >>>>>> # Set symbol visibility Flags >>>>>> # >>>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>> # SET(VISIBILITY_CXX_FLAGS >>>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>>> #ENDIF() >>>>>> >>>>>> and removed -Wstrict-null-sentinel >>>>>> >>>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>>> SET(cflags >>>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align >>>>>> -Wwrite-strings >>>>>> -D_FORTIFY_SOURCE=2") >>>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>>> # SET(CTK_CXX_FLAGS >>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast >>>>>> -Wstrict-null-sentinel >>>>>> -Wsign-promo >>>>>> ${CTK_CXX_FLAGS}") >>>>>> SET(CTK_CXX_FLAGS >>>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>>> ${CTK_CXX_FLAGS}") >>>>>> ENDIF() >>>>>> >>>>>> Now Im getting the following linking errors: >>>>>> >>>>>> [ 83%] Performing build step for 'CTK-build' >>>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>>>> reference >>>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): >>>>>> undefined >>>>>> referenc >>>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>>> `_imp___ZN14QReadW >>>>>> riteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>>> `_imp___ZN14QReadW >>>>>> riteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>>> `_imp___ZN7QStrin >>>>>> g17fromLatin1_helperEPKci' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>>> `_imp___ZN14QRead >>>>>> WriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLock11lockForReadEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLock6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>>> `_imp___ZN14QRea >>>>>> dWriteLockC1ENS_13RecursionModeE' >>>>>> >>>>>> etc etc etc >>>>>> >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>>> undefi >>>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>>>> reference >>>>>> to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>>> >>>>>> >>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>>> >>>>>> >>>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>>> collect2: ld returned 1 exit status >>>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>> Error >>>>>> 2 >>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>> mingw32-make: *** [all] Error 2 >>>>>> >>>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>>> properly >>>>>> compile without modifying cmake's generated build.make? >>>>>> >>>>>> thanks, >>>>>> Dean >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>>> >>>>>>> The flags the compiler is complaining about are supported from gcc >>>>>>> 4.0. >>>>>>> You >>>>>>> might want to update your gcc compiler. >>>>>>> >>>>>>> However, there are some other workarounds, you can remove them when >>>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>>> VISIBILITY_CXX_FLAGS) >>>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>>> want >>>>>>> to >>>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>>> are >>>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>>> >>>>>>> Let us know if you have more feedbacks. Feel free to post a patch >>>>>>> with >>>>>>> all >>>>>>> the changes you needed to add to have it working. >>>>>>> >>>>>>> Thanks, >>>>>>> Julien. >>>>>>> >>>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>>> >>>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>>> Vista >>>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release >>>>>>>> and >>>>>>>> debug >>>>>>>> (because >>>>>>>> QtMobility would not compile with just a release build of Qt) and >>>>>>>> VTK >>>>>>>> 5.7 >>>>>>>> shared release >>>>>>>> but Im running into a snag with QtMobility: >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>>> Scanning dependencies of target QtMobility >>>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>>> -- extracting... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>>> y' >>>>>>>> -- extracting... [tar xfz] >>>>>>>> -- extracting... [analysis] >>>>>>>> -- extracting... [copy] >>>>>>>> -- extracting... [clean up] >>>>>>>> -- extracting... done >>>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>>> Checking selected modules: >>>>>>>> ServiceFramework selected >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> Checking available Qt >>>>>>>> 4.6.3 >>>>>>>> Checking make >>>>>>>> ... mingw32-make found. >>>>>>>> >>>>>>>> Start of compile tests >>>>>>>> End of compile tests >>>>>>>> >>>>>>>> >>>>>>>> The file cannot be copied onto itself. >>>>>>>> 0 file(s) copied. >>>>>>>> Generating Mobility Headers... >>>>>>>> The system cannot find the file specified. >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QAbstractSecuritySession >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceContext >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceFilter >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServiceManager >>>>>>>> Create header >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>>> ility\include/QServicePluginInterface >>>>>>>> >>>>>>>> Running qmake... >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>> src/src.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /src/global/global.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /src/serviceframework/serviceframework.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>>> tools/tools.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/servicefw/servicefw.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>>> Reading >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>>> /tools/icheck/icheck.pro >>>>>>>> >>>>>>>> configure has finished. You may run mingw32-make to build the >>>>>>>> project >>>>>>>> now. >>>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>>> 'make' is not recognized as an internal or external command, >>>>>>>> operable program or batch file. >>>>>>>> mingw32-make[2]: *** >>>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>>> Error 1 >>>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>> >>>>>>>> >>>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>>> build.make >>>>>>>> file with >>>>>>>> "make" instead of "mingw32-make": >>>>>>>> >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>> $(CMAKE_PROGRESS_8) >>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>> --bold >>>>>>>> "Performing build step for 'QtMobility'" >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && make<----------------------------* >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>> >>>>>>>> and "make install" instead of "mingw32-make install": >>>>>>>> >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles >>>>>>>> $(CMAKE_PROGRESS_2) >>>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue >>>>>>>> --bold >>>>>>>> "Performing install step for 'QtMobility'" >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && make install<-----------------------* >>>>>>>> cd >>>>>>>> >>>>>>>> >>>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>>> >>>>>>>> >>>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>>> Log4Qt >>>>>>>> built without problems, but then I run into >>>>>>>> >>>>>>>> Scanning dependencies of target CTKCore >>>>>>>> [ 6%] Building CXX object >>>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>>> .cpp.obj >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-Wstrict-null-sentinel" >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-fvisibility=hidden" >>>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>>> "-fvisibility-inlines-hidde >>>>>>>> n" >>>>>>>> mingw32-make[5]: *** >>>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>>> obj] Error 1 >>>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>>> mingw32-make[2]: *** >>>>>>>> [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>>> Error >>>>>>>> 2 >>>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>>> mingw32-make: *** [all] Error 2 >>>>>>>> >>>>>>>> the command line options appear in a number of flags.make files >>>>>>>> which >>>>>>>> cannot >>>>>>>> be edited since cmake >>>>>>>> overwrites them with every call to mingw32-make. >>>>>>>> >>>>>>>> Id really like to try out CTK and hopefully contribute as our >>>>>>>> company >>>>>>>> would >>>>>>>> like to switch >>>>>>>> from KWWidgets to Qt. >>>>>>>> >>>>>>>> regards, >>>>>>>> Dean >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Ctk-developers mailing list >>>>>>>> Ctk-developers at commontk.org >>>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> Ctk-developers mailing list >>>>>> Ctk-developers at commontk.org >>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> >>>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> >> >> -- >> Phone: 1-518-836-2174 >> Ext: 304 >> >> > _______________________________________________ > 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 Fri Aug 27 14:48:35 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Fri, 27 Aug 2010 16:48:35 +0200 Subject: [Ctk-developers] mingw build failure In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> Message-ID: <4C77D043.9000606@dkfz-heidelberg.de> Hi, I commited another few changes and CTK should build now on MinGW with VTK-dependent libraries in both release and debug mode. I did not yet try the python wrappers. Two issues remain: 1.) When building VTK, a lot of warnings of type "visibility attribute not supported in this configuration" appear. I am quite sure this is related to the misuse of the visibility flags on MinGW and posted and entry in the vtkusers mailing list. 2.) ctest cannot find the test drivers. On Windows, it seems to assume that the build system generates intermediate output directories (Debug, Release, etc.) and append them to the path of the executable. It does not look directly in CTK-build/bin. Maybe a CMake/CTest guru can help us out. Best, Sascha Am 26.08.2010 21:15, schrieb Dean Inglis: > using Qt 4.6.3, non SDK, MinGW with gcc 4.5.0 > > some odd things: Ive configured to build ctk shared Release but > QtMobility is built Debug: > QtServiceFrameworkd.dll > libQtServiceFrameworkd.a > > I couldnt compile CTKCore due to > > Scanning dependencies of target CTKCore > [ 6%] Building CXX object > Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser > .cpp.obj > cc1plus.exe: error: unrecognized command line option "-fenable-auto-import" > mingw32-make[5]: *** > [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. > obj] Error 1 > mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > according to, for example > http://old.nabble.com/link-error---enable-auto-imports-for-details-td20734348.html > http://www.cygwin.com/ml/cygwin/2009-06/msg00183.html > > one can > SET(cflags "-Wl,--enable-auto-import ${cflags}") > > but that didnt work. so in ctk root CmakeLists I commented out > # IF(MINGW) > # suppress warnings about auto imported symbols > # SET(cflags "--enable-auto-import ${cflags}") > # ENDIF() > > and I can build CTK-Build: libCTKCore.dll, CTKCoreCppTests.exe, > libCTKPluginFramework.dll, > CTKPluginFrameworkCppTests.exe, liborg_commontk_eventbus.dll > > but get warnings like: > > Info: resolving ___stack_chk_guard by linking to __imp____stack_chk_guard > (auto- > import) > c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: > warning: a > uto-importing has been activated without --enable-auto-import specified on > the c > ommand line. > This should work unless it involves constant data structures referencing > symbols > from auto-imported DLLs. > > currently trying to build VTK components (didnt realize ctk build would git > clone > vtk instead of using the one I already have!!!) ... ill keep you posted > > Dean > > > >> Hi, >> >> with these three commits CTK builds on MinGW (I used the Qt SDK 2010.04 >> which has Qt 4.6.3 and MinGW with gcc 4.4.0): >> >> http://github.com/commontk/CTK/commit/dd6b7964a4aac713903ac677868b12593d2b5d53 >> http://github.com/commontk/CTK/commit/8d7e2cc1537be3299be35411c6421f431d257f08 >> http://github.com/commontk/CTK/commit/171e2c2bbf829da538bf0e36d4e3a1ac00860b12 >> >> However, vtklibxml2 seems to have some troubles compiling, so the VTK >> dependent parts of CTK still require some work. >> >> Best, >> Sascha >> >> >> On 08/23/2010 01:18 AM, Dean Inglis wrote: >> >>> thanks Sascha, looking forward to getting a bit further along. >>> QtMobility >>> now >>> builds out of the box. >>> >>> I updated my mingw install with mingw from >>> http://tdm-gcc.tdragon.net/download >>> to get a more up to date gcc compiler (4.5.0) and that fixed the initial >>> compiler flag issues discussed at the beginning of this thread. >>> >>> Can CTK be built in shared release configuration or are there some >>> configuration restrictions? If so, are there additional configuration >>> restrictions >>> on Qt, VTK etc.? >>> >>> best regards, >>> Dean >>> >>> >>> >>> >>>> Hi Dean, >>>> >>>> commit >>>> http://github.com/commontk/CTK/commit/713b8883a9a4ec6c38d093367e99c13eb4d7a6ab >>>> will fix your QtMobility build issue. With commit >>>> http://github.com/commontk/CTK/commit/e87fe1533d06a96e0fd0df0a19635573cd6b5981 >>>> the CTK compiler flags will also work on MinGW systems. >>>> >>>> You will still get unresolved references during linking of CTKCore (in >>>> Log4Qt) which probably is due to a wrong linking order (Log4Qt is a >>>> static >>>> library, listed at the end of the linker command line). I will try and >>>> fix >>>> it in the next week. >>>> >>>> Best, >>>> Sascha >>>> >>>> Am 21.08.2010 00:04, schrieb Dean Inglis: >>>> >>>> >>>>> Hi Julien, >>>>> >>>>> thanks for the suggestions. Im using the latest stable release for >>>>> MinGW >>>>> and to >>>>> gcc that comes with is all there is aFAIK. In CTK root CMakeLists.txt, >>>>> I commented out >>>>> >>>>> #----------------------------------------------------------------------------- >>>>> # Set symbol visibility Flags >>>>> # >>>>> #IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> # SET(VISIBILITY_CXX_FLAGS >>>>> "-fvisibility=hidden -fvisibility-inlines-hidden") >>>>> #ENDIF() >>>>> >>>>> and removed -Wstrict-null-sentinel >>>>> >>>>> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") >>>>> SET(cflags >>>>> "-Wall -Wextra -Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings >>>>> -D_FORTIFY_SOURCE=2") >>>>> ctkFunctionCheckCompilerFlags("-fdiagnostics-show-option" cflags) >>>>> ctkFunctionCheckCompilerFlags("-fstack-protector-all" cflags) >>>>> SET(CTK_C_FLAGS "${cflags} ${CTK_C_FLAGS}") >>>>> # SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel >>>>> -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> SET(CTK_CXX_FLAGS >>>>> "${cflags} -Woverloaded-virtual -Wold-style-cast -Wsign-promo >>>>> ${CTK_CXX_FLAGS}") >>>>> ENDIF() >>>>> >>>>> Now Im getting the following linking errors: >>>>> >>>>> [ 83%] Performing build step for 'CTK-build' >>>>> Linking CXX shared library ..\..\bin\libCTKCore.dll >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0xc5): undefined >>>>> reference >>>>> to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x146): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x216): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x23f): undefined >>>>> referenc >>>>> e to `_imp___ZN7QObject13setObjectNameERK7QString' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x2e6): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x390): undefined >>>>> referenc >>>>> e to `_imp___ZN7QString17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x5c5): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x708): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(ba >>>>> sicconfigurator.cpp.obj):basicconfigurator.cpp:(.text+0x71f): undefined >>>>> referenc >>>>> e to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x63): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x7c): undefined reference to >>>>> `_imp___ZN14QReadW >>>>> riteLock11lockForReadEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x149): undefined reference to >>>>> `_imp___ZN7QStrin >>>>> g17fromLatin1_helperEPKci' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xcea): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock11lockForReadEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xd6f): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0xe85): undefined reference to >>>>> `_imp___ZN14QRead >>>>> WriteLock6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x160d): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock11lockForReadEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1648): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLock6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(lo >>>>> gger.cpp.obj):logger.cpp:(.text+0x1712): undefined reference to >>>>> `_imp___ZN14QRea >>>>> dWriteLockC1ENS_13RecursionModeE' >>>>> >>>>> etc etc etc >>>>> >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x388): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3a3): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x3f0): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x40d): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_rollingfileappender.cxx.obj):moc_rollingfileappender.cxx:(.text+0x428): >>>>> undefi >>>>> ned reference to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x1f6): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x323): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x347): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x35b): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_fileappender.cxx.obj):moc_fileappender.cxx:(.text+0x379): undefined >>>>> reference >>>>> to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x24 >>>>> 8): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x26 >>>>> 8): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x29 >>>>> 2): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x2e >>>>> f): undefined reference to `_imp___ZN6QMutex4lockEv' >>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Install\lib\libLog4Qt.a(mo >>>>> c_dailyrollingfileappender.cxx.obj):moc_dailyrollingfileappender.cxx:(.text+0x31 >>>>> 1): undefined reference to `_imp___ZN6QMutex6unlockEv' >>>>> collect2: ld returned 1 exit status >>>>> mingw32-make[5]: *** [bin/libCTKCore.dll] Error 1 >>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>> mingw32-make[3]: *** [all] Error 2 >>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>> Error >>>>> 2 >>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>> mingw32-make: *** [all] Error 2 >>>>> >>>>> Also, what is the correct fix/workaround for getting QtMobility to >>>>> properly >>>>> compile without modifying cmake's generated build.make? >>>>> >>>>> thanks, >>>>> Dean >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Dean, glad to hear you're giving a shot with CTK. >>>>>> >>>>>> The flags the compiler is complaining about are supported from gcc >>>>>> 4.0. >>>>>> You >>>>>> might want to update your gcc compiler. >>>>>> >>>>>> However, there are some other workarounds, you can remove them when >>>>>> configuring CTK (check the options CTK_CXX_FLAGS and >>>>>> VISIBILITY_CXX_FLAGS) >>>>>> All these flags are automatically set in CTK/CMakeLists.txt, if we >>>>>> want >>>>>> to >>>>>> support "old" gcc compilers, then we should probably make sure they >>>>>> are >>>>>> supported using ctkFunctionCheckCompilerFlags() >>>>>> >>>>>> Let us know if you have more feedbacks. Feel free to post a patch with >>>>>> all >>>>>> the changes you needed to add to have it working. >>>>>> >>>>>> Thanks, >>>>>> Julien. >>>>>> >>>>>> On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm new to CTK and have been trying to get things going on Win32 >>>>>>> Vista >>>>>>> with MinGW and CMake 2.8.1. Ive compiled Qt 4.6.3 shared release and >>>>>>> debug >>>>>>> (because >>>>>>> QtMobility would not compile with just a release build of Qt) and VTK >>>>>>> 5.7 >>>>>>> shared release >>>>>>> but Im running into a snag with QtMobility: >>>>>>> >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make >>>>>>> Scanning dependencies of target QtMobility >>>>>>> [ 0%] Creating directories for 'QtMobility' >>>>>>> [ 0%] Performing download step (extract) for 'QtMobility' >>>>>>> -- extracting... >>>>>>> >>>>>>> >>>>>>> src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op >>>>>>> ensource-src-1.0.0.tar.gz' >>>>>>> >>>>>>> >>>>>>> dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit >>>>>>> y' >>>>>>> -- extracting... [tar xfz] >>>>>>> -- extracting... [analysis] >>>>>>> -- extracting... [copy] >>>>>>> -- extracting... [clean up] >>>>>>> -- extracting... done >>>>>>> [ 0%] Performing patch step for 'QtMobility' >>>>>>> [ 0%] No update step for 'QtMobility' >>>>>>> [ 0%] Performing configure step for 'QtMobility' >>>>>>> Checking selected modules: >>>>>>> ServiceFramework selected >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> Checking available Qt >>>>>>> 4.6.3 >>>>>>> Checking make >>>>>>> ... mingw32-make found. >>>>>>> >>>>>>> Start of compile tests >>>>>>> End of compile tests >>>>>>> >>>>>>> >>>>>>> The file cannot be copied onto itself. >>>>>>> 0 file(s) copied. >>>>>>> Generating Mobility Headers... >>>>>>> The system cannot find the file specified. >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QAbstractSecuritySession >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceContext >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceFilter >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceInterfaceDescriptor >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServiceManager >>>>>>> Create header >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob >>>>>>> ility\include/QServicePluginInterface >>>>>>> >>>>>>> Running qmake... >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> src/src.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/global/global.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /src/serviceframework/serviceframework.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/ >>>>>>> tools/tools.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicefw/servicefw.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/servicexmlgen/servicexmlgen.pro >>>>>>> Reading >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility >>>>>>> /tools/icheck/icheck.pro >>>>>>> >>>>>>> configure has finished. You may run mingw32-make to build the project >>>>>>> now. >>>>>>> [ 0%] Performing build step for 'QtMobility' >>>>>>> 'make' is not recognized as an internal or external command, >>>>>>> operable program or batch file. >>>>>>> mingw32-make[2]: *** >>>>>>> [CMakeExternals/Stamp/QtMobility/QtMobility-build] >>>>>>> Error 1 >>>>>>> mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> >>>>>>> I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a >>>>>>> build.make >>>>>>> file with >>>>>>> "make" instead of "mingw32-make": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-configure >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8) >>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing build step for 'QtMobility'" >>>>>>> cd >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make<----------------------------* >>>>>>> cd >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> >>>>>>> and "make install" instead of "mingw32-make install": >>>>>>> >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-install: >>>>>>> CMakeExternals/Stamp/QtMobility/QtMobility-build >>>>>>> $(CMAKE_COMMAND) -E cmake_progress_report >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2) >>>>>>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold >>>>>>> "Performing install step for 'QtMobility'" >>>>>>> cd >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && make install<-----------------------* >>>>>>> cd >>>>>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility >>>>>>> && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch >>>>>>> >>>>>>> D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install >>>>>>> >>>>>>> >>>>>>> I manually edited build.make and QtMobility proceeded to build. >>>>>>> Log4Qt >>>>>>> built without problems, but then I run into >>>>>>> >>>>>>> Scanning dependencies of target CTKCore >>>>>>> [ 6%] Building CXX object >>>>>>> Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser >>>>>>> .cpp.obj >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-Wstrict-null-sentinel" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility=hidden" >>>>>>> cc1plus.exe: error: unrecognized command line option >>>>>>> "-fvisibility-inlines-hidde >>>>>>> n" >>>>>>> mingw32-make[5]: *** >>>>>>> [Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp. >>>>>>> obj] Error 1 >>>>>>> mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2 >>>>>>> mingw32-make[3]: *** [all] Error 2 >>>>>>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>>>>>> Error >>>>>>> 2 >>>>>>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>>>>>> mingw32-make: *** [all] Error 2 >>>>>>> >>>>>>> the command line options appear in a number of flags.make files which >>>>>>> cannot >>>>>>> be edited since cmake >>>>>>> overwrites them with every call to mingw32-make. >>>>>>> >>>>>>> Id really like to try out CTK and hopefully contribute as our company >>>>>>> would >>>>>>> like to switch >>>>>>> from KWWidgets to Qt. >>>>>>> >>>>>>> regards, >>>>>>> Dean >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Ctk-developers mailing list >>>>>>> Ctk-developers at commontk.org >>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Ctk-developers mailing list >>>>> Ctk-developers at commontk.org >>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >> > From dean.inglis at camris.ca Sun Aug 29 17:23:02 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Sun, 29 Aug 2010 13:23:02 -0400 Subject: [Ctk-developers] ctkMatrixWidget build err + help setting up dashboard? In-Reply-To: <4C77D043.9000606@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: ctkMatrixWidget causes the following on Win32 MinGW Creating library file: ..\..\bin\libCTKWidgets.dll.a c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c ommand line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x8 f): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0xd 9): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 27): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 79): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x6 01): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text$_ZN 22QItemEditorCreatorBaseD1Ev[QItemEditorCreatorBase::~QItemEditorCreatorBase()]+ 0x12): more undefined references to `_imp___ZTV22QItemEditorCreatorBase' follow collect2: ld returned 1 exit status mingw32-make[5]: *** [bin/libCTKWidgets.dll] Error 1 mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 2 mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 mingw32-make: *** [all] Error 2 seems to be related to register of custom editors in void ctkMatrixWidgetPrivate::init() where there is QItemEditorFactory *editorFactory = new QItemEditorFactory; editorFactory->registerEditor(QVariant::Double, new QStandardItemEditorCreator); Can someone in the ctk community help me set up an experimental dashboard to report these build errors? thanks, Dean From jchris.fillionr at kitware.com Sun Aug 29 21:45:52 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Sun, 29 Aug 2010 17:45:52 -0400 Subject: [Ctk-developers] ctkMatrixWidget build err + help setting up dashboard? In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: To setup a dashboard, you could customize that script: http://github.com/commontk/CTK/blob/master/CMake/ctkDashboardScript.EXAMPLE.cmake Jc On Sun, Aug 29, 2010 at 1:23 PM, Dean Inglis wrote: > ctkMatrixWidget causes the following on Win32 MinGW > > Creating library file: ..\..\bin\libCTKWidgets.dll.a > c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: > warning: a > uto-importing has been activated without --enable-auto-import specified on > the c > ommand line. > This should work unless it involves constant data structures referencing > symbols > from auto-imported DLLs. > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x8 > f): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0xd > 9): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 > 27): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 > 79): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x6 > 01): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text$_ZN > > 22QItemEditorCreatorBaseD1Ev[QItemEditorCreatorBase::~QItemEditorCreatorBase()]+ > 0x12): more undefined references to `_imp___ZTV22QItemEditorCreatorBase' > follow > collect2: ld returned 1 exit status > mingw32-make[5]: *** [bin/libCTKWidgets.dll] Error 1 > mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > seems to be related to register of custom editors in void > ctkMatrixWidgetPrivate::init() where > there is > QItemEditorFactory *editorFactory = new QItemEditorFactory; > editorFactory->registerEditor(QVariant::Double, new > QStandardItemEditorCreator); > > Can someone in the ctk community help me set up an experimental dashboard > to report these build errors? > > thanks, > Dean > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.zelzer at dkfz-heidelberg.de Mon Aug 30 08:05:58 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Mon, 30 Aug 2010 10:05:58 +0200 Subject: [Ctk-developers] ctkMatrixWidget build err + help setting up dashboard? In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: <4C7B6666.9060403@dkfz-heidelberg.de> Hi Dean, for me, libCTKWidgets links fine. Just to make sure, did you also compile Qt with MinGW 4.5.0 ? If you keep having linker errors, I'd advise you to stick to the MinGW version which comes with Qt Creator or the Qt SDK. I don't think that Qt has been extensively tested with MinGW 4.5.0. Best, Sascha On 08/29/2010 07:23 PM, Dean Inglis wrote: > ctkMatrixWidget causes the following on Win32 MinGW > > Creating library file: ..\..\bin\libCTKWidgets.dll.a > c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: > warning: a > uto-importing has been activated without --enable-auto-import specified on > the c > ommand line. > This should work unless it involves constant data structures referencing > symbols > from auto-imported DLLs. > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x8 > f): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0xd > 9): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 > 27): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 > 79): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x6 > 01): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' > CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text$_ZN > 22QItemEditorCreatorBaseD1Ev[QItemEditorCreatorBase::~QItemEditorCreatorBase()]+ > 0x12): more undefined references to `_imp___ZTV22QItemEditorCreatorBase' > follow > collect2: ld returned 1 exit status > mingw32-make[5]: *** [bin/libCTKWidgets.dll] Error 1 > mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error > 2 > mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > seems to be related to register of custom editors in void > ctkMatrixWidgetPrivate::init() where > there is > QItemEditorFactory *editorFactory = new QItemEditorFactory; > editorFactory->registerEditor(QVariant::Double, new > QStandardItemEditorCreator); > > Can someone in the ctk community help me set up an experimental dashboard to > report these build errors? > > thanks, > Dean > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > From dean.inglis at camris.ca Mon Aug 30 13:25:37 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Mon, 30 Aug 2010 09:25:37 -0400 Subject: [Ctk-developers] ctkMatrixWidget build err + help setting up dashboard? In-Reply-To: <4C7B6666.9060403@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> <4C7B6666.9060403@dkfz-heidelberg.de> Message-ID: Hi Sascha, Qt was also built from source with MinGW 4.5.0. I'll remove & try the Qt SDK for Win32 and use their mingw. Are there any restrictions on build configs for CTK? i.e., can i do shared or static release builds? Dean > Hi Dean, > > for me, libCTKWidgets links fine. Just to make sure, did you also compile > Qt with MinGW 4.5.0 ? If you keep having linker errors, I'd advise you to > stick to the MinGW version which comes with Qt Creator or the Qt SDK. I > don't think that Qt has been extensively tested with MinGW 4.5.0. > > Best, > Sascha > > On 08/29/2010 07:23 PM, Dean Inglis wrote: >> ctkMatrixWidget causes the following on Win32 MinGW >> >> Creating library file: ..\..\bin\libCTKWidgets.dll.a >> c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: >> warning: a >> uto-importing has been activated without --enable-auto-import specified >> on >> the c >> ommand line. >> This should work unless it involves constant data structures referencing >> symbols >> from auto-imported DLLs. >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x8 >> f): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0xd >> 9): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 >> 27): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 >> 79): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x6 >> 01): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text$_ZN >> 22QItemEditorCreatorBaseD1Ev[QItemEditorCreatorBase::~QItemEditorCreatorBase()]+ >> 0x12): more undefined references to `_imp___ZTV22QItemEditorCreatorBase' >> follow >> collect2: ld returned 1 exit status >> mingw32-make[5]: *** [bin/libCTKWidgets.dll] Error 1 >> mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2 >> mingw32-make[3]: *** [all] Error 2 >> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >> Error >> 2 >> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >> mingw32-make: *** [all] Error 2 >> >> seems to be related to register of custom editors in void >> ctkMatrixWidgetPrivate::init() where >> there is >> QItemEditorFactory *editorFactory = new QItemEditorFactory; >> editorFactory->registerEditor(QVariant::Double, new >> QStandardItemEditorCreator); >> >> Can someone in the ctk community help me set up an experimental dashboard >> to >> report these build errors? >> >> thanks, >> Dean >> >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers From jchris.fillionr at kitware.com Mon Aug 30 13:31:23 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Mon, 30 Aug 2010 09:31:23 -0400 Subject: [Ctk-developers] ctkMatrixWidget build err + help setting up dashboard? In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> <4C7B6666.9060403@dkfz-heidelberg.de> Message-ID: Static hasn't been tested. A little but of work would need to be done to properly handle the ctkPlugin and also the QtDesigner plugin (which are shared library) Jc On Mon, Aug 30, 2010 at 9:25 AM, Dean Inglis wrote: > Hi Sascha, > > Qt was also built from source with MinGW 4.5.0. I'll remove & try > the Qt SDK for Win32 and use their mingw. Are there any restrictions > on build configs for CTK? i.e., can i do shared or static release builds? > > Dean > > > > Hi Dean, >> >> for me, libCTKWidgets links fine. Just to make sure, did you also compile >> Qt with MinGW 4.5.0 ? If you keep having linker errors, I'd advise you to >> stick to the MinGW version which comes with Qt Creator or the Qt SDK. I >> don't think that Qt has been extensively tested with MinGW 4.5.0. >> >> Best, >> Sascha >> >> On 08/29/2010 07:23 PM, Dean Inglis wrote: >> >>> ctkMatrixWidget causes the following on Win32 MinGW >>> >>> Creating library file: ..\..\bin\libCTKWidgets.dll.a >>> c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: >>> warning: a >>> uto-importing has been activated without --enable-auto-import specified >>> on >>> the c >>> ommand line. >>> This should work unless it involves constant data structures referencing >>> symbols >>> from auto-imported DLLs. >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x8 >>> f): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0xd >>> 9): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 >>> 27): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x2 >>> 79): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text+0x6 >>> 01): undefined reference to `_imp___ZTV22QItemEditorCreatorBase' >>> >>> CMakeFiles\CTKWidgets.dir\ctkMatrixWidget.cpp.obj:ctkMatrixWidget.cpp:(.text$_ZN >>> >>> 22QItemEditorCreatorBaseD1Ev[QItemEditorCreatorBase::~QItemEditorCreatorBase()]+ >>> 0x12): more undefined references to `_imp___ZTV22QItemEditorCreatorBase' >>> follow >>> collect2: ld returned 1 exit status >>> mingw32-make[5]: *** [bin/libCTKWidgets.dll] Error 1 >>> mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2 >>> mingw32-make[3]: *** [all] Error 2 >>> mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] >>> Error >>> 2 >>> mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> seems to be related to register of custom editors in void >>> ctkMatrixWidgetPrivate::init() where >>> there is >>> QItemEditorFactory *editorFactory = new QItemEditorFactory; >>> editorFactory->registerEditor(QVariant::Double, new >>> QStandardItemEditorCreator); >>> >>> Can someone in the ctk community help me set up an experimental dashboard >>> to >>> report these build errors? >>> >>> thanks, >>> Dean >>> >>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Benoit.Bleuze at sophia.inria.fr Mon Aug 30 15:45:46 2010 From: Benoit.Bleuze at sophia.inria.fr (Benoit.Bleuze at sophia.inria.fr) Date: Mon, 30 Aug 2010 17:45:46 +0200 Subject: [Ctk-developers] XIP cmake error In-Reply-To: <4C729DD1.7000800@sophia.inria.fr> References: <4C729DD1.7000800@sophia.inria.fr> Message-ID: <4C7BD22A.6090009@sophia.inria.fr> Hi all, I have been trying to compile XIP along with CTK. Unfortunately I am faced with this cmake problem (on Linux): CMake Error at src/database/core/CMakeLists.txt:237 (install): install TARGETS given target "NAMES" which does not exist in this directory. Apparently I am not the only one to have ever encountered the issue: https://collab01a.scr.siemens.com/gf/project/xip/tracker/?action=TrackerItemEdit&tracker_item_id=2705 Did any of you met this error before, and did you solve it? it has to do with this statement: if(UNIX) install(TARGETS xipivcore NAMES xipinv PATHS /usr/local/lib /usr/lib ENV LD_LIBRARY_PATH ENV DYLD_LIBRARY_PATH) endif(UNIX) it doesn't look like an install syntax I know of, but it really resembles the find_library syntax: find_library(FOO_LIBRARY NAMES foo PATHS /opt/foo/lib) Apart from this tiny issue I look forward joining you guys to the hackfest. Ben. From dean.inglis at camris.ca Mon Aug 30 18:30:59 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Mon, 30 Aug 2010 14:30:59 -0400 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed all the build errors I was having. I have set up an experimental dashboard and submitted... seems that QtMobility didnt build during the test. VTK needed to be built with CMAKE_USE_PTHREADS:BOOL=OFF VTK_USE_GCC_VISIBILITY:BOOL=OFF currently dcmtk doesnt build (see below) and ctest is looking in the wrong places for the tests. Dean Scanning dependencies of target ofstd [ 0%] Building CXX object ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj In file included from D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ config/osconfig.h:42:1: warning: this is the location of the previous definition In file included from D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, from D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, from D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: err or: multiple types in one declaration c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: err or: declaration does not declare anything c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: er ror: declaration does not declare anything mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] Error 1 mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 mingw32-make[3]: *** [all] Error 2 mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2 mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 mingw32-make: *** [all] Error 2 From jchris.fillionr at kitware.com Mon Aug 30 18:59:06 2010 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Mon, 30 Aug 2010 14:59:06 -0400 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: Hi Dean, Thanks for looking into all these issues :) 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ? 2) Could you fork CTK and create/publish a branch named: * fix_build_vtk_with_mingw* 3) How did you setup the dashboard? - are you using the example script provided in CTK/CMake ? If you want to run ctest directly from the command line, make sure you run it from the inner directory: /CTK-build Thks Jc On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis wrote: > Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed > all the build errors I was having. I have set up an experimental dashboard > and > submitted... seems that QtMobility didnt build during the test. > VTK needed to be built with > CMAKE_USE_PTHREADS:BOOL=OFF > VTK_USE_GCC_VISIBILITY:BOOL=OFF > > currently dcmtk doesnt build (see below) and ctest is looking in > the wrong places for the tests. > > Dean > > Scanning dependencies of target ofstd > [ 0%] Building CXX object > ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj > In file included from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ > config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined > > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ > config/osconfig.h:42:1: warning: this is the location of the previous > definition > > In file included from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, > from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, > from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: > err > or: multiple types in one declaration > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: > err > or: declaration does not declare anything > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: > er > ror: declaration does not declare anything > mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] > Error 1 > > mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2 > mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > -- Phone: 1-518-836-2174 Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.zelzer at dkfz-heidelberg.de Mon Aug 30 19:48:38 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Mon, 30 Aug 2010 21:48:38 +0200 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> Message-ID: <4C7C0B16.2030402@dkfz-heidelberg.de> Hi, also many thanks from me, Dean. 1) The vtk pthreads issue has been taken care of with commit http://github.com/commontk/CTK/commit/fb5810b28ec44fbc465182f82768e3e5d9ced79a . Also the gcc visibility issues in VTK have been fixed: http://github.com/Kitware/VTK/commit/0a5eb2e9379a35134dabd282e164971e29783e46 2) With the commits above, step 2 shoudn't be necessary. Can you post the build errors for VTK? 3) 4) I can confirm that ctest does not work on MinGW systems. It looks in "Debug", "Release", etc. subdirectories of /CTK-build for executables. Those directories of course don't exist in make based projects. - Sascha On 08/30/2010 08:59 PM, Jean-Christophe Fillion-Robin wrote: > Hi Dean, > > Thanks for looking into all these issues :) > > 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and > VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ? > > 2) Could you fork CTK and create/publish a branch named: > *fix_build_vtk_with_mingw* > > 3) How did you setup the dashboard? > - are you using the example script provided in CTK/CMake ? > > If you want to run ctest directly from the command line, make sure you > run it from the inner directory: > /CTK-build > > Thks > Jc > > On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis > wrote: > > Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed > all the build errors I was having. I have set up an experimental > dashboard and > submitted... seems that QtMobility didnt build during the test. > VTK needed to be built with > CMAKE_USE_PTHREADS:BOOL=OFF > VTK_USE_GCC_VISIBILITY:BOOL=OFF > > currently dcmtk doesnt build (see below) and ctest is looking in > the wrong places for the tests. > > Dean > > Scanning dependencies of target ofstd > [ 0%] Building CXX object > ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj > In file included from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ > config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ > config/osconfig.h:42:1: warning: this is the location of the > previous definition > > In file included from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, > from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, > from > D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour > ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: > err > or: multiple types in one declaration > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: > err > or: declaration does not declare anything > c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: > er > ror: declaration does not declare anything > mingw32-make[5]: *** > [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] Error 1 > > mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 > mingw32-make[3]: *** [all] Error 2 > mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] > Error 2 > mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > > > > > -- > Phone: 1-518-836-2174 > Ext: 304 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Mon Aug 30 20:00:06 2010 From: julien.finet at kitware.com (Julien Finet) Date: Mon, 30 Aug 2010 16:00:06 -0400 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: <4C7C0B16.2030402@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid> <4C719B8A.5060509@dkfz-heidelberg.de> <07402C8BCD56496787720BD08CB60600@Hyoid> <4C769C15.8020907@dkfz-heidelberg.de> <4C77D043.9000606@dkfz-heidelberg.de> <4C7C0B16.2030402@dkfz-heidelberg.de> Message-ID: 4) A lot of conditions in CTK cmake files are done with the assumption that if the platform is WIN32 then it's a Visual Studio compiler. The correct tests should check the content of the variable: CMAKE_CONFIGURATION_TYPES ( http://cmake.org/Wiki/CMake_Useful_Variables). Julien. On Mon, Aug 30, 2010 at 3:48 PM, Sascha Zelzer wrote: > Hi, > > also many thanks from me, Dean. > > 1) The vtk pthreads issue has been taken care of with commit > http://github.com/commontk/CTK/commit/fb5810b28ec44fbc465182f82768e3e5d9ced79a. Also the gcc visibility issues in VTK have been fixed: > http://github.com/Kitware/VTK/commit/0a5eb2e9379a35134dabd282e164971e29783e46 > > 2) With the commits above, step 2 shoudn't be necessary. Can you post the > build errors for VTK? > > 3) > > 4) I can confirm that ctest does not work on MinGW systems. It looks in > "Debug", "Release", etc. subdirectories of /CTK-build for > executables. Those directories of course don't exist in make based projects. > > - Sascha > > > On 08/30/2010 08:59 PM, Jean-Christophe Fillion-Robin wrote: > > Hi Dean, > > Thanks for looking into all these issues :) > > 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and > VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ? > > 2) Could you fork CTK and create/publish a branch named: * > fix_build_vtk_with_mingw* > > 3) How did you setup the dashboard? > - are you using the example script provided in CTK/CMake ? > > If you want to run ctest directly from the command line, make sure you run > it from the inner directory: > /CTK-build > > Thks > Jc > > On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis wrote: > >> Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed >> all the build errors I was having. I have set up an experimental >> dashboard and >> submitted... seems that QtMobility didnt build during the test. >> VTK needed to be built with >> CMAKE_USE_PTHREADS:BOOL=OFF >> VTK_USE_GCC_VISIBILITY:BOOL=OFF >> >> currently dcmtk doesnt build (see below) and ctest is looking in >> the wrong places for the tests. >> >> Dean >> >> Scanning dependencies of target ofstd >> [ 0%] Building CXX object >> ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj >> In file included from >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >> config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined >> >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >> config/osconfig.h:42:1: warning: this is the location of the previous >> definition >> >> In file included from >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >> ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, >> from >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >> ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, >> from >> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: >> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >> err >> or: multiple types in one declaration >> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >> err >> or: declaration does not declare anything >> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: >> er >> ror: declaration does not declare anything >> mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] >> Error 1 >> >> mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 >> mingw32-make[3]: *** [all] Error 2 >> mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2 >> mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 >> mingw32-make: *** [all] Error 2 >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> > > > > -- > Phone: 1-518-836-2174 > Ext: 304 > > > > _______________________________________________ > 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 dean.inglis at camris.ca Mon Aug 30 21:08:12 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Mon, 30 Aug 2010 17:08:12 -0400 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid><4C719B8A.5060509@dkfz-heidelberg.de><07402C8BCD56496787720BD08CB60600@Hyoid><4C769C15.8020907@dkfz-heidelberg.de><4C77D043.9000606@dkfz-heidelberg.de><4C7C0B16.2030402@dkfz-heidelberg.de> Message-ID: <3F22EE41FA504B719A491C8C041E3922@Hyoid> Hi Julien, Sascha, thnks for being patient with the ctk newbie here. 1), 2) with latest git pull of vkt, default out of the box configuration, vtklibxml2 errors are: D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 'vtk _libxml2_xmlRMutexUnlock': D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:399: error: incom patible types when assigning to type 'pthread_t' from type 'int' D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 'vtk _libxml2_xmlGetThreadId': D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:624: error: aggre gate value used where an integer was expected D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 'vtk _libxml2_xmlIsMainThread': D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:660: error: inval id operands to binary == (have 'pthread_t' and 'pthread_t') D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 'xml OnceInit': D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: 'run_ once' undeclared (first use in this function) D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: (Each undeclared identifier is reported only once D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: for e ach function it appears in.) D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:796: error: incom patible types when assigning to type 'pthread_t' from type 'DWORD' mingw32-make[2]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o bj] Error 1 mingw32-make[1]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] Error 2 mingw32-make: *** [all] Error 2 CMAKE_USE_PTHREADS set to OFF, fixes this issue, so it seems like this should be a default cmake configuration? As Im compiling VTK again (snooze), there are no visibility warnings anymore so default VTK_USE_GCC_VISIBILITY:BOOL=ON is now ok. At the moment Im fairly new to git and I havent made any changes to my clone of ctk to get things building, so i'll hold off on forking. 3) I was running ctest from the build subdir CTK-build. You can see my ctest cmake script on the current experimental dashboard post for hyoid.Teneos, based on ctkDashboardScript.EXAMPLE.cmake 4), I dont see why this testing problem happens with ctk and not vtk, could this have anything to do with the use of CMAKE_CFG_INTDIR in some of the ctk cmake macros? I'll post an experimental dashboard each morning or as required. Dean > 4) A lot of conditions in CTK cmake files are done with the assumption > that > if the platform is WIN32 then it's a Visual Studio compiler. The correct > tests should check the content of the variable: CMAKE_CONFIGURATION_TYPES > ( > http://cmake.org/Wiki/CMake_Useful_Variables). > > Julien. > > On Mon, Aug 30, 2010 at 3:48 PM, Sascha Zelzer > wrote: > >> Hi, >> >> also many thanks from me, Dean. >> >> 1) The vtk pthreads issue has been taken care of with commit >> http://github.com/commontk/CTK/commit/fb5810b28ec44fbc465182f82768e3e5d9ced79a. >> Also the gcc visibility issues in VTK have been fixed: >> http://github.com/Kitware/VTK/commit/0a5eb2e9379a35134dabd282e164971e29783e46 >> >> 2) With the commits above, step 2 shoudn't be necessary. Can you post the >> build errors for VTK? >> >> 3) >> >> 4) I can confirm that ctest does not work on MinGW systems. It looks in >> "Debug", "Release", etc. subdirectories of /CTK-build for >> executables. Those directories of course don't exist in make based >> projects. >> >> - Sascha >> >> >> On 08/30/2010 08:59 PM, Jean-Christophe Fillion-Robin wrote: >> >> Hi Dean, >> >> Thanks for looking into all these issues :) >> >> 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and >> VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ? >> >> 2) Could you fork CTK and create/publish a branch named: * >> fix_build_vtk_with_mingw* >> >> 3) How did you setup the dashboard? >> - are you using the example script provided in CTK/CMake ? >> >> If you want to run ctest directly from the command line, make sure you >> run >> it from the inner directory: >> /CTK-build >> >> Thks >> Jc >> >> On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis >> wrote: >> >>> Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed >>> all the build errors I was having. I have set up an experimental >>> dashboard and >>> submitted... seems that QtMobility didnt build during the test. >>> VTK needed to be built with >>> CMAKE_USE_PTHREADS:BOOL=OFF >>> VTK_USE_GCC_VISIBILITY:BOOL=OFF >>> >>> currently dcmtk doesnt build (see below) and ctest is looking in >>> the wrong places for the tests. >>> >>> Dean >>> >>> Scanning dependencies of target ofstd >>> [ 0%] Building CXX object >>> ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj >>> In file included from >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >>> config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined >>> >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >>> config/osconfig.h:42:1: warning: this is the location of the previous >>> definition >>> >>> In file included from >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>> ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, >>> from >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>> ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, >>> from >>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: >>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >>> err >>> or: multiple types in one declaration >>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >>> err >>> or: declaration does not declare anything >>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: >>> er >>> ror: declaration does not declare anything >>> mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] >>> Error 1 >>> >>> mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 >>> mingw32-make[3]: *** [all] Error 2 >>> mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2 >>> mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >> >> >> >> -- >> Phone: 1-518-836-2174 >> Ext: 304 >> >> >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> >> > -------------------------------------------------------------------------------- > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at commontk.org > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers > From s.zelzer at dkfz-heidelberg.de Tue Aug 31 07:28:19 2010 From: s.zelzer at dkfz-heidelberg.de (Sascha Zelzer) Date: Tue, 31 Aug 2010 09:28:19 +0200 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: <3F22EE41FA504B719A491C8C041E3922@Hyoid> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid><4C719B8A.5060509@dkfz-heidelberg.de><07402C8BCD56496787720BD08CB60600@Hyoid><4C769C15.8020907@dkfz-heidelberg.de><4C77D043.9000606@dkfz-heidelberg.de><4C7C0B16.2030402@dkfz-heidelberg.de> <3F22EE41FA504B719A491C8C041E3922@Hyoid> Message-ID: <4C7CAF13.3060900@dkfz-heidelberg.de> Hi, On 08/30/2010 11:08 PM, Dean Inglis wrote: > Hi Julien, Sascha, > > thnks for being patient with the ctk newbie here. > > 1), 2) with latest git pull of vkt, default out of the box configuration, > vtklibxml2 errors are: > > ... > > CMAKE_USE_PTHREADS set to OFF, fixes this issue, so it seems like this > should be a default cmake configuration? > > As Im compiling VTK again (snooze), there are no visibility warnings anymore > so > default VTK_USE_GCC_VISIBILITY:BOOL=ON is now ok. > Okay, you are still using your own VTK build. I think the CMAKE_USE_PTHREADS issue is a CMake problem. When testing the system, CMake shouldn't enable more than one available threading implemenations (ITK has the same problem, if you compile it with MinGW). We could communicate this to the CMake guys... > At the moment Im fairly new to git and I havent made any changes > to my clone of ctk to get things building, so i'll hold off on forking. > > 3) I was running ctest from the build subdir CTK-build. You can see my > ctest cmake > script on the current experimental dashboard post for hyoid.Teneos, based on > ctkDashboardScript.EXAMPLE.cmake > > 4), I dont see why this testing problem happens with ctk and not vtk, > could this have anything to do with the use of CMAKE_CFG_INTDIR in > some of the ctk cmake macros? > > I hope I fixed the testing issue with commit http://github.com/commontk/CTK/commit/aa252c01c1896dbf96e856b06dc511eb8f90106e . At least I can run ctest now successfully in the CTK-build directory (both MinGW and VC builds). > I'll post an experimental dashboard each morning or as required. > > Dean > > We really need more Windows testing machines... Thanks, Sascha > >> 4) A lot of conditions in CTK cmake files are done with the assumption >> that >> if the platform is WIN32 then it's a Visual Studio compiler. The correct >> tests should check the content of the variable: CMAKE_CONFIGURATION_TYPES >> ( >> http://cmake.org/Wiki/CMake_Useful_Variables). >> >> Julien. >> >> On Mon, Aug 30, 2010 at 3:48 PM, Sascha Zelzer >> wrote: >> >> >>> Hi, >>> >>> also many thanks from me, Dean. >>> >>> 1) The vtk pthreads issue has been taken care of with commit >>> http://github.com/commontk/CTK/commit/fb5810b28ec44fbc465182f82768e3e5d9ced79a. >>> Also the gcc visibility issues in VTK have been fixed: >>> http://github.com/Kitware/VTK/commit/0a5eb2e9379a35134dabd282e164971e29783e46 >>> >>> 2) With the commits above, step 2 shoudn't be necessary. Can you post the >>> build errors for VTK? >>> >>> 3) >>> >>> 4) I can confirm that ctest does not work on MinGW systems. It looks in >>> "Debug", "Release", etc. subdirectories of/CTK-build for >>> executables. Those directories of course don't exist in make based >>> projects. >>> >>> - Sascha >>> >>> >>> On 08/30/2010 08:59 PM, Jean-Christophe Fillion-Robin wrote: >>> >>> Hi Dean, >>> >>> Thanks for looking into all these issues :) >>> >>> 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and >>> VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ? >>> >>> 2) Could you fork CTK and create/publish a branch named: * >>> fix_build_vtk_with_mingw* >>> >>> 3) How did you setup the dashboard? >>> - are you using the example script provided in CTK/CMake ? >>> >>> If you want to run ctest directly from the command line, make sure you >>> run >>> it from the inner directory: >>> /CTK-build >>> >>> Thks >>> Jc >>> >>> On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis >>> wrote: >>> >>> >>>> Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed >>>> all the build errors I was having. I have set up an experimental >>>> dashboard and >>>> submitted... seems that QtMobility didnt build during the test. >>>> VTK needed to be built with >>>> CMAKE_USE_PTHREADS:BOOL=OFF >>>> VTK_USE_GCC_VISIBILITY:BOOL=OFF >>>> >>>> currently dcmtk doesnt build (see below) and ctest is looking in >>>> the wrong places for the tests. >>>> >>>> Dean >>>> >>>> Scanning dependencies of target ofstd >>>> [ 0%] Building CXX object >>>> ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj >>>> In file included from >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>>> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34: >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >>>> config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined >>>> >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/ >>>> config/osconfig.h:42:1: warning: this is the location of the previous >>>> definition >>>> >>>> In file included from >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>>> ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99, >>>> from >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>>> ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39, >>>> from >>>> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour >>>> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36: >>>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >>>> err >>>> or: multiple types in one declaration >>>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75: >>>> err >>>> or: declaration does not declare anything >>>> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104: >>>> er >>>> ror: declaration does not declare anything >>>> mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj] >>>> Error 1 >>>> >>>> mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2 >>>> mingw32-make[3]: *** [all] Error 2 >>>> mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2 >>>> mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 >>>> mingw32-make: *** [all] Error 2 >>>> _______________________________________________ >>>> Ctk-developers mailing list >>>> Ctk-developers at commontk.org >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>>> >>>> >>> >>> >>> -- >>> Phone: 1-518-836-2174 >>> Ext: 304 >>> >>> >>> >>> _______________________________________________ >>> Ctk-developers mailing list >>> Ctk-developers at commontk.org >>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >>> >>> >>> >> > > -------------------------------------------------------------------------------- > > > >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at commontk.org >> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers >> >> > From pieper at bwh.harvard.edu Tue Aug 31 11:45:26 2010 From: pieper at bwh.harvard.edu (Steve Pieper) Date: Tue, 31 Aug 2010 07:45:26 -0400 Subject: [Ctk-developers] tcon today (Tuesday 9 eastern) - Fwd: Hotel info - Fwd: CTK hackfest Sept 13-17 in Barcelona Message-ID: <4C7CEB56.7060903@bwh.harvard.edu> A reminder that we'll have another organizational tcon for the (rapidly approaching!) hackfest today at 9 eastern time. *Call in info:* The telephone conference phone number from within the USA is toll-free at 1-800-704-9804 For international participants, you can dial-in using the USA number (404) 920-6604 The conference code is 718324. *Agenda topics* - travel info: http://www.commontk.org/index.php/CTK-Hackfest-September-2010#Travel_.26_Hotel - driving application (goals for CTK) http://www.commontk.org/index.php/CTK-Hackfest-September-2010#Review_driving_application - topics to work on at hackfest http://www.commontk.org/index.php/CTK-Hackfest-September-2010#Topics_and_Projects -------- Original Message -------- Subject: Hotel info - Fwd: CTK hackfest Sept 13-17 in Barcelona Date: Thu, 26 Aug 2010 07:59:59 -0400 From: Steve Pieper To: ctk-developers at commontk.org Hi CTKers - Hackfest plans are coming together nicely - Barcelona will be an exciting place to visit and work! Travel info is now on the wiki - see email from Xavi below. Note that you should be making hotel arrangement *asap*. http://www.commontk.org/index.php/CTK-Hackfest-September-2010#Travel_.26_Hotel Early reminder: We'll have another organizing tcon next Tuesday at 9am eastern time. -Steve *From:* Xavier Planes *Sent:* mi?rcoles, 25 de agosto de 2010 14:15 *To:* 'ctk-developers at commontk.org' *Subject:* CTK hackfest Sept 13-17 in Barcelona Dear all, We have made a pre hotel booking for CTK in a hotel that is very close to the meeting place. We booked 10 rooms (individual or double). There?s a reduced price for UPF (15%), so you can directly contact to the hotel using the name ?CTK UPF? and you will get the reduction. This reduction will be applied individually, not for a group. To *formalize* this pre hotel booking you need to contact with the hotel and provide the *credit card number and Expiry date*. This pre hotel booking is valid until *06.09.10*. If you will stay more days in Barcelona, you can request them to the hotel *as* *soon as possible*. Details: ? Hotel booking name: ?CTK UPF? ? Hotel: ?Hotel Amrey Diagonal?: http://www.amrey-hotels.com/hoteldiagonal/home.php?lang=EN&c=1 ? Arrival date: 13.09.10 (Monday) ? Departure date: 17.09.10 (Friday) ? Daily rate: o 95.89 ? VAT Incl. ? DOBLE o 85.79 ? VAT Incl. ? SINGLE ? Breakfast included ? You need to pay directly when you arrive on 13.09.10 until 18H If you need further details or we can give you more support, please contact me. Best, *Xavier Planes Cid* Scientific Software Developer (SSD) Research Group for Computational Imaging and Simulation Technologies in Biomedicine - CISTIB Information & Communication Technologies Department ? D. 55.117 Universitat Pompeu Fabra C/ T?nger, 122-140 - E08018 Barcelona - Spain Phone: +34 93 542 13 50 Fax: +34 93 542 14 46 Office number : 55 105 From dean.inglis at camris.ca Tue Aug 31 13:33:54 2010 From: dean.inglis at camris.ca (Dean Inglis) Date: Tue, 31 Aug 2010 09:33:54 -0400 Subject: [Ctk-developers] MinGW build resolved +experimental dashboard In-Reply-To: <4C7CAF13.3060900@dkfz-heidelberg.de> References: <1D55213DC5FB42E693BE8F05862A0BAF@Hyoid><4C719B8A.5060509@dkfz-heidelberg.de><07402C8BCD56496787720BD08CB60600@Hyoid><4C769C15.8020907@dkfz-heidelberg.de><4C77D043.9000606@dkfz-heidelberg.de><4C7C0B16.2030402@dkfz-heidelberg.de> <3F22EE41FA504B719A491C8C041E3922@Hyoid> <4C7CAF13.3060900@dkfz-heidelberg.de> Message-ID: I submitted an experimental build this morning and it looks like QtMobility is pulled but not being built. My non-dashboard build compiles without errors. Could someone take a look at my ctest script posted on the dashboard? ctest runs successfully from cmd line in my non-dashboard CTK-build dir now. thanks, Dean >> > I hope I fixed the testing issue with commit > http://github.com/commontk/CTK/commit/aa252c01c1896dbf96e856b06dc511eb8f90106e . > At least I can run ctest now successfully in the CTK-build directory (both > MinGW and VC builds). >> I'll post an experimental dashboard each morning or as required. >> >> Dean >> >> > We really need more Windows testing machines... > > Thanks, > Sascha >