tag:blogger.com,1999:blog-2590786243514585895.post4316261990959132006..comments2022-03-28T13:41:03.207+01:00Comments on Camltastic!: MinGW: Compile software for Windows without leaving your Fedora machineRichard Joneshttp://www.blogger.com/profile/08315526595922432607noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-2590786243514585895.post-18879981441553444572008-11-27T19:29:00.000+00:002008-11-27T19:29:00.000+00:00Yes thanks pbor, that's a better solution.Yes thanks pbor, that's a better solution.Richard Joneshttps://www.blogger.com/profile/08315526595922432607noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-12864908156614437882008-11-27T08:50:00.000+00:002008-11-27T08:50:00.000+00:00since afaics virt-viewer uses gtk and thus glib, y...since afaics virt-viewer uses gtk and thus glib, you should check waht glib provides more carefully, since it has many utilities for cross platform stuff.<BR/><BR/>In particular for your case, it provides <B>g_usleep()</B> which would save you some code.Unknownhttps://www.blogger.com/profile/03599761648050682368noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-56276351245296719132008-11-08T11:42:00.000+00:002008-11-08T11:42:00.000+00:00Answered here:http://lists.fedoraproject.org/piper...Answered here:<BR/><A HREF="http://lists.fedoraproject.org/pipermail/fedora-mingw/2008-November/000015.html" REL="nofollow">http://lists.fedoraproject.org/pipermail/fedora-mingw/2008-November/000015.html</A>Richard Joneshttps://www.blogger.com/profile/08315526595922432607noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-81731017723247221402008-11-07T20:53:00.000+00:002008-11-07T20:53:00.000+00:00This isn't really the place for support. Post a m...This isn't really the place for support. Post a message on the <A HREF="https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw" REL="nofollow">fedora-mingw mailing list</A>.Richard Joneshttps://www.blogger.com/profile/08315526595922432607noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-20416828099837785952008-11-07T20:39:00.000+00:002008-11-07T20:39:00.000+00:00hi, i know this is not the best place for configur...hi, i know this is not the best place for configuration question but<BR/>I just tried you packages on F10 compiling poco (www.pocoproject.org)<BR/><BR/><BR/>and it it seems that my include directories are wrong ?<BR/><BR/><BR/>[andrzej@linx poco-1.3.3p1]$ make<BR/>make -C /home/andrzej/poco/poco-1.3.3p1/Foundation<BR/>make[1]: Entering directory `/home/andrzej/poco/poco-1.3.3p1/Foundation'<BR/>** Compiling src/Environment.cpp (debug)<BR/>i686-pc-mingw32-g++ -Iinclude -I/home/andrzej/poco/poco-1.3.3p1/CppUnit/include -I/home/andrzej/poco/poco-1.3.3p1/Foundation/include -I/home/andrzej/poco/poco-1.3.3p1/XML/include -I/home/andrzej/poco/poco-1.3.3p1/Util/include -I/home/andrzej/poco/poco-1.3.3p1/Net/include -DPOCO_BUILD_HOST=linx -v -mno-cygwin -D_WIN32 -DMINGW32 -DWINVER=0x500 -DPOCO_NO_FPENVIRONMENT -DPCRE_STATIC -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -I/usr/local/include -I/usr/include -g -D_DEBUG -c src/Environment.cpp -o /home/andrzej/poco/poco-1.3.3p1/Foundation/obj/MinGW/ia32/debug_static/Environment.o<BR/>Using built-in specs.<BR/>Target: i686-pc-mingw32<BR/>Configured with: ../configure --prefix=/usr --bindir=/usr/bin --includedir=/usr/include --libdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-mingw32 --with-gnu-as --with-gnu-ld --verbose --without-newlib --disable-multilib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --with-sysroot=/usr/i686-pc-mingw32/sys-root --enable-languages=c,c++<BR/>Thread model: win32<BR/>gcc version 4.3.2 (GCC) <BR/>COLLECT_GCC_OPTIONS='-Iinclude' '-I/home/andrzej/poco/poco-1.3.3p1/CppUnit/include' '-I/home/andrzej/poco/poco-1.3.3p1/Foundation/include' '-I/home/andrzej/poco/poco-1.3.3p1/XML/include' '-I/home/andrzej/poco/poco-1.3.3p1/Util/include' '-I/home/andrzej/poco/poco-1.3.3p1/Net/include' '-DPOCO_BUILD_HOST=linx' '-v' '-mno-cygwin' '-D_WIN32' '-DMINGW32' '-DWINVER=0x500' '-DPOCO_NO_FPENVIRONMENT' '-DPCRE_STATIC' '-DPOCO_THREAD_STACK_SIZE' '-DFoundation_Config_INCLUDED' '-I/usr/local/include' '-I/usr/include' '-g' '-D_DEBUG' '-c' '-o' '/home/andrzej/poco/poco-1.3.3p1/Foundation/obj/MinGW/ia32/debug_static/Environment.o' '-mtune=generic'<BR/> /usr/libexec/gcc/i686-pc-mingw32/4.3.2/cc1plus -quiet -v -Iinclude -I/home/andrzej/poco/poco-1.3.3p1/CppUnit/include -I/home/andrzej/poco/poco-1.3.3p1/Foundation/include -I/home/andrzej/poco/poco-1.3.3p1/XML/include -I/home/andrzej/poco/poco-1.3.3p1/Util/include -I/home/andrzej/poco/poco-1.3.3p1/Net/include -I/usr/local/include -I/usr/include -DPOCO_BUILD_HOST=linx -D_WIN32 -DMINGW32 -DWINVER=0x500 -DPOCO_NO_FPENVIRONMENT -DPCRE_STATIC -DPOCO_THREAD_STACK_SIZE -DFoundation_Config_INCLUDED -D_DEBUG src/Environment.cpp -quiet -dumpbase Environment.cpp -mno-cygwin -mtune=generic -auxbase-strip /home/andrzej/poco/poco-1.3.3p1/Foundation/obj/MinGW/ia32/debug_static/Environment.o -g -version -o /tmp/cck0eCDn.s<BR/>ignoring nonexistent directory "/usr/i686-pc-mingw32/sys-root/usr/local/include"<BR/>ignoring nonexistent directory "/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/include"<BR/>ignoring duplicate directory "/home/andrzej/poco/poco-1.3.3p1/Foundation/include"<BR/>#include "..." search starts here:<BR/>#include <...> search starts here:<BR/> include<BR/> /home/andrzej/poco/poco-1.3.3p1/CppUnit/include<BR/> /home/andrzej/poco/poco-1.3.3p1/XML/include<BR/> /home/andrzej/poco/poco-1.3.3p1/Util/include<BR/> /home/andrzej/poco/poco-1.3.3p1/Net/include<BR/> /usr/local/include<BR/> /usr/include<BR/> /usr/lib/gcc/i686-pc-mingw32/4.3.2/include/c++<BR/> /usr/lib/gcc/i686-pc-mingw32/4.3.2/include/c++/i686-pc-mingw32<BR/> /usr/lib/gcc/i686-pc-mingw32/4.3.2/include/c++/backward<BR/> /usr/lib/gcc/i686-pc-mingw32/4.3.2/include<BR/> /usr/lib/gcc/i686-pc-mingw32/4.3.2/include-fixed<BR/> /usr/i686-pc-mingw32/sys-root/mingw/include<BR/>End of search list.<BR/>GNU C++ (GCC) version 4.3.2 (i686-pc-mingw32)<BR/> compiled by GNU C version 4.3.0 20080428 (Red Hat 4.3.0-8), GMP version 4.2.2, MPFR version 2.3.0-p2.<BR/>warning: MPFR header version 2.3.0-p2 differs from library version 2.3.2.<BR/>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072<BR/>Compiler executable checksum: ae26091e2341bb99ed135a76888b4e34<BR/>In file included from src/Environment.cpp:48:<BR/>src/Environment_WIN32.cpp: In static member function 'static void Poco::EnvironmentImpl::nodeIdImpl(Poco::UInt8 (&)[6])':<BR/>src/Environment_WIN32.cpp:176: error: 'memcpy' is not a member of 'std'<BR/>make[1]: *** [/home/andrzej/poco/poco-1.3.3p1/Foundation/obj/MinGW/ia32/debug_static/Environment.o] Error 1<BR/>make[1]: Leaving directory `/home/andrzej/poco/poco-1.3.3p1/Foundation'<BR/>make: *** [Foundation-libexec] Error 2<BR/>[andrzej@linx poco-1.3.3p1]$Essexhttps://www.blogger.com/profile/09609630139784078636noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-74110282174802518022008-10-11T15:28:00.000+01:002008-10-11T15:28:00.000+01:00cmake can do it, at least according to this page o...cmake can do it, at least <A HREF="http://www.cmake.org/Wiki/CmakeMingw" REL="nofollow">according to this page on their wiki</A>.<BR/><BR/>No idea about scons though. I'd never heard of it until I had to port NSIS over (which uses scons), and I found it pretty baffling. The scons script included with NSIS cross-compiled after I applied a small patch, but I don't know if that was because of scons or hard work by NSIS contributors.Richard Joneshttps://www.blogger.com/profile/08315526595922432607noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-22946741614223040882008-10-11T10:19:00.000+01:002008-10-11T10:19:00.000+01:00I see that Autoconf is used but does anyone know w...I see that Autoconf is used but does anyone know whether this would be possible with cmake or scons too?shevyhttps://www.blogger.com/profile/09636171104216432368noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-80621403539203294222008-10-10T12:44:00.000+01:002008-10-10T12:44:00.000+01:00Kevin, yes it would be.Kevin, yes it would be.Richard Joneshttps://www.blogger.com/profile/08315526595922432607noreply@blogger.comtag:blogger.com,1999:blog-2590786243514585895.post-11555882947112384562008-10-10T12:38:00.000+01:002008-10-10T12:38:00.000+01:00Wouldn't it be safer and simpler to always round u...Wouldn't it be safer and simpler to always round up in usleep?<BR/><BR/>int<BR/>usleep (unsigned int usecs)<BR/>{<BR/> Sleep ((usecs + 999) / 1000);<BR/>}Kevin Koflerhttps://www.blogger.com/profile/00136078113749660013noreply@blogger.com