[Ctk-developers] mingw build failure

Julien Finet julien.finet at kitware.com
Fri Aug 20 17:38:10 EDT 2010


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 <dean.inglis at camris.ca> 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: <http://public.kitware.com/pipermail/ctk-developers/attachments/20100820/a788e4ea/attachment.html>


More information about the Ctk-developers mailing list