Compile error - RTSPLowerTransport [SOLVED]

Forum for questions and support relating to the 1.24.x releases only.
Locked
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Compile error - RTSPLowerTransport [SOLVED]

Post 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!!
Last edited by liviab on Mon Dec 08, 2008 1:02 pm, edited 1 time in total.
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

[Resolved] Compile error - RTSPLowerTransport

Post 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)
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post 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
Last edited by kylejohnson on Tue Dec 16, 2008 8:19 pm, edited 1 time in total.
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post 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:
Locked