This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267589 - IDE uses cygwin's windres.exe if "Code Assistance|Use Build Analyzer" checkbox is switched on
Summary: IDE uses cygwin's windres.exe if "Code Assistance|Use Build Analyzer" checkbo...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Other
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 21:35 UTC by soldatov
Modified: 2016-08-17 01:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-08-15 21:35:36 UTC
By default In NetBeans trunk I can't build Qt project. I see such error:
===============================================================
......
windres -i ../src/QHudsonResults.rc -o release/QHudsonResults_res.o --include-dir=./../src -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release/qhudsonresults.exe release/main.o release/HtmlItemDelegate.o release/MainWindow.o release/TestItem.o release/qrc_resources.o release/moc_MainWindow.o  -lmingw32 -LD:/Qt/5.5.1-mingw/5.5/mingw492_32/lib -lqtmain -lshell32 -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core release/QHudsonResults_res.o 
release/QHudsonResults_res.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
make.exe[1]: *** [release/qhudsonresults.exe] Error 1
make.exe[1]: Leaving directory `/e/sources/git/QHudsonResults/build'
make.exe": *** [release] Error 2
=======================================================================

Makefile:
=======================================================================
CC=g++
CPPFLAGS=-g

test: test.cpp
	$(CC) $(CPPFLAGS) -o test test.cpp
	@echo "${PATH}"

clean:
	rm -f test test.exe test.o test.debug

test.cpp:
=======================================================================
int main() {
  return 0;
}

Scenario:
- Create "C/C++ Project with Existing Sources" project in automatic mode
- Clean and Build project
==> build log:
cd 'E:\sources\test3'
C:\MinGW\msys\1.0\bin\make.exe -f Makefile
g++ -g -o test test.cpp
/e/sources/test3/nbproject/private/tools/localhost/MinGW:/usr/bin:/d/cygwin64/bin:/c/ProgramData/Oracle/Java/javapath:/...

- Switch off "Code Assistance|Use Build Analyzer" checkbox
==> build log:
C:\MinGW\msys\1.0\bin\make.exe -f Makefile
g++ -g -o test test.cpp
/d/Qt/5.5.1-mingw/Tools/mingw492_32/bin:/usr/bin:/d/cygwin64/bin:/c/ProgramData/Oracle/Java/javapath:

In first case IDE uses 'windres.exe' from d:/cygwin64/bin, in second case IDE uses 'windres' from /d/Qt/5.5.1-mingw/Tools/mingw492_32/bin
Comment 1 Alexander Simon 2016-08-16 16:36:56 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/1708d93e522a
Comment 2 Quality Engineering 2016-08-17 01:50:26 UTC
Integrated into 'main-silver', will be available in build *201608170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1708d93e522a
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #267589 IDE uses cygwin's windres.exe if "Code Assistance|Use Build Analyzer" checkbox is switched on