Max file size for log file

supported libraries: ACE library ACE_Logging_Strategy class, Boost.log library.

Advertisements
Posted in ACE, CPP, Open Source | Leave a comment

IE7 compatibility issue

An application used wininet.dll works properly on system with IE6 installed, but failed to allocate 800MB memory on system with IE7 installed. The address space is fragmented by the following 2 DLLs

3d930000 3da01000   WININET  C:\WINDOWS\system32\WININET.dll

3dfd0000 3e015000   iertutil C:\WINDOWS\system32\iertutil.dll

This issue is fixed by /DELAYLOAD linker option.

Posted in CPP, MFC | Leave a comment

MinGW and boost

On windows 7 enterprise 64bit OS
install mingw-get-inst-20111118
d:\src\boost_1_49_0>bootstrap.bat mingw
d:\src\boost_1_49_0>.\b2.exe –build-type=complete –toolset=gcc stage

when using boost library, define BOOST_THREAD_USE_LIB to fix undefined reference error as the following:
**** Build of configuration Debug for project boostprocess1 ****

**** Internal Builder is used for build ****
g++ -LD:\src\boost_1_49_0\stage\lib -o boostprocess1.exe src\boostprocess1.o -lboost_filesystem-mgw46-mt-sd-1_49 -lboost_thread-mgw46-mt-sd-1_49 -lrpcrt4 -lboost_system-mgw46-mt-sd-1_49 -lws2_32
src\boostprocess1.o: In function `ZN5boost11this_thread18interruptible_waitEy’:
D:/src/boost_1_49_0/boost/thread/win32/thread_data.hpp:161: undefined reference to `_imp___ZN5boost11this_thread18interruptible_waitEPvNS_6detail7timeoutE’

Posted in CPP, IDE, Open Source | Leave a comment

FPGA Comparison

FPGA Logic Cells Comparison compares Virtex-4 Slices, Virtex-5 Slices and Altera ALMs.
Virtex-4 slice
Virtex-4 slice
Virtex-5 slice
Virtex-5 slice
Virtex-6 slice
Virtex-6 slice
3-bit counter with D flip-flops

Posted in FPGA | Tagged | Leave a comment

Eclipse CDT Indigo + qt-eclipse-integration-win32-1.6.1.exe

Install mingw-get-inst-20110802.exe. After installation I have D:\apps\MinGW\bin\mingw32-g++.exe
Install qt-win-opensource-4.7.0-mingw.exe. After installation, I have D:\apps\Nokia\Qt\4.7.0\bin\qmake.exe
Install qt-eclipse-integration-win32-1.6.1.exe. After installation I have D:\apps\Nokia\Eclipse\start.bat
modify D:\apps\Nokia\Eclipse\start.bat
set PATH=D:\apps\MinGW\bin;D:\apps\Nokia\Qt\4.7.0\bin;%SystemRoot%\System32

Check QT path in Eclipse:
Window -> Preferences -> Qt
Bin Path: D:\apps\Nokia\Qt\4.7.0\bin
Include Path: D:\apps\Nokia\Qt\4.7.0\include

Start -> All Programs -> Qt by Nokia v4.7.0 (OpenSource) -> Qt 4.7.0 (Build Debug Libraries)

Start -> All Programs -> Qt Eclipse Integration v1.6.1 -> Start Eclipse with MinGW

Create a new Qt project in Eclipse;
Update make file by menu “Project” -> “Run qmake”

Posted in CPP, Eclipse, IDE, QT | Leave a comment

VC9 build ACE+TAO+CIAO-6.0.4.zip

call “%VS90COMNTOOLS%/../../vc/bin/vcvars32.bat”
cd /d G:\src\ACE6.0.4\ACE_wrappers\

time /t >> vc9build4.log
devenv G:\src\ACE6.0.4\ACE_wrappers\ACE_wrappers_vc9.sln /useenv /Build “Debug|Win32” >> vc9build.log
time /t >> vc9build4.log
devenv G:\src\ACE6.0.4\ACE_wrappers\ACE_wrappers_vc9.sln /useenv /Build “Release|Win32” >> vc9build.log
IF NOT EXIST ace\config.h xcopy /f ace\config-win32.h ace\config.h

REM add G:\src\ACE6.0.4\ACE_wrappers\TAO\tao to VC++ 2008 include path “Tools->Options…

SET INCLUDE=G:\src\ACE6.0.4\ACE_wrappers\TAO\tao;%INCLUDE%

cd /d G:\src\ACE6.0.4\ACE_wrappers\TAO
time /t >> G:\src\ACE6.0.4\vc9build4.log
devenv G:\src\ACE6.0.4\ACE_wrappers\TAO\TAO_ACE_vc9.sln /useenv /Build “Debug|Win32” >> G:\src\ACE6.0.4\vc9build4.log
time /t >> G:\src\ACE6.0.4\vc9build4.log
devenv G:\src\ACE6.0.4\ACE_wrappers\TAO\TAO_ACE_vc9.sln /useenv /Build “Release|Win32” >> G:\src\ACE6.0.4\vc9build4.log
time /t >> G:\src\ACE6.0.4\vc9build4.log

Posted in ACE, CORBA, CPP, Open Source | Leave a comment

VC++ 9.00.21022.08 failed to build webkit and freetype in qt-everywhere-opensource-src-4.7.4

There is more than 30G free disk space.
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

“C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe” -f Makefile.Release all

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

link /LIBPATH:”g:\src\qt-everywhere-opensource-src-4.7.4\lib” /LIBPATH:”g:\src\qt-everywhere-opensource-src-4.7.4\lib” /NOLOGO /INCREMENTAL:NO /LTCG /DL
L /MANIFEST /MANIFESTFILE:”tmp\obj\release_shared\QtWebKit.intermediate.manifest” /VERSION:4.74 /OUT:..\..\..\..\lib\QtWebKit4.dll @C:\DOCUME~1\ONEGA\LOCALS~1\Temp\nm4DF.tmp
fatal error C1083: Cannot open compiler intermediate file: ‘../JavaScriptCore/release\jscore.lib’: Not enough space
LINK : fatal error LNK1257: code generation failed
NMAKE : fatal error U1077: ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE”‘ : return code ‘0x4e9’
Stop.
NMAKE : fatal error U1077: ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe”‘ : return code ‘0x2’
Stop.
NMAKE : fatal error U1077: ‘cd’ : return code ‘0x2’
Stop.
The link.exe used >800MB memory and then disappeared from task manager.

-qt-freetype leads to compile error: g:\src\qt-everywhere-opensource-src-4.7.4\include\qtgui\private\../../../src/gui/text/qfontengine_ft_p.h(65) : fatal error C1083: Cannot open include file: ‘unistd.h’: No such file or directory
At last, I could build the following way:

@ECHO OFF
set QTDIR=G:\src\qt-everywhere-opensource-src-4.7.4
set PATH=%SystemRoot%;%SystemRoot%\system32;%QTDIR%\bin

echo Setting OpenSSL Env.
set OPENSSL=G:\src\openssl-1.0.0e
set LIB=%OPENSSL%\out32
set INCLUDE=%OPENSSL%\inc32

echo Setting NASM and Perl.
set PATH=D:\apps\nasm-2.10rc8;C:\Perl\bin;%OPENSSL%\out32;%PATH%

echo Setting Windows SDK and DirectX.
set WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A
set PATH=%WindowsSdkDir%\Bin;%PATH%
set LIB=%WindowsSdkDir%\Lib;%DXSDK_DIR%Lib\x86;%LIB%
set INCLUDE=%WindowsSdkDir%\Include;%DXSDK_DIR%Include;%INCLUDE%
set TARGET_CPU=x86

@echo Setting MSVC2008 Env.
call "%VS90COMNTOOLS%/../../vc/bin/vcvars32.bat"

echo Setting Framework Env.
set FrameworkVersion=v4.0.30319
set Framework35Version=v3.5
set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
set LIBPATH=%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%LIBPATH%
set PATH=%LIBPATH%;%PATH%

configure -static -debug-and-release -qt-sql-odbc -opensource -confirm-license -ltcg -no-fast -exceptions -accessibility -stl -qt-sql-sqlite -no-qt3support -no-openvg -no-webkit -platform win32-msvc2008 -graphicssystem raster -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-dsp -no-vcproj -incredibuild-xge -plugin-manifests -qmake -process -rtti -mmx -3dnow -sse -sse2 -openssl -no-dbus -phonon -phonon-backend -multimedia -audio-backend  -script -scripttools -declarative -arch windows -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -native-gestures

nmake sub-src

Posted in CPP, Open Source, QT | Tagged | Leave a comment