Compilation under Cygwin

martyCZ <[email protected]> Wed, 10 Oct 2007 20:18:24 +0200 (CEST)
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Hello,
first, I would like to thank all developers and contributors of this great package. You are doing great job.

I recently managed to compile mjpegtools-1.9.0rc2.tar.gz tarball under actual Cygwin. I found few issues and tried to solve them. Because I'm not aware of CVS/diff/patch etc. I'm sending this simple "patch" here. I would appreciate very much if someone more trained incorporates this changes into CVS (if they don't break portability, of course) so others can compile mjpegtools without bothering with source codes.

Best regards,

Martin Sliwka



Reported error:
	/mpeg2enc/ontheflyratectl.cc:880: error: no matching function for call to `min(int32_t&, int)'
Modified file:
	/mpeg2enc/ontheflyratectl.cc
Modified line:
	880
Original code:
	target_bits = min( target_bits, encparams.video_buffer_size*3/4 );
New code:
	target_bits = min( target_bits, (int32_t)(encparams.video_buffer_size*3/4) );



Reported error:
	/mpeg2enc/pass2ratectl.cc:244: error: no matching function for call to `min(int32_t&, int)'
Modified file:
	/mpeg2enc/pass2ratectl.cc
Modified line:
	244
Original code:
	target_bits = min( target_bits, encparams.video_buffer_size*3/4 );
New code:
	target_bits = min( target_bits, (int32_t)(encparams.video_buffer_size*3/4) );



Reported errors:
	/y4mdenoise/ReferenceFrame.hh:352: undefined reference to `Limits<unsigned int>::Bits'
	/y4mdenoise/ReferenceFrame.hh:351: undefined reference to `Limits<unsigned int>::Bits'
	/y4mdenoise/ReferenceFrame.hh:384: undefined reference to `Limits<unsigned int>::Log2Bits'
	/y4mdenoise/ReferenceFrame.hh:438: undefined reference to `Limits<unsigned int>::Bits'
	/y4mdenoise/ReferenceFrame.hh:465: undefined reference to `Limits<unsigned int>::Log2Bits'
	/y4mdenoise/newdenoise.cc:1425: undefined reference to `Limits<unsigned int>::Bits'
Modified file:
	/y4mdenoise/BitmapRegion2D.hh
Modified lines:
	all occurrences (lines 1099, 1100, 1132, 1139, 1140, 1178, 1217, 1259)
Original code:
	... Limits<unsigned int> ...
New code:
	... Limits<uint32_t> ...

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/