<div>Hi Dean, glad to hear you're giving a shot with CTK.</div><div><br></div><div>The flags the compiler is complaining about are supported from gcc 4.0. You might want to update your gcc compiler.</div><br><div>However, there are some other workarounds, you can remove them when configuring CTK (check the options CTK_CXX_FLAGS and VISIBILITY_CXX_FLAGS)</div>

<div>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()</div><div>

<br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>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.</div><div><br>

</div><div>Thanks,</div><div>Julien.</div><div><br><div class="gmail_quote">On Fri, Aug 20, 2010 at 11:42 AM, Dean Inglis <span dir="ltr"><<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I'm new to CTK and have been trying to get things going on Win32 Vista<br>
with MinGW and CMake 2.8.1.  Ive compiled Qt 4.6.3 shared release and debug<br>
(because<br>
QtMobility would not compile with just a release build of Qt) and VTK 5.7<br>
shared release<br>
but Im running into a snag with QtMobility:<br>
<br>
D:\Developer\Releases\MinGW\SHARED\ctk>mingw32-make<br>
Scanning dependencies of target QtMobility<br>
[  0%] Creating directories for 'QtMobility'<br>
[  0%] Performing download step (extract) for 'QtMobility'<br>
-- extracting...<br>
    src='D:/Developer/Sources/CTK/Utilities/QtMobility/qt-mobility-servicefw-op<br>
ensource-src-1.0.0.tar.gz'<br>
    dst='D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobilit<br>
y'<br>
-- extracting... [tar xfz]<br>
-- extracting... [analysis]<br>
-- extracting... [copy]<br>
-- extracting... [clean up]<br>
-- extracting... done<br>
[  0%] Performing patch step for 'QtMobility'<br>
[  0%] No update step for 'QtMobility'<br>
[  0%] Performing configure step for 'QtMobility'<br>
Checking selected modules:<br>
   ServiceFramework selected<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility<br>
Checking available Qt<br>
4.6.3<br>
Checking make<br>
... mingw32-make found.<br>
<br>
Start of compile tests<br>
End of compile tests<br>
<br>
<br>
The file cannot be copied onto itself.<br>
       0 file(s) copied.<br>
Generating Mobility Headers...<br>
The system cannot find the file specified.<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QAbstractSecuritySession<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QServiceContext<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QServiceFilter<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QServiceInterfaceDescriptor<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QServiceManager<br>
Create header<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMob<br>
ility\include/QServicePluginInterface<br>
<br>
Running qmake...<br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/<br>
src/<a href="http://src.pro" target="_blank">src.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility<br>
/src/global/<a href="http://global.pro" target="_blank">global.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility<br>
/src/serviceframework/<a href="http://serviceframework.pro" target="_blank">serviceframework.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility/<br>
tools/<a href="http://tools.pro" target="_blank">tools.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility<br>
/tools/servicefw/<a href="http://servicefw.pro" target="_blank">servicefw.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility<br>
/tools/servicexmlgen/<a href="http://servicexmlgen.pro" target="_blank">servicexmlgen.pro</a><br>
Reading<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Source/QtMobility<br>
/tools/icheck/<a href="http://icheck.pro" target="_blank">icheck.pro</a><br>
<br>
configure has finished. You may run mingw32-make to build the project now.<br>
[  0%] Performing build step for 'QtMobility'<br>
'make' is not recognized as an internal or external command,<br>
operable program or batch file.<br>
mingw32-make[2]: *** [CMakeExternals/Stamp/QtMobility/QtMobility-build]<br>
Error 1<br>
mingw32-make[1]: *** [CMakeFiles/QtMobility.dir/all] Error 2<br>
mingw32-make: *** [all] Error 2<br>
<br>
<br>
I have in my ctk build directory ctk/CMakeFiles/QtMobility.dir a build.make<br>
file with<br>
"make" instead of "mingw32-make":<br>
<br>
CMakeExternals/Stamp/QtMobility/QtMobility-build:<br>
CMakeExternals/Stamp/QtMobility/QtMobility-configure<br>
$(CMAKE_COMMAND) -E cmake_progress_report<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_8)<br>
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold<br>
"Performing build step for 'QtMobility'"<br>
cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility<br>
&& make <----------------------------*<br>
cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility<br>
&& "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-build<br>
<br>
and "make install" instead of "mingw32-make install":<br>
<br>
CMakeExternals/Stamp/QtMobility/QtMobility-install:<br>
CMakeExternals/Stamp/QtMobility/QtMobility-build<br>
$(CMAKE_COMMAND) -E cmake_progress_report<br>
D:\Developer\Releases\MinGW\SHARED\ctk\CMakeFiles $(CMAKE_PROGRESS_2)<br>
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold<br>
"Performing install step for 'QtMobility'"<br>
cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility<br>
&& make install <-----------------------*<br>
cd D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Source\QtMobility<br>
&& "C:\Program Files\CMake 2.8\bin\cmake.exe" -E touch<br>
D:/Developer/Releases/MinGW/SHARED/ctk/CMakeExternals/Stamp/QtMobility/QtMobility-install<br>
<br>
<br>
I manually edited build.make and QtMobility proceeded to build.  Log4Qt<br>
built without problems, but then I run into<br>
<br>
Scanning dependencies of target CTKCore<br>
[  6%] Building CXX object<br>
Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser<br>
.cpp.obj<br>
cc1plus.exe: error: unrecognized command line option<br>
"-Wstrict-null-sentinel"<br>
cc1plus.exe: error: unrecognized command line option "-fvisibility=hidden"<br>
cc1plus.exe: error: unrecognized command line option<br>
"-fvisibility-inlines-hidde<br>
n"<br>
mingw32-make[5]: ***<br>
[Libs/Core/CMakeFiles/CTKCore.dir/ctkCommandLineParser.cpp.<br>
obj] Error 1<br>
mingw32-make[4]: *** [Libs/Core/CMakeFiles/CTKCore.dir/all] Error 2<br>
mingw32-make[3]: *** [all] Error 2<br>
mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error<br>
2<br>
mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2<br>
mingw32-make: *** [all] Error 2<br>
<br>
the command line options appear in a number of flags.make files which cannot<br>
be edited since cmake<br>
overwrites them with every call to mingw32-make.<br>
<br>
Id really like to try out CTK and hopefully contribute as our company would<br>
like to switch<br>
from KWWidgets to Qt.<br>
<br>
regards,<br>
Dean<br>
<br>
_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
</blockquote></div><br></div>