Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Errors with .qrc file
Forum Updated to NodeBB v4.3 + New Features

Errors with .qrc file

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brynn
    wrote on last edited by
    #1

    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.cpp

    CONFIG -= qt

    TARGET = WordSwipe

    INCLUDEPATH += /opt/multitouch/include
    QMAKE_LIBDIR += /opt/multitouch/lib

    macx {
    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.hpp

    RESOURCES +=
    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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Hi,

      Is this a Qt appplication or not?
      @
      CONFIG -= qt
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved