Category Archives: CPP

build gede

build gede on Ubuntu 16.04 xenial with Qt5.8 Install Download gede-2.0.3.tar.xz from tar xf gede-2.0.3.tar.xz cd ~/oss/gede-2.0.3/src ~/Qt/5.8/gcc_64/bin/qmake Info: creating stash file ~/oss/gede-2.0.3/src/.qmake.stash ~/oss/gede-2.0.3/src$ make

Posted in CPP, GUI, QT | Leave a comment

Build tea editor

Build tea on macOS sierra Install qt5: brew install qt5 download tea source code from unzip ~/Downloads/ cd tea-qt-master /usr/local/Cellar/qt/5.8.0_2/bin/qmake make cp -r bin/ /Applications add /Applications/ 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

ORBConcurrency thread-per-connection

create file hello_svc.conf with the following content according to this document: static Resource_Factory “-ORBResources global -ORBReactorType select_mt” static Server_Strategy_Factory “-ORBConcurrency thread-per-connection” start naming server: tao_cosnaming -ORBListenEndpoints iiop://localhost:9999 start servant: taohelloserver -ORBInitRef NameService=corbaloc:iiop:localhost:9999/NameService -ORBSvcConf ~/workspace/taohelloserver/hello_svc.conf The document says that it can … Continue reading

Posted in ACE, CORBA, CPP | Tagged | 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

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

Posted in CPP, MFC | Leave a comment