#13 cvextern.dll missing from trunk

v1.0_(example)
closed
nobody
None
5
2014-04-19
2012-03-02
John Bell
No

Hello,

I am trying to compile EMGU from the trunk of the SVN repository. Just to be clear, the win-superpack was previously installed and worked fine.

Upon running a simple test in a Windows Forms application i recieve the old "The type initializer for 'Emgu.CV.CvInvoke' threw an exception.".

I have tried all of the pointers found at (http://www.emgu.com/wiki/index.php/Down ... _exception.)

Upon searching for cvextern.dll i cannot find this in any of the folders of the newly built EMGU wrappers (See attached image 1). I have tried including the cvextern.dll from the previously working, older, version of EMGU.

Any guidance would be greatly appreciated.

Kind regards,

Daniel

Discussion

  • John Bell
    John Bell
    2012-03-02

    Result for searching EMGU folder for "cvextern"

     
    Attachments
  • John Bell
    John Bell
    2012-03-02

    System.TypeInitializationException was unhandled
    Message=The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
    Source=Emgu.CV
    TypeName=Emgu.CV.CvInvoke
    StackTrace:
    at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels)
    at Emgu.CV.Image`2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) in C:\Users\dan\EMGU\Emgu.CV\Image.cs:line 265
    at Emgu.CV.Image`2..ctor(Int32 width, Int32 height) in C:\Users\dan\EMGU\Emgu.CV\Image.cs:line 215
    at Emotive.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\dan\AppData\Local\Temporary Projects\Emotive\Form1.cs:line 23
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at Emotive.Program.Main() in C:\Users\dan\AppData\Local\Temporary Projects\Emotive\Program.cs:line 18
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException: System.IO.DirectoryNotFoundException
    Message=Could not find a part of the path 'C:\Users\dan\AppData\Local\Temporary Projects\Emotive\bin\Debug\x86'.
    Source=mscorlib
    StackTrace:
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.SetCurrentDirectory(String path)
    at System.Environment.set_CurrentDirectory(String value)
    at Emgu.CV.CvInvoke.LoadUnmanagedModules(String loadDirectory, String[] unmanagedModules) in C:\Users\dan\EMGU\Emgu.CV\PInvoke\CvInvoke.cs:line 64
    at Emgu.CV.CvInvoke..cctor() in C:\Users\dan\EMGU\Emgu.CV\PInvoke\CvInvoke.cs:line 100
    InnerException:

     
  • Canming
    Canming
    2014-04-19

    The compiled cvextern.dll file will be either under the bin\x86 or bin\x64 folder if you compile from source.

    Closing the bug now.

     
  • Canming
    Canming
    2014-04-19

    • status: open --> closed
    • Group: --> v1.0_(example)