Quoting Gary <[EMAIL PROTECTED]>:
I am trying to do something... odd. I know it isn't supported, but I
am trying to build Wt using Cygwin. I've got as far as
[EMAIL PROTECTED] ~/wt/wt-2.1.3/build
$ make
[ 0%] Built target filetostring
[ 0%] Building C object src/CMakeFiles/wt.dir/mxml/mxml-file.o
gcc: /wd4251: No such file or directory
gcc: /wd4275: No such file or directory
gcc: /wd4355: No such file or directory
make[2]: *** [src/CMakeFiles/wt.dir/mxml/mxml-file.o] Error 1
make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2
make: *** [all] Error 2
[EMAIL PROTECTED] ~/wt/wt-2.1.3/build
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose
--prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs
--without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptions --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Does anyone have any idea what the problem might be? I know that the
official Cygwin boost package is only ver 1.33 at the moment, so I am
expecting some problems anyway, but I'm not convinced this is one of
them.
The problem is the CMakeFiles.txt are not considering the case where
you are using Win32 but not Visual C++. Please apply the attached
patch and report if it works now (additional flags might be needed for
Cygwin/MingW)
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
diff -rupN witty-2.1.3.orig/src/CMakeLists.txt witty-2.1.3/src/CMakeLists.txt
--- witty-2.1.3.orig/src/CMakeLists.txt 2008-05-25 15:33:00.000000000 +0200
+++ witty-2.1.3/src/CMakeLists.txt 2008-05-25 15:34:18.000000000 +0200
@@ -281,10 +281,10 @@ PROPERTIES
DEBUG_POSTFIX "d"
)
-IF(WIN32)
+IF(MSVC)
SET_TARGET_PROPERTIES(wt PROPERTIES COMPILE_FLAGS "/wd4251 /wd4275 /wd4355")
TARGET_LINK_LIBRARIES(wt winmm wsock32)
-ENDIF(WIN32)
+ENDIF(MSVC)
SUBDIRS(fcgi http)
@@ -333,9 +333,9 @@ INSTALL(TARGETS wtext
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
-IF(WIN32)
+IF(MSVC)
SET_TARGET_PROPERTIES(wtext PROPERTIES COMPILE_FLAGS "/wd4251 /wd4275 /wd4355")
-ENDIF(WIN32)
+ENDIF(MSVC)
SET_TARGET_PROPERTIES(
wtext
diff -rupN witty-2.1.3.orig/src/http/CMakeLists.txt witty-2.1.3/src/http/CMakeLists.txt
--- witty-2.1.3.orig/src/http/CMakeLists.txt 2008-05-25 15:33:00.000000000 +0200
+++ witty-2.1.3/src/http/CMakeLists.txt 2008-05-25 15:33:49.000000000 +0200
@@ -80,13 +80,13 @@ IF(CONNECTOR_HTTP)
DEBUG_POSTFIX "d"
)
- IF(WIN32)
+ IF(MSVC)
SET_TARGET_PROPERTIES(
wthttp
PROPERTIES
COMPILE_FLAGS "/wd4251 /wd4275 /wd4355"
)
- ENDIF(WIN32)
+ ENDIF(MSVC)
ADD_DEPENDENCIES(wthttp wt ${EXAMPLES_CONNECTOR})
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest