Category Archives: Open Source

Build tea editor

Build tea on macOS sierra Install qt5: brew install qt5 download tea source code from https://github.com/psemiletov/tea-qt unzip ~/Downloads/tea-qt-master.zip cd tea-qt-master /usr/local/Cellar/qt/5.8.0_2/bin/qmake make cp -r bin/tea.app /Applications add /Applications/tea.app/Contents/MacOS to PATH environment variable in ~/.profile Build tea on Ubuntu 16.04 xenial … Continue reading

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

wxBoxSizer Horizontal alignment flags are ignored with wxEXPAND

Newer version of wxWidgets reports error: ASSERT INFO: ./src/common/sizer.cpp(2091): assert “!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))” failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND BACKTRACE: [1] wxBoxSizer::DoInsert(unsigned long, wxSizerItem*) [2] WXMSearchReplaceDialog::WXMSearchReplaceDialog(wxWindow*, int, wxPoint const&, wxSize const&) … wxBoxSizer* BoxSizer2; … Continue reading

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

Solution to valgrind: failed to start tool memcheck/callgrind

Background: I need to run memcheck/callgrind on a system without privilege to install software, so I build valgrind from source code. Valgrind-3.12.0.tar.bz2 on Ubuntu 14.04 trusty tar xf valgrind-3.12.0.tar.bz2 ./configure make onegazhang@trusty:~/oss/valgrind-3.12.0$ VALGRIND_LIB=/home/onegazhang/oss/valgrind-3.12.0 coregrind/valgrind valgrind: failed to start tool ‘memcheck’ … Continue reading

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

Max file size for log file

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

Posted in ACE, CPP, Open Source | 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 … Continue reading

Posted in CPP, IDE, Open Source | 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 … Continue reading

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 … Continue reading

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