Errors with .qrc file
-
Alright, so I'm very new to using .qrc to compile all my files, and I'm running into some errors. Here is the log from attempting to build and run my project with the files included. They are not referenced or included anywhere in my code, I'm just trying to see if I can include them when I compile.
@11:29:26: Running build steps for project WordSwipe...
11:29:26: Configuration unchanged, skipping qmake step.
11:29:27: Starting: "/usr/bin/make" -w
make: Entering directory/Users/mwl36/Dropbox/Word Swipe/WordSwipe-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug' /Users/mwl36/QtSDK/Desktop/Qt/474/gcc/bin/rcc -name assets ../Source/assets.qrc -o qrc_assets.cpp g++ -c -pipe -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -I../../../QtSDK/Desktop/Qt/474/gcc/mkspecs/macx-g++ -I../Source -I/opt/multitouch/include -I../Source -I. -o qrc_assets.o qrc_assets.cpp In file included from qrc_assets.cpp:10: /System/Library/Frameworks/QtCore.framework/Headers/qglobal.h:320:6: warning: #warning "This version of Mac OS X is unsupported" g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o WordSwipe.app/Contents/MacOS/WordSwipe Main.o tilewidget.o activewidget.o scorewidget.o tilehome.o qrc_assets.o -L/opt/multitouch/lib -framework Nimble -framework Radiant -framework Luminous -framework Screenplay -framework MultiTouch -framework MultiWidgets -framework Valuable -framework Fluffy -framework Poetic -lSDL -lSDLmain -framework Cocoa Undefined symbols for architecture x86_64: "qRegisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)", referenced from: qInitResources_assets() in qrc_assets.o "qUnregisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)", referenced from: qCleanupResources_assets() in qrc_assets.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [WordSwipe.app/Contents/MacOS/WordSwipe] Error 1 make: Leaving directory
/Users/mwl36/Dropbox/Word Swipe/WordSwipe-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug'
11:29:33: The process "/usr/bin/make" exited with code 2.
Error while building project WordSwipe (target: Desktop)
When executing build step 'Make'@Here is how things are set up. Within my 'source' directory I have a folder named assets, as shown below.
!http://i985.photobucket.com/albums/ae333/othshow/ScreenShot2012-03-22at113623AM.png!
Within the .qrc file, here is how it appears.
!http://i985.photobucket.com/albums/ae333/othshow/ScreenShot2012-03-22at113657AM.png!
Here is my .pro file.
@SOURCES += Main.cpp
tilewidget.cpp
activewidget.cpp
scorewidget.cpp
tilehome.cppCONFIG -= qt
TARGET = WordSwipe
INCLUDEPATH += /opt/multitouch/include
QMAKE_LIBDIR += /opt/multitouch/libmacx {
LIBS += -framework Nimble
LIBS += -framework Radiant -framework Luminous -framework Screenplay
LIBS += -framework MultiTouch -framework MultiWidgets
LIBS += -framework Valuable -framework Fluffy -framework Poetic
LIBS += -lSDL -lSDLmain
LIBS += -framework Cocoa
}HEADERS += tilewidget.hpp
activewidget.hpp
scorewidget.hpp
tilehome.hppRESOURCES +=
assets.qrc@There have been no additions to my code to implement this, beyond the .pro file modification. Does any one know where I could go to start troubleshooting this? I've never used this before, so I'm not even sure where to look for solutions.
-
Hi,
Is this a Qt appplication or not?
@
CONFIG -= qt
@