NetBeans 7.2 MinGW installing for OpenCV
- by Gligorijevic
i have installed minGW on my PC according to http://netbeans.org/community/releases/72/cpp-setup-instructions.html, and i have "restored defaults" using NetBeans 7.2 who has found all necessary files.
But when I made test sample C++ app i got following error:
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -ladvapi32
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lshell32
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -luser32
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lkernel32
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/welcome_1.exe] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Can anyone give me a hand with installing openCV and minGW for NetBeans?
generated Makefiles file goes like this:
> # CMAKE generated file: DO NOT EDIT!
> # Generated by "MinGW Makefiles" Generator, CMake Version 2.8
>
> # Default target executed when no arguments are given to make. default_target: all .PHONY : default_target
>
> #=============================================================================
> # Special targets provided by cmake.
>
> # Disable implicit rules so canonical targets will work. .SUFFIXES:
>
> # Remove some rules from gmake that .SUFFIXES does not remove. SUFFIXES =
>
> .SUFFIXES: .hpux_make_needs_suffix_list
>
> # Suppress display of executed commands. $(VERBOSE).SILENT:
>
> # A target that is always out of date. cmake_force: .PHONY : cmake_force
>
> #=============================================================================
> # Set environment variables for the build.
>
> SHELL = cmd.exe
>
> # The CMake executable. CMAKE_COMMAND = "C:\Program Files (x86)\cmake-2.8.9-win32-x86\bin\cmake.exe"
>
> # The command to remove a file. RM = "C:\Program Files (x86)\cmake-2.8.9-win32-x86\bin\cmake.exe" -E remove -f
>
> # Escaping for special characters. EQUALS = =
>
> # The program to use to edit the cache. CMAKE_EDIT_COMMAND = "C:\Program Files (x86)\cmake-2.8.9-win32-x86\bin\cmake-gui.exe"
>
> # The top-level source directory on which CMake was run. CMAKE_SOURCE_DIR = C:\msys\1.0\src\opencv
>
> # The top-level build directory on which CMake was run. CMAKE_BINARY_DIR = C:\msys\1.0\src\opencv\build\mingw
>
> #=============================================================================
> # Targets provided globally by CMake.
>
> # Special rule for the target edit_cache edit_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan
> "Running CMake cache editor..." "C:\Program Files
> (x86)\cmake-2.8.9-win32-x86\bin\cmake-gui.exe" -H$(CMAKE_SOURCE_DIR)
> -B$(CMAKE_BINARY_DIR) .PHONY : edit_cache
>
> # Special rule for the target edit_cache edit_cache/fast: edit_cache .PHONY : edit_cache/fast