1 Tried to create an RTP packet which whould exceed the specified maximum packet size
2 WINDOWS上用CMAKE編譯jrtplib時 報錯src/rtptimeutilities.h invaild suffix ui64 on integer constant
ui64 ->ull
3 同上,繼續編譯時間,int jrtplib::RTPComoundPacketBuilder::AddReportBlock(uint32_t,uint8_t,...):
/src/rtcpcompoundpacketbuilder.cpp:239 error:no matching function for call to 'operator new [](unsigned int,jrtplib::rtpmemorymanager*,int)'
最後在linux下編譯成功。
4 指標使用前一定要 new;
5 ARM6410上:pixmap.load("test1.jpg");//執行這一句時段錯誤
6 glibc detected *** ./facecheck: malloc(): memory corruption: 0x000b2ac8
原因:數組越界或像我這種情況:glibc detected *** ./facecheck: malloc(): memory corruption: 0x000b2ac8
7 OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /home/src/OpenCV-2.3.1/modules/core/src/matrix.cpp, line 646
terminate called after throwing an instance of 'cv::Exception'
what(): /home/src/OpenCV-2.3.1/modules/core/src/matrix.cpp:646: error: (-5) Unknown array type in function cvarrToMat
Aborted
8 this function is not available when using the rtp poll thread feature
9 RTP接收不到資料,原因防火牆沒關。
10 linux X11下打包QT應用程式時,出現:error while loading shared libraries:
libjrtp.so.3.9.1:cannot open shared object file:No such file or directory
原因,錯把ARM版的.so 當X86版本的so
11. 獲得本機IP Qsting msg = hostinfo.addresses().first().tostring() //結果是127。0。0。1
clientsocket->peeraddress().tostring();
12 session.AddDestination(ADDR)後,用戶端沒有收到資料。the specified address is not a multicast address.
13 之前,調用session.poll()時,運行時報錯:this function is not available when using the rtp poll thead feature,可能是因為沒有支援多播。
14 RTP不能組播,原因是RTP 寄件者的transmitparams的連接埠號碼(非組播連接埠號碼)被TCP Server佔用, 另外注意組播IP地址224.0.0.0 ~239.255.255.255 其中224.0.0.0 ~224.0.0.255是被保留的地址。
15 unable to join the specified multicast group...
16 AddDestination("10.10.10.229:8800"); AddDestination("10.10.10.230:8880") ;//只有10.10.10.229能收到資料。
17 V4L2映像採集時,一幀圖片的真實大小儲存在V4L2_burrer結構的bytesused成員裡。但QImage 顯示時仍存在以下幾種錯誤:
Corrupt JPEG data: premature end of data segment:資料無效
Invalid JPEG file structure: two SOI markers:兩個映像開始標記smybol of image;
Corrupt JPEG data: 17 extraneous bytes before marker 0xd9 :結束標記後面存在17個額外的位元組
> This is caused by QNetworkReplyImplPrivate never getting
"_q_copyReadyRead()"
> triggered again after assigning the IODevice. If there's more than 32k
of
> data, the function "nextDownstreamBlockSize()" still returns 32k. So
one would
> expect this function to be called again until the whole copy is
completed, but
> it's not.
>
> This makes the cache useless because it could only be used on small
files,
> which defeat its purpose.
最後用memcpy解決,深層原因還不清楚。
18:RTP session' portbase must be a even number.
19 configure ffmpeg時提示:c compiler test faild ,查看config.log 發現mcpu=arm is bad 將cpu=arm改成cpu=armv6解決
20 panitEvent 中 qpixmap->loadfromdata & qpixmap->drawpixmap 段錯誤。估計是記憶體溢出,改用QIMAGE 也是這樣,沒加入侵探測之前用的好好的。
21 輸出的AVI檔案不能播放。
用UE一看,發現AVI檔案頭沒有寫入,寫入檔案頭是在avi_close_output_file函數裡完成的,為什麼要在關閉檔案是才寫入檔案頭?應該是在關閉檔案時才能確認AVI檔案的某些參數,如幀數。OPENCV 的用createVideoWriter(先寫檔案頭)和cvWriteFrame 方法最後也要releasevideo 這樣輸出的檔案頭才是正確的。
22 程式運行一段時間後程式異常退出OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /home/src/OpenCV-2.3.1/modules/core/src/matrix.cpp, line 646
terminate called after throwing an instance of 'cv::Exception'
what(): /home/src/OpenCV-2.3.1/modules/core/src/matrix.cpp:646: error: (-5) Unknown array type in function cvarrToMat
Aborted
It appears you need to create your output matrix. In your example, change the declaration of Mc from CvMat to CvMat* and initialize it: CvMat *Mc = cvCreateMat( 2, 2, CV_32FC1); I think this will work. The compiler can't catch uninitialized array, since static
type checking will pass
23 編寫PWM驅動的測試程式時,這樣編譯的話 arm-linux-gcc -o xxx -c xxx.c 程式在ARM上運行將出現這種錯誤:Syntax error: word unexpected (expecting ")") -c的意思是產生目標檔案而不是可執行檔,-O指定目標檔案名。
24 ARM應用程式傳一個結構體到核心驅動時,發現結構成員的值不對。例如傳一個pwm{unsgined long id,unsgind long freq,unsigned long duty}的結構到核心空間,後面兩個參數不對。 解決:以指標的方式傳遞。
25 段錯誤 編譯器版本原因。