Page 1 of 1

Compile error - RTSPLowerTransport [SOLVED]

Posted: Wed Dec 03, 2008 1:13 pm
by liviab
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!!

[Resolved] Compile error - RTSPLowerTransport

Posted: Wed Dec 03, 2008 7:12 pm
by liviab
:D

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!!! :wink:

(file changed: libavformat/rtsp.h)

Posted: Tue Dec 16, 2008 8:09 pm
by kylejohnson
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:

Code: Select all

enum RTSPLowerTransport {
    RTSP_PROTOCOL_RTP_UDP = 0,
    RTSP_PROTOCOL_RTP_TCP = 1,
    RTSP_PROTOCOL_RTP_UDP_MULTICAST = 2,
};
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

Code: Select all

enum RTSPLowerTransport{};
to ffmpeg/rtsp.h

Posted: Tue Dec 16, 2008 8:17 pm
by liviab
If I am not wrong, there is only a variable in the all source that has the type RTSPLowerTransport. So try to change this type from RTSPLowerProtocol to RTSPProtocol and delete the struct RTSPLowerTransport that you created before.


:roll: