OpenCV Library - problems with dll files

This is a discussion on OpenCV Library - problems with dll files within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I was trying to read jpeg images in VC++ using Intel OpenCV Library. I am able to build the ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    23

    OpenCV Library - problems with dll files

    Hi,
    I was trying to read jpeg images in VC++ using Intel OpenCV Library. I am able to build the application utilizing the library files of Open CV. However, when I run the application it gives me "xxxx.dll" missing. I know all the required dll files are there in a "bin" folder. Can anyone please tell me how to change the project settings (In little detail if possible) to give the location of the dll files.

    An alternative for reading jpeg files would be very helpful. But I still do need to get the intel Open Cv library running. So if anyone has any experience using this libray it would be very helpful

    Thanks in Advance
    Nipun

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Make sure a copy of the DLL is in the same directory as the executable you are running.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    23
    thanks for the reply, but is there a way to set the path so that my project can locate the dlls during runtime

    nipun

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Assumably this search order also applies to statically linked DLLs.
    Quote Originally Posted by MSDN_LoadLibrary
    DLL Search Order
    1. The directory from which the application loaded.
    2. The current directory.
    3. The system directory. Use the GetSystemDirectory function to get the path of this directory.
    4. The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched. Windows Me/98/95: This directory does not exist.
    5. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
    6. The directories that are listed in the PATH environment variable.
    So you could try adding the directory containing your DLLs to the PATH variable. To alter the PATH variable goto My Computer->Right Click->Properties->Advanced->Environment Variables (assuming XP).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 07-06-2006, 02:53 AM
  2. about Developing dll files
    By sawer in forum C++ Programming
    Replies: 1
    Last Post: 04-19-2006, 01:40 PM
  3. dll files and library files
    By Boomba in forum C++ Programming
    Replies: 1
    Last Post: 06-11-2004, 10:09 AM
  4. Replies: 15
    Last Post: 04-19-2002, 02:23 PM
  5. Problems with resource files
    By Unregistered in forum C++ Programming
    Replies: 18
    Last Post: 08-31-2001, 08:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21