johnson-pkt / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

manifest of dll and R6034 exception #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.use cmake  and vs2008 to compile opencv svn r7183 ,version number 2.3.2
2.build javacv svn r204 from source (cange the 231 to 232 in the java 
sourcefile)
3.compile and run  FaceRecognition.java 

What is the expected output? What do you see instead?
R6034 exception was thrown... the application made an attempt to load the c 
runtime library incorrectly.

What version of the product are you using? On what operating system?
I use win7 64 bit and java1.6.0.29 32bit

Please provide any additional information below.
the opencv dlls build by cmake  use manifest embbeded in the binary
May the dlls of javacv(build by javacpp,in the javacv-windows-x86.jar) lost 
their manifest  ???

Original issue reported on code.google.com by changcha...@gmail.com on 7 Feb 2012 at 2:43

GoogleCodeExporter commented 8 years ago
Do you really need MSVC2008? MSCV2010 is not good enough?

Original comment by samuel.a...@gmail.com on 7 Feb 2012 at 3:26

GoogleCodeExporter commented 8 years ago
1 msvc2010's runtime library  msvcr100.dll could not run on  older win32 os ....

2 vs2003 could not be  installed on win7 ; vs2003  lacks head files related  to 
sse2 used by opencv

3 vs2005 sp1 is not good enough ( slow installation speed )

so vs2008 is the choice. 

btw,   python 2.7.x on win32 was built by vs2008......

Original comment by changcha...@gmail.com on 7 Feb 2012 at 4:58

GoogleCodeExporter commented 8 years ago
Well, the whole manifest file debacle happened with MSVC 2010, so if you 
absolutely cannot use that version, then you will need to append manually the 
manifest file to the generated DLL files: 
http://msdn.microsoft.com/en-us/library/ms235591%28v=vs.90%29.aspx
We could add those commands in the build.xml file... If you do it, please let 
me know if you wish to contribute your modifications to JavaCV, thanks

You could also use MinGW instead. It generates more efficient code than MSVC 
and works with every version of Windows, from Windows 95 up to 8. :)

BTW, JDK 7 uses MSVC 2010...

Original comment by samuel.a...@gmail.com on 8 Feb 2012 at 1:47