-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtroubleshooting.txt
More file actions
36 lines (26 loc) · 825 Bytes
/
troubleshooting.txt
File metadata and controls
36 lines (26 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
For that annoying "Developer Tools needs to take control... password...":
sudo /usr/sbin/DevToolsSecurity --enable
g++ -Wall for all warnings
gdb:
gdb lk.test
directory test/src
break PointAccountantTest.cpp:87
run
print data.nextPts.size()
continue
quit
Linker problems:
0. add to makefile
1. clean & build
Link problems related to ostream& operator<<:
If declared in header file: inline
Else: extern
If gdb can't set breakpoint: try add compiler flags -g and rebuild
STK build problems "MUTEX" not found etc:
add this def as compiler flag -D__MACOSX_CORE__
Compiling OpenCV with Clang c++11:
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++"
fix narrowing errors as the compiler suggests
fix defines
Vim fails to color syntax:
rm the ~/.vim/views/FILENAME