Hi Валера,

Your project (QtApplication_2) worked very well, so I was wondering why
yours works and mine not.

So I thought, I did some testing to check some suspicions and they
confirmed.
I created a New Project > C/C++ > C/C++ Qt Application, a QtApplication_1,
I just added newfile.rc and "RC_FILE += ../newfile.rc" and everything
worked good as you had said.

So, as far as I know, the problem is that I was trying to change a project
from New Project  > SAMPLE > C/C++ > HelloQtWorld and not a New Project >
C/C++ > C/C++ Qt Application.
Conclusion: A sample project can not be changed as a project for
development. Right?

Now it has suggested the question, how to add multiple resources with this
line "RC_FILE += ../newfile.rc"?


Em sex, 31 de ago de 2018 às 02:49, Валера Солдатов <v.f.solda...@gmail.com>
escreveu:

> I attached my project.
> My build log:
> cd 'C:\Users\sova\Documents\NetBeansProjects\QtApplication_2'
> D:\msys64\usr\bin\make.exe -f Makefile CONF=Debug
> QMAKE=/D/msys64/mingw64/bin/qmake.exe
> "/D/msys64/usr/bin/make.exe" -f nbproject/Makefile-Debug.mk
> QMAKE=/D/msys64/mingw64/bin/qmake.exe SUBPROJECTS= .build-conf
> make[1]: Entering directory
> '/c/Users/sova/Documents/NetBeansProjects/QtApplication_2'
> /D/msys64/mingw64/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk
> nbproject/qt-Debug.pro
> Info: creating stash file
> C:\Users\sova\Documents\NetBeansProjects\QtApplication_2\.qmake.stash
> WARNING: Failure to find: build/Debug/MinGW-Windows/newfile_res.o
> mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
> "/D/msys64/usr/bin/make.exe" -f nbproject/qt-Debug.mk
> dist/Debug/MinGW-Windows/QtApplication_2.exe
> make[2]: Entering directory
> '/c/Users/sova/Documents/NetBeansProjects/QtApplication_2'
> windres -i newfile.rc -o build/Debug/MinGW-Windows/newfile_res.o
> --include-dir=. -DUNICODE -D_UNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_NEEDS_QMAIN
> g++ -c -fno-keep-inline-dllexport -g -Wall -W -Wextra -fexceptions
> -mthreads -DUNICODE -D_UNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_NEEDS_QMAIN -Inbproject -I. -isystem
> D:/msys64/mingw64/include/QtWidgets -isystem
> D:/msys64/mingw64/include/QtGui -isystem D:/msys64/mingw64/include/QtCore
> -I. -isystem D:/msys64/mingw64/include
> -ID:/msys64/mingw64/share/qt5/mkspecs/win32-g++  -o
> build/Debug/MinGW-Windows/main.o main.cpp
> g++ -Wl,-subsystem,windows -mthreads -o
> dist/Debug/MinGW-Windows/QtApplication_2.exe
> build/Debug/MinGW-Windows/newfile_res.o build/Debug/MinGW-Windows/main.o
> -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LD:/msys64/mingw64/lib
> D:/msys64/mingw64/lib/libqtmaind.a -lshell32
> D:/msys64/mingw64/lib/libQt5Widgetsd.dll.a
> D:/msys64/mingw64/lib/libQt5Guid.dll.a
> D:/msys64/mingw64/lib/libQt5Cored.dll.a
> make[2]: Leaving directory
> '/c/Users/sova/Documents/NetBeansProjects/QtApplication_2'
> make[1]: Leaving directory
> '/c/Users/sova/Documents/NetBeansProjects/QtApplication_2'
>
> BUILD SUCCESSFUL (total time: 2s)
>

Reply via email to