Steven M. Schultz wrote:

On Thu, 13 Nov 2003, Gene Dascher wrote:



following the threads on the "Users" mailing list with great interest and was interested in trying the CVS version to gain access to some of the newer features. I did a checkout of the mjpeg_play module, then used the autogen.sh, after which I invoked make.


        No problems running the ./autogen.sh script?   Some folks seem to
        have a very difficult time getting past that step.

No problems at all


There didn't seem to be any problems with the compile, but
when I tried to use mpeg2enc, I keep getting the following error:

"Malloc failed"


        Hmmm, you didn't accidentally set a memory limit with the shell's
        "limit" command did you?   Something like "limit data 16m" would
        cause a problem.

Nothing like that. Older versions of mpeg2enc work just fine.


After looking at the code, it seems that it is failing at the following place in encoderparams.cc:

motion_data = (struct motion_data *)malloc(M*sizeof(struct motion_data));
                if (!motion_data)
                        mjpeg_error_exit1("malloc failed");


        That structure is not huge so the memory allocation limit must have
        been reached earlier for an unknown reason.


I have not run a make install on the CVS version yet, as I wanted to make sure that there were not any problems before I put it into "production", so I am running the binary from ~/mjpeg_play/mpeg2enc. Could this be the source of the problem?


It could be part of the problem - the latest version of mpeg2enc
does have a shared library now.


        Thing to try is doing the make install to get all the new .a and .so
        and .h files installed.   Then do a make clean and make again - I still
        have the nagging feeling that during a build the previously installed
        files can be consulted/used (depending on the compiler and the order of
        the -I and -L flags used).

I did all of that, and am still getting the same error at the same place. Any more suggestions?


I am using gcc 3.0.4 with Linux Kernel 2.4.18-6mdksmp

Thanks,
Gene




------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to