Netbeans incorrect build command order, build fails

  • From: "DaHoC" < >
  • To:
  • Subject: Netbeans incorrect build command order, build fails
  • Date: Tue, 04 Dec 2012 16:06:48 -0500

Hi,
I am using Netbeans in Linux for a C++ openCV project, and I ran into the 
problem that Netbeans build is failing due to incorrect build command order 
specified by Netbeans.

Netbeans build command basically looks like this:

Code:
g++ `pkg-config opencv --cflags --libs` -o test_1 test_1.cpp


This build fails with undefined references, the correct build command is like 
this:

Code:
g++ -o test_1 test_1.cpp `pkg-config opencv --cflags --libs` 


See also 
http://stackoverflow.com/questions/7816607/opencv-2-3-compiling-issue-undefined-refence-ubuntu-11-10
 for error and short explanation.

So how can I change this in Netbeans setting so that I can build my openCV 
project? Is this even possible?

Best regards,

Jan






Netbeans incorrect build command order, build fails

DaHoC 12/04/2012

Netbeans incorrect build command order, build fails

tgil54 12/07/2012

Netbeans incorrect build command order, build fails

DaHoC 12/07/2012

Netbeans incorrect build command order, build fails

soldatov 12/07/2012

Netbeans incorrect build command order, build fails

DaHoC 12/07/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close