11th: watch your compiler warnings

Published on: Author: dariusz.cieslak Leave a comment

Few, most important in my opinion, however mostly overlooked GCC compiler switches: -Wall: enables all the warnings about constructions that some users consider questionable, very likely a programming mistakes -Wextra: enables some extra warning flags that are not enabled by -Wall -Winit-self: warn about uninitialized variables which are initialized with themselves -Wold-style-cast: warn if an… Continue reading 11th: watch your compiler warnings

Categories: en Tags:

Couring GIT output

Published on: Author: dariusz.cieslak Leave a comment

Default git colour setup is not so good. On black terminal background it looks dark: However, with small change in ~/.git/config file: [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = green bold you would get much better diff display on your terminal:

Categories: en Tags:

[FIXED] "not found (try using -rpath or -rpath-link)" during cross compilation

Published on: Author: dariusz.cieslak Leave a comment

When you see the following kind of errors during cross compilation (linking phase): ld: warning: libfontconfig.so.1, needed by …/libQtGui.so, not found (try using -rpath or -rpath-link) ld: warning: libaudio.so.2, needed by …/libQtGui.so, not found (try using -rpath or -rpath-link) There could be two reasons: the list of required binaries is not complete and linker cannot… Continue reading [FIXED] "not found (try using -rpath or -rpath-link)" during cross compilation

[SOLVED] VPN connectioin error: short read (-1): Message too long

Published on: Author: dariusz.cieslak Leave a comment

If you encounter the following error during VPN connection: pptp[12549]: nm-pptp-service-12543 warn[decaps_gre:pptp_gre.c:331]: short read (-1): Message too long there's an easy fix. You have to lower your MTU (automatically obtained value was invalid). First, you have to locate your VPN gateway address in syslog: NetworkManager[11926]: <info> VPN Gateway: X.X.X.X Then, you have to check minimum… Continue reading [SOLVED] VPN connectioin error: short read (-1): Message too long