Author Archives: onegazhang

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

Install Eclipse Plugin

I failed to install PyDev5.7 Eclipse plugin on Ubuntu 16.04 guest OS hosted by macOS sierra. Can’t access MarketPlace, can’t install by adding url to update site. fortunately there is 3rd way: unzip to eclipse/dropins folder. Eclipse version is eclipse-cpp-neon-3-linux-gtk-x86_64.

Posted in Eclipse, IDE | Leave a comment

Solution to Java program unable to find valid certification path to requested target

On macOS sierra, some Java program encountered error: PKIX path building failed: unable to find valid certification path to requested target Popular google answer suggested to use keytool to add certificate to $JAVA_HOME/jre/lib/security/cacerts.This solution probably works on other OS … Continue reading

Posted in Java, Uncategorized | Tagged | 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