Ralf Habacker schrieb:
Michael Leupold schrieb:
Hi there,
I tried emerging KDE today and had some trouble compiling. I hope this
has not been brought up before:
On msvc80 (2005) kdewin's own manifest tool mt.exe clashes with the one
supplied by the compiler. With the standard environment cmake always
detected the one in %KDEROOT%\bin first but assumed it was the Microsoft
one.
Thus it tried to compile like this:
-----------------
D:/kderoot/bin/mt.exe /nologo /out:automoc4.exe.embed.manifest
/notify_update /manifest automoc4.exe.intermediate.manifest
-----------------
Obviously this won't work because the mt.exe called doesn't understand
command-line options given with / as a prefix (I tried changing to "-"
and it worked). Instead you end up with an empty manifest and binaries
which don't find their runtime library.
this issue is fixed in svn - please run
emerge --update kdewin
Thanks, mt.exe works fine now.
However I seem to face another bug. It seems cmake uses a wrong build
order and executes mt as the LAST tool (even after linking). That almost
looks like a cmake bug, is it? Logs attached.
Now I'm wondering if there's a reason why the mt build is only excluded
when using msvc90? I checked and both PSDK 2003 R2 and MSVC2005 seem to
ship it (and it seems to work as well).
The msvc2005 mt tool does not have support to handle uac manifests
required for vista and later and requires a self contained mt tool.
Ah, I see. Then it makes sense of course.
Regards,
Michael
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1400
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 32 bit
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio
8/VC/bin/cl.exe
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio
8/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Programme/Microsoft Visual Studio
8/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Programme/Microsoft Visual Studio
8/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.2
-- Configuring done
-- Generating done
-- Build files have been written to:
D:/kderoot/svn/trunk/kdesupport/automoc/build
D:\kderoot\dev-utils\bin\cmake.exe
-HD:\kderoot\svn\trunk\kdesupport\automoc
-BD:\kderoot\svn\trunk\kdesupport\automoc\build --check-build-system
CMakeFiles\Makefile.cmake 0
D:\kderoot\dev-utils\bin\cmake.exe -E cmake_progress_start
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles\progress.make
"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
CMakeFiles\Makefile2 /nologo - all
"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
CMakeFiles\automoc4.dir\build.make /nologo -L
CMakeFiles\automoc4.dir\depend
D:\kderoot\dev-utils\bin\cmake.exe -E cmake_depends "NMake Makefiles"
D:\kderoot\svn\trunk\kdesupport\automoc D:\kderoot\svn\trunk\kdesupport\automoc
D:\kderoot\svn\trunk\kdesupport\automoc\build
D:\kderoot\svn\trunk\kdesupport\automoc\build
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles\automoc4.dir\DependInfo.cmake
--color=
Dependee
"D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles\automoc4.dir\DependInfo.cmake"
is newer than depender
"D:/kderoot/svn/trunk/kdesupport/automoc/build/CMakeFiles/automoc4.dir/depend.internal".
Scanning dependencies of target automoc4
"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
CMakeFiles\automoc4.dir\build.make /nologo -L
CMakeFiles\automoc4.dir\build
D:\kderoot\dev-utils\bin\cmake.exe -E cmake_progress_report
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles 1
[100%] Building CXX object CMakeFiles/automoc4.dir/kde4automoc.obj
C:\PROGRA~1\MID05A~1\VC\bin\cl.exe
@D:\DOKUME~1\Leupold\LOKALE~1\Temp\nm379E.tmp
kde4automoc.cpp
Linking CXX executable automoc4.exe
D:\kderoot\dev-utils\bin\cmake.exe -E vs_link_exe
C:\PROGRA~1\MID05A~1\VC\bin\cl.exe /nologo
@CMakeFiles\automoc4.dir\objects1.rsp
@D:\DOKUME~1\Leupold\LOKALE~1\Temp\nm379F.tmp
Visual Studio Incremental Link with embeded manifests
Create automoc4.exe.resource.txt
Create empty: automoc4.exe.embed.manifest
RC Pass 1:
C:/Programme/Microsoft Visual Studio 8/VC/bin/rc.exe
/foautomoc4.exe.embed.manifest.res automoc4.exe.resource.txt
LINK Pass 1:
C:\PROGRA~1\MID05A~1\VC\bin\cl.exe /nologo
@CMakeFiles\automoc4.dir\objects1.rsp /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /Feautomoc4.exe
/FdD:\kderoot\svn\trunk\kdesupport\automoc\build\automoc4.pdb -link
/implib:automoc4.lib /version:0.0 /MANIFEST /STACK:10000000 /machine:I386
/debug /INCREMENTAL:YES /subsystem:console D:\kderoot\lib\QtCored4.lib
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
/MANIFESTFILE:automoc4.exe.intermediate.manifest
automoc4.exe.embed.manifest.res
MT:
D:/kderoot/bin/mt.exe /nologo /out:automoc4.exe.embed.manifest /notify_update
/manifest automoc4.exe.intermediate.manifest
D:\kderoot\dev-utils\bin\cmake.exe -E cmake_progress_report
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles 1
[100%] Built target automoc4
D:\kderoot\dev-utils\bin\cmake.exe -E cmake_progress_start
D:\kderoot\svn\trunk\kdesupport\automoc\build\CMakeFiles 0
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows