Linux related
LD_LIBRARY_PATH vs PKG_CONFIG_PATH
LD_LIBRARY_PATH is an environment variable that says where to look for dynamically linked
libraries in non-standard locations. Is set in bash with
export LD_LIBRARY_PATH=/path/lib/:$LD_LIBRARY_PATH
Adjust the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
This is usually something like /path/to/lib/lib/pkgconfig/
RPATH encodes a path to shared libraries into the header of an executable (or another shared library).
LD_LIBRARY_PATH vs PKG_CONFIG_PATH
- Make sure all necessary development packages have been installed, e.g., for development qith Qt, we don't just need the qt-libs
(needed to run programs build with Qt) but also e.g.,qt4-dev-tools.
- Note that when installing kdevelop and the standard libraries for development for C++, you may not have the
automake tools, so install these as well to be able to create automake projects under linux.
Windows host system
Command window size in windows
Annoyingly, the default size of the command window is too small and cannot be enlarged beyond a certain size.
To deal with this, right-click on the title bar of the command window and select "Default". The resulting
pop-up window allows you to set a more comfortable new default size for this window
[source].
Check resource usage
Not immediately in the menus, but can be called when pressing "Ctrl+Alt+del" and selecting "Task Manager"
and select tab page "Performance".
Visual Studio
Shortcuts:
| F1 | Help |
| F5 | Start debugging / continue (to next break point or end) |
| F7 | Build solution |
| F9 | Toggle breakpoint |
| F10 | Step over |
| F11 | Step into |
Show line numbers
(Reference)Tools -> Options -> Text editor ->C/C++ (or other lang.) -> General; check the Line Numbers check box in the right.
Set/unset bookmarks
(Reference) The bookmarks can be setup very easy, by pressing Ctrl+K, Ctrl+K to leave bookmark.
Bookmarked line marked with a blue rectangular icon where the breakpoints are also set.
For navigation, press Ctrl+K Ctrl+N to move to the next bookmark, or Ctrl+K Ctrl+P for the previous bookmark.
Virtual machine vs. network drive issue
I got the following error when running Visual Studio from a virtual machine which accessed the source and project files
over the network
error PRJ0006 : Could not open the temporary file 'PATH\TO\Debug\RSP0000081096304.rsp'. Make sure the file exists and that the directory is not write-protected.
Compiling...
Project : error PRJ0003 : Error spawning '/Od'.
|
even with all my directories with write-permission on and sufficient disk space available. We solved this by
setting in the solution properties "Configuration properties -> General -> Intermediate directory" to
a subdirectory in C:\temp\, so on the virtual machine's virtual disk instead of on the network disk.
Note that these properties need to be set per target, and cannot be set for the whole solution.