I did another post asking for support but nobody answered, so I try to reinstall again from source, not from deb packages.
I am doing "make" and i got this error everytime:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zm_remote_camera.o -MD -MP -MF .deps/zm_remote_camera.Tpo -c -o zm_remote_camera.o zm_remote_camera.cpp
zm_remote_camera.cpp:76: error: expected unqualified-id before ‘else’
make[2]: *** [zm_remote_camera.o] Error 1
make[2]: se sale del directorio «/home/administrador/Descargas/ZoneMinder-1.25.0/src»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/home/administrador/Descargas/ZoneMinder-1.25.0»
make: *** [all] Error 2
I dont know what is that "unqualified-id".... and i didn't find anything about this. Can yo help me?
Thanks.
Reinstalling
Reinstalling
Last edited by asdrians on Mon Oct 17, 2011 10:40 am, edited 1 time in total.
Re: Reinstalling
This is the line 76 of the zm_remote_camera.cpp script
71 sa.sin_family = hp->h_addrtype;
72 sa.sin_port = htons(atoi(port.c_str()));
73 }
74 }
75
76 else if ( !strcasecmp( conte nt_type, "application/octet-stream" ) )
77 {
78 // Possibly an SNC-M?W M JPEG stream
79 Debug( 3, ( "Got possibl e SNC-M?W MJPEG content type: '%s'", content_type ));
80 Debug( 3, ( "Delaying co ntent_boundary detection for CUSTOMHEADER" ));
So it seems that here is the error
71 sa.sin_family = hp->h_addrtype;
72 sa.sin_port = htons(atoi(port.c_str()));
73 }
74 }
75
76 else if ( !strcasecmp( conte nt_type, "application/octet-stream" ) )
77 {
78 // Possibly an SNC-M?W M JPEG stream
79 Debug( 3, ( "Got possibl e SNC-M?W MJPEG content type: '%s'", content_type ));
80 Debug( 3, ( "Delaying co ntent_boundary detection for CUSTOMHEADER" ));
So it seems that here is the error
Re: Reinstalling
I realized that this error appears when i patch the files zm_remote_camera.cpp and zm_remote_camera.h with the Sony SNC patches.... When i patch this files whit whatever of the two versions (the 1.22.1 and 1.22.3) some chunks fails....
I dont know what else can i do...
I dont know what else can i do...
Re: Reinstalling
I am patching the zoneminder version 1.25 with the patches 1.22.1, and here are the chunks that fails:
patching file zm_remote_camera.cpp
Hunk #3 FAILED at 568.
1 out of 4 hunks FAILED -- saving rejects to file zm_remote_camera.cpp.rej
--------------------------------------------------------------------------
patching file zm_remote_camera.h
Hunk #1 FAILED at 49.
Hunk #2 FAILED at 51.
2 out of 2 hunks FAILED -- saving rejects to file zm_remote_camera.h.rej
When i patch with the 1.23.1 version all chunks fail.
patching file zm_remote_camera.cpp
Hunk #3 FAILED at 568.
1 out of 4 hunks FAILED -- saving rejects to file zm_remote_camera.cpp.rej
--------------------------------------------------------------------------
patching file zm_remote_camera.h
Hunk #1 FAILED at 49.
Hunk #2 FAILED at 51.
2 out of 2 hunks FAILED -- saving rejects to file zm_remote_camera.h.rej
When i patch with the 1.23.1 version all chunks fail.
Re: Reinstalling
I gave up and now im trying to install Zoneminder 1.22.3... the exactly version with the patch 1.22.3.
Now i got this error doing make... this is crazy:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -march=native -O2 -pipe -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_monitor.h:28,
from zmc.cpp:27:
zm_image.h:249: error: redefinition of âint hi_yâ
zm_image.h:249: error: âint hi_yâ previously declared here
In file included from zmc.cpp:27:
zm_monitor.h:114: warning: âtypedefâ was ignored in this declaration
make[2]: *** [zmc.o] Error 1
make[2]: se sale del directorio «/usr/src/zm/src»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/usr/src/zm»
make: *** [all] Error 2
Need to change the g++ compiler to another version or something like that??
Please, help.
Now i got this error doing make... this is crazy:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -march=native -O2 -pipe -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_monitor.h:28,
from zmc.cpp:27:
zm_image.h:249: error: redefinition of âint hi_yâ
zm_image.h:249: error: âint hi_yâ previously declared here
In file included from zmc.cpp:27:
zm_monitor.h:114: warning: âtypedefâ was ignored in this declaration
make[2]: *** [zmc.o] Error 1
make[2]: se sale del directorio «/usr/src/zm/src»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/usr/src/zm»
make: *** [all] Error 2
Need to change the g++ compiler to another version or something like that??
Please, help.
Re: Reinstalling
Because i need to configure Sony Network Cameras and 1.25 doesn't support it.dogmeat206 wrote:Why not use 1.25?
-
- Posts: 51
- Joined: Tue Oct 11, 2011 10:15 pm
Re: Reinstalling
I see. I kinda wonder if I should back off in versions too.