My subdirs project is split into one folder containing a library project, and another folder containing an executable project. For some reason, when I build my projects the library file has a 0 appended to its file name, eg: instead of libMyLib.a and MyLib.dll being created, libMyLib0.a and MyLib0.dll are created instead. This causes my other project to cause an error in the build because it is searching for libMyLib.a.
Does anyone know why this is happening? I've cleaned out the folder the binaries are created in, and have remade the Makefiles with qmake. I checked my .pro files to make sure I didn't do anything silly like accidentally changing the TARGET variable.
My project files:
Library:
TEMPLATE = lib
TARGET = AltCore
VERSION = 0.0.1
QT += core \
opengl \
gui
HEADERS += src/headers/AltGlobals.h \
src/headers/AltObject.h \
src/headers/AltPoint.h \
src/headers/AltColor.h \
src/headers/AltTexture.h \
src/headers/AltAnimation.h \
src/headers/AltSpriteSheet.h \
src/headers/AltSprite.h \
src/headers/AltScreen.h
SOURCES += src/sources/AltPoint.cpp \
src/sources/AltColor.cpp \
src/sources/AltTexture.cpp \
src/sources/AltAnimation.cpp \
src/sources/AltSpriteSheet.cpp \
src/sources/AltSprite.cpp \
src/sources/AltScreen.cpp
FORMS +=
RESOURCES +=
UI_DIR = "ui"
OBJECTS_DIR = "../build/"
MOC_DIR = "../build/"
debug:DESTDIR = "../bin/debug/"
release:DESTDIR = "../bin/release/"
DEPENDPATH += "src/headers"
INCLUDEPATH += "src/headers"
CONFIG += console
TEMPLATE = lib
TARGET = AltCore
VERSION = 0.0.1
QT += core \
opengl \
gui
HEADERS += src/headers/AltGlobals.h \
src/headers/AltObject.h \
src/headers/AltPoint.h \
src/headers/AltColor.h \
src/headers/AltTexture.h \
src/headers/AltAnimation.h \
src/headers/AltSpriteSheet.h \
src/headers/AltSprite.h \
src/headers/AltScreen.h
SOURCES += src/sources/AltPoint.cpp \
src/sources/AltColor.cpp \
src/sources/AltTexture.cpp \
src/sources/AltAnimation.cpp \
src/sources/AltSpriteSheet.cpp \
src/sources/AltSprite.cpp \
src/sources/AltScreen.cpp
FORMS +=
RESOURCES +=
UI_DIR = "ui"
OBJECTS_DIR = "../build/"
MOC_DIR = "../build/"
debug:DESTDIR = "../bin/debug/"
release:DESTDIR = "../bin/release/"
DEPENDPATH += "src/headers"
INCLUDEPATH += "src/headers"
CONFIG += console
To copy to clipboard, switch view to plain text mode
Executable:
TEMPLATE = app
TARGET = AltTest
QT += core \
opengl \
gui
DEPENDPATH += "../AltCore/src/headers/"
INCLUDEPATH += "../AltCore/src/headers/"
debug:LIBS += "../bin/debug/libAltCore.a"
release:LIBS += "../bin/release/libAltCore.a"
debug:DESTDIR = "../bin/debug/"
release:DESTDIR = "../bin/release/"
OBJECTS_DIR = "../build/"
MOC_DIR = "../build/"
CONFIG += console
# Input
SOURCES += Main.cpp
TEMPLATE = app
TARGET = AltTest
QT += core \
opengl \
gui
DEPENDPATH += "../AltCore/src/headers/"
INCLUDEPATH += "../AltCore/src/headers/"
debug:LIBS += "../bin/debug/libAltCore.a"
release:LIBS += "../bin/release/libAltCore.a"
debug:DESTDIR = "../bin/debug/"
release:DESTDIR = "../bin/release/"
OBJECTS_DIR = "../build/"
MOC_DIR = "../build/"
CONFIG += console
# Input
SOURCES += Main.cpp
To copy to clipboard, switch view to plain text mode
Subdirs project:
TEMPLATE = subdirs
TARGET = Alt
QT += core gui opengl
SOURCES +=
FORMS +=
RESOURCES +=
FORMS +=
SUBDIRS = AltCore AltTest
CONFIG += ordered console
TEMPLATE = subdirs
TARGET = Alt
QT += core gui opengl
SOURCES +=
FORMS +=
RESOURCES +=
FORMS +=
SUBDIRS = AltCore AltTest
CONFIG += ordered console
To copy to clipboard, switch view to plain text mode
Bookmarks