I'm getting:
In file included from zm_rtsp.h:31,
from zm_remote_camera_rtsp.h:28,
from zm_monitor.cpp:35:
zm_sdp.h:222: error: use of enum ‘RTSPLowerTransport’ without previous declaration
make[2]: *** [zm_monitor.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.0'
make: *** [all] Error 2
The ffmpeg is installed and it seems not have problem.
If it hels, here is my configure command:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=yes
What I should do?
Thanks!!
Compile error - RTSPLowerTransport [SOLVED]
Compile error - RTSPLowerTransport [SOLVED]
Last edited by liviab on Mon Dec 08, 2008 1:02 pm, edited 1 time in total.
[Resolved] Compile error - RTSPLowerTransport
I resolved it!! I don't know if it is the best way, but works.
I find in the internet that I should change the name of the struct RTSPProtocol to RTSPLowerTransport. However, I get another error saying that it didn't find RTSPProtocol. So, I created a struct RTSPLowerTransport equal the struct RTSPProtocol. And works!!!
(file changed: libavformat/rtsp.h)
-
- Posts: 260
- Joined: Tue Aug 21, 2007 1:42 pm
- Location: Baltimore, MD
Getting this same error with the 2679 build.
I do not have a libavformat/rtsp.h file, though I do have a ffmpeg/rtsp.h file - which I added the following to:
This is the same code as RTSPProtocol, though with just a changed name.
Now when I try to make, I am getting more errors, complaining about conflicting declarations for the 3 RTSP_PROTOCOL_RTP lines.
Could you please post some more on how you fixed this problem?
EDIT:
Nevermind - all that I had to do was add to ffmpeg/rtsp.h
I do not have a libavformat/rtsp.h file, though I do have a ffmpeg/rtsp.h file - which I added the following to:
Code: Select all
enum RTSPLowerTransport {
RTSP_PROTOCOL_RTP_UDP = 0,
RTSP_PROTOCOL_RTP_TCP = 1,
RTSP_PROTOCOL_RTP_UDP_MULTICAST = 2,
};
Now when I try to make, I am getting more errors, complaining about conflicting declarations for the 3 RTSP_PROTOCOL_RTP lines.
Could you please post some more on how you fixed this problem?
EDIT:
Nevermind - all that I had to do was add
Code: Select all
enum RTSPLowerTransport{};
Last edited by kylejohnson on Tue Dec 16, 2008 8:19 pm, edited 1 time in total.