installing on ARM9

Forum for questions and support relating to the 1.24.x releases only.
stanke
Posts: 13
Joined: Mon Mar 16, 2009 11:35 am

Post by stanke »

ok

I pasted following code into zm.cpp

Code: Select all

extern "C"
{
   double round (double x) {
         int x_int = (int)(x+0.5);
         return(x_int);
   }
}
that solved the round reference problem

now I'm stuck with only

Code: Select all

zm_signal.o: In function `zm_die_handler(int, sigcontext)':
/shares/internal/stanke/zoneminder/src/zm_signal.cpp:94: undefined reference to `backtrace'
collect2: ld returned 1 exit status
make: *** [zmc] Error 1
that's the only error I have, hopefully if I ever resolve this I would have successfully built the ZoneMinder on ARM9

any ideas?

Thanks,
Milosh
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post by Blazer »

I see this in the "configure" script:

Code: Select all

int
main ()
{
#ifndef backtrace
  (void) backtrace;
#endif

  ;
  return 0;
}
so it looks like its defining a dummy backtrace function there...maybe you could insert that code into zm_signal.cpp?

I don't like doing hackish things like this, but in this case of getting it to build on another arch, might have to do some weird stuff :)

P.S. I actually see lots of references to backtrace in the "configure" script. The fix might be as simple as adding "#define HAVE_DECL_BACKTRACE 0". to zm_signal.cpp (or #undef HAVE_DECL_BACKTRACE)
stanke
Posts: 13
Joined: Mon Mar 16, 2009 11:35 am

Post by stanke »

Hello Blazer.

The trick is to use the --disable-backtrace in the ./configure run. It's even clearly stated during the configure run that backtrace may give trouble while compiling zm_singal.cpp. Anyway, I didn't do that because I wasn't able to run the ./configure again since my Perl started segfaulting on the DBD::mysql module. I have no clue why.

So I commented out the backtracing bit of the zm_signal.cpp which would have been ignored anyway had the --disable-backtrace switch been used during the ./configure run.

So, I ended up finally finishing the build of zonemanager. But now I can't run it because my perl keeps segfaulting and I have no clue why!

There goes 5 days of trouble for nothing.

Thanks again Blazer and others for all the help and hints.

Milosh
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

stanke,

I love making things do things they are not suppose to do. I was going to fire up the old DNS 323, but looks like I'll hold off on that after your report. What I do have is 4 old Xbox's running Xebian, basically Debian. I've also got an Xbox 360 that has an exploit in the dash and boots my install of Ubuntu from a 120gb hard drive. I rarely mess with it since I'm so busy but I thougt about it today and might try to install zoneminder on them. I know for a fact the old Xbox is based on x86 and I've had things like Asterisk, BF2 game server, and all sorts of normal Linux pc stuff running on it over the years.

You figure for about 50-60 bucks nowadays you could grab an old Xbox off ebay, "tweak it", slap a bigger drive in it and have a complete Zoneminder server for about 1-2 cams. The old Xbox only has 64mb ram so I don't know how many camera's that would run. Just some thoughts for guys like you and Blazer :)
stanke
Posts: 13
Joined: Mon Mar 16, 2009 11:35 am

Post by stanke »

newvisionantenna wrote:stanke,

I love making things do things they are not suppose to do. I was going to fire up the old DNS 323, but looks like I'll hold off on that after your report. What I do have is 4 old Xbox's running Xebian, basically Debian. I've also got an Xbox 360 that has an exploit in the dash and boots my install of Ubuntu from a 120gb hard drive. I rarely mess with it since I'm so busy but I thougt about it today and might try to install zoneminder on them. I know for a fact the old Xbox is based on x86 and I've had things like Asterisk, BF2 game server, and all sorts of normal Linux pc stuff running on it over the years.

You figure for about 50-60 bucks nowadays you could grab an old Xbox off ebay, "tweak it", slap a bigger drive in it and have a complete Zoneminder server for about 1-2 cams. The old Xbox only has 64mb ram so I don't know how many camera's that would run. Just some thoughts for guys like you and Blazer :)
Well, it's not all that hard once you have figured things out, like I did the hard way. Now it wouldn't take me long to do it, only if it weren't for the darn Perl segfault.

Anyway having to mess with embedded devices is a new experience for me, and I enjoyed the sweet torture in the past days. Only my effort didn't bear fruit :(.

I wanted to make this work on the WD NAS thingy because it stays on all night anyway, and it doesn't spend too much electricity, and I guess like all of you I have hundreds of gadgets plugged in all the time, and I didn't want to have my computer on all day round just to make snapshots of motion on my security cam. If my wife knew how much electricity my gadgets spend being on all the time... plus there's the environment factor :P

One more thing, I'm interested in your business newvisionantenna, can you please e-mail me on

milos (dot) stanic ( at ) gmail (dot) com

thanks
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post by Blazer »

Heh now I have to do an arm compile. The little guy Im working on at least has a cross-compiler in the dev kit, but I want to try compiling right on the machine itself. Its 1.2Ghz so it shouldn't be too bad.

So far I've been trying to compile the uvcvideo module without any luck.
roozbeh
Posts: 2
Joined: Wed Aug 18, 2010 6:12 pm

Post by roozbeh »

Blazer,
Would you please tell me if you had any success running ZoneMinder on ARM platform?

Thanks in advance
Locked