overriding recipe for target 'debug/*.o' [Makefile.Debug:143: debug/*.o] Error 1
-
Hi and welcome to devnet,
What is CS106B ? The Standford course ?
Can you share the content of the
.pro
file ? -
i have the same problem. Have you already solved it?
here is the .pro info:############################################################################# # Makefile for building: NameHash # Generated by qmake (3.1) (Qt 6.8.0) # Project: ..\..\NameHash.pro # Template: app ############################################################################# MAKEFILE = Makefile.Debug EQ = = ####### Compiler, tools and options CC = gcc CXX = g++ DEFINES = -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DSPL_CONSOLE_X=999999 -DSPL_CONSOLE_Y=999999 -DSPL_CONSOLE_WIDTH=750 -DSPL_CONSOLE_HEIGHT=500 -DSPL_CONSOLE_ECHO -DSPL_CONSOLE_EXIT_ON_CLOSE -DSPL_VERIFY_JAVA_BACKEND_VERSION -DSPL_PROJECT_VERSION=20160812 -DPQUEUE_ALLOW_HEAP_ACCESS -DPQUEUE_PRINT_IN_HEAP_ORDER -DSPL_CONSOLE_PRINT_EXCEPTIONS -DQT_QML_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN CFLAGS = -fno-keep-inline-dllexport -g -Wall -Wextra -Wextra $(DEFINES) CXXFLAGS = -fno-keep-inline-dllexport -std=c++11 -Wall -Wextra -Wreturn-type -Werror=return-type -Wunreachable-code -Wno-missing-field-initializers -Wno-sign-compare -Wno-write-strings -O0 -g3 -ggdb3 -fno-inline -g -Wall -Wextra -Wextra -fexceptions -mthreads $(DEFINES) INCPATH = -I../../lib/StanfordCPPLib -I../../lib/StanfordCPPLib/private -I../../lib/StanfordCPPLib/stacktrace -I../../src -I../../../HW0_NameHash -IC:/Qt/6.8.0/mingw_64/include -IC:/Qt/6.8.0/mingw_64/include/QtGui -IC:/Qt/6.8.0/mingw_64/include/QtCore -Idebug -I/include -IC:/Qt/6.8.0/mingw_64/mkspecs/win32-g++ LINKER = g++ LFLAGS = -Wl,--stack,268435456 -Wl,-subsystem,windows -mthreads LIBS = -lDbghelp -lbfd -limagehlp C:\Qt\6.8.0\mingw_64\lib\libQt6Gui.a C:\Qt\6.8.0\mingw_64\lib\libQt6Core.a -lmingw32 C:\Qt\6.8.0\mingw_64\lib\libQt6EntryPoint.a -lshell32 QMAKE = C:\Qt\6.8.0\mingw_64\bin\qmake.exe DEL_FILE = del CHK_DIR_EXISTS= if not exist MKDIR = mkdir COPY = copy /y COPY_FILE = copy /y COPY_DIR = xcopy /s /q /y /i INSTALL_FILE = copy /y INSTALL_PROGRAM = copy /y INSTALL_DIR = xcopy /s /q /y /i QINSTALL = C:\Qt\6.8.0\mingw_64\bin\qmake.exe -install qinstall QINSTALL_PROGRAM = C:\Qt\6.8.0\mingw_64\bin\qmake.exe -install qinstall -exe DEL_FILE = del SYMLINK = $(QMAKE) -install ln -f -s DEL_DIR = rmdir MOVE = move IDC = idc IDL = midl ZIP = zip -r -9 DEF_FILE = RES_FILE = SED = $(QMAKE) -install sed MOVE = move ####### Output directory OBJECTS_DIR = debug ####### Files SOURCES = C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp OBJECTS = debug/*.o \ debug/*.o \ debug/*.o DIST = C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.h \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/private/*.h \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.h C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp \ C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp QMAKE_TARGET = NameHash DESTDIR = debug\ #avoid trailing-slash linebreak TARGET = NameHash.exe DESTDIR_TARGET = debug\NameHash.exe ####### Build rules first: all all: Makefile.Debug debug/NameHash.exe debug/NameHash.exe: C:/Qt/6.8.0/mingw_64/lib/libQt6Gui.a C:/Qt/6.8.0/mingw_64/lib/libQt6Core.a C:/Qt/6.8.0/mingw_64/lib/libQt6EntryPoint.a $(OBJECTS) copyResources $(LINKER) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS) qmake: FORCE @$(QMAKE) -o Makefile.Debug ..\..\NameHash.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" qmake_all: FORCE dist: $(ZIP) NameHash.zip $(SOURCES) $(DIST) ..\..\NameHash.pro C:\Qt\6.8.0\mingw_64\mkspecs\features\spec_pre.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\device_config.prf C:\Qt\6.8.0\mingw_64\mkspecs\common\sanitize.conf C:\Qt\6.8.0\mingw_64\mkspecs\common\gcc-base.conf C:\Qt\6.8.0\mingw_64\mkspecs\common\g++-base.conf C:\Qt\6.8.0\mingw_64\mkspecs\features\win32\windows_vulkan_sdk.prf C:\Qt\6.8.0\mingw_64\mkspecs\common\windows-vulkan.conf C:\Qt\6.8.0\mingw_64\mkspecs\common\g++-win32.conf C:\Qt\6.8.0\mingw_64\mkspecs\common\windows-desktop.conf C:\Qt\6.8.0\mingw_64\mkspecs\qconfig.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_ext_freetype.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_ext_libjpeg.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_ext_libpng.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_charts.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_charts_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_chartsqml.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_chartsqml_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_concurrent.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_concurrent_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_core.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_core_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_dbus.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_dbus_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_designer.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_designer_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_designercomponents_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_devicediscovery_support_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_entrypoint_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_example_icons_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_examples_asset_downloader_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_fb_support_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_freetype_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_gui.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_gui_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_harfbuzz_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_help.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_help_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_jpeg_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsanimation.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsanimation_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsfolderlistmodel.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsfolderlistmodel_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsplatform.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsplatform_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsqmlmodels.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labsqmlmodels_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labssettings.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labssettings_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labssharedimage.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labssharedimage_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labswavefrontmesh.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_labswavefrontmesh_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_linguist.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_multimedia.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_multimedia_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_multimediaquick_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_multimediawidgets.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_multimediawidgets_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_network.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_network_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_opengl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_opengl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_openglwidgets.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_openglwidgets_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_packetprotocol_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_png_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_printsupport.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_printsupport_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qdoccatch_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qdoccatchconversions_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qdoccatchgenerators_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qml.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qml_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlassetdownloader.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlassetdownloader_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlcompiler.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlcompiler_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlcore.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlcore_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmldebug_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmldom_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlintegration.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlintegration_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmllocalstorage.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmllocalstorage_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlls_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlmeta.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlmeta_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlmodels.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlmodels_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlnetwork.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlnetwork_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmltest.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmltest_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmltoolingsettings_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmltyperegistrar_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlworkerscript.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlworkerscript_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlxmllistmodel.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_qmlxmllistmodel_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quick.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quick3dspatialaudio_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quick_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2basic.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2basic_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2basicstyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2basicstyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fluentwinui3styleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fluentwinui3styleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fusion.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fusion_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fusionstyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2fusionstyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2imagine.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2imagine_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2imaginestyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2imaginestyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2impl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2impl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2material.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2material_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2materialstyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2materialstyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2universal.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2universal_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2universalstyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2universalstyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2windowsstyleimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrols2windowsstyleimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickcontrolstestutilsprivate_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2quickimpl.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2quickimpl_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2utils.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickdialogs2utils_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickeffects_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quicklayouts.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quicklayouts_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickparticles_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickshapes_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quicktemplates2.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quicktemplates2_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quicktestutilsprivate_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickvectorimage.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickvectorimage_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickvectorimagegenerator_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickwidgets.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_quickwidgets_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_spatialaudio.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_spatialaudio_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_sql.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_sql_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_svg.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_svg_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_svgwidgets.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_svgwidgets_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_testlib.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_testlib_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_tools_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_uiplugin.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_uitools.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_uitools_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_widgets.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_widgets_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_xml.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_xml_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\modules\qt_lib_zlib_private.pri C:\Qt\6.8.0\mingw_64\mkspecs\features\qt_functions.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\qt_config.prf C:\Qt\6.8.0\mingw_64\mkspecs\win32-g++\qmake.conf C:\Qt\6.8.0\mingw_64\mkspecs\features\spec_post.prf .qmake.stash C:\Qt\6.8.0\mingw_64\mkspecs\features\exclusive_builds.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\toolchain.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\default_pre.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\win32\default_pre.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\resolve_config.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\exclusive_builds_post.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\default_post.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\build_pass.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\qml_debug.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\precompile_header.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\warn_on.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\permissions.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\qt.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\resources_functions.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\resources.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\moc.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\win32\opengl.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\qmake_use.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\file_copies.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\win32\windows.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\testcase_targets.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\exceptions.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\yacc.prf C:\Qt\6.8.0\mingw_64\mkspecs\features\lex.prf ..\..\NameHash.pro C:\Qt\6.8.0\mingw_64\lib\Qt6Gui.prl C:\Qt\6.8.0\mingw_64\lib\Qt6Core.prl C:\Qt\6.8.0\mingw_64\lib\Qt6EntryPoint.prl C:\Qt\6.8.0\mingw_64\mkspecs\features\data\dummy.cpp C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.h C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/private/*.h C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.h C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp clean: compiler_clean -$(DEL_FILE) debug\*.o debug\*.o debug\*.o distclean: clean -$(DEL_FILE) .qmake.stash -$(DEL_FILE) $(DESTDIR_TARGET) -$(DEL_FILE) Makefile.Debug copyResources: xcopy "C:\Users\MR\Desktop\CS106B\HW0_NameHash\res" "C:\Users\MR\Desktop\CS106B\HW0_NameHash\build\Desktop_Qt_6_8_0_MinGW_64_bit-Debug" /e /y xcopy "C:\Users\MR\Desktop\CS106B\HW0_NameHash\lib\*.jar" "C:\Users\MR\Desktop\CS106B\HW0_NameHash\build\Desktop_Qt_6_8_0_MinGW_64_bit-Debug" /e /y xcopy "C:\Users\MR\Desktop\CS106B\HW0_NameHash\lib\addr2line.exe" "C:\Users\MR\Desktop\CS106B\HW0_NameHash\build\Desktop_Qt_6_8_0_MinGW_64_bit-Debug" /e /y first: copydata: mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all check: first benchmark: first compiler_no_pch_compiler_make_all: compiler_no_pch_compiler_clean: compiler_rcc_make_all: compiler_rcc_clean: compiler_moc_predefs_make_all: debug/moc_predefs.h compiler_moc_predefs_clean: -$(DEL_FILE) debug\moc_predefs.h debug/moc_predefs.h: C:/Qt/6.8.0/mingw_64/mkspecs/features/data/dummy.cpp g++ -fno-keep-inline-dllexport -std=c++11 -Wall -Wextra -Wreturn-type -Werror=return-type -Wunreachable-code -Wno-missing-field-initializers -Wno-sign-compare -Wno-write-strings -O0 -g3 -ggdb3 -fno-inline -g -Wall -Wextra -Wextra -dM -E -o debug\moc_predefs.h C:\Qt\6.8.0\mingw_64\mkspecs\features\data\dummy.cpp compiler_moc_header_make_all: compiler_moc_header_clean: compiler_moc_objc_header_make_all: compiler_moc_objc_header_clean: compiler_moc_source_make_all: compiler_moc_source_clean: compiler_yacc_decl_make_all: compiler_yacc_decl_clean: compiler_yacc_impl_make_all: compiler_yacc_impl_clean: compiler_lex_make_all: compiler_lex_clean: compiler_clean: compiler_moc_predefs_clean ####### Compile debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp ####### Install install: FORCE uninstall: FORCE FORCE: .SUFFIXES:
error:
-
debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace/*.cpp debug/*.o: C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\*.o C:/Users/MR/Desktop/CS106B/HW0_NameHash/src/*.cpp
Did they supply the
.pro
with these kind of lines in it or did you add these yourself? Although I am not an expert on.pro
/Makefile
s, per the warning messages you are giving 3 separate rules/recipes for building somedebug/*.o
file(s).make
cannot/should not be able to handle to that, and in fact per the messages I think it throws away the first two rules and only keeps the last one. Plus yourOBJECTS
variable adds the samedebug/*.o
files three times. Why?If your intention is to have different rules for building
.o
files from.cpp
files inC:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib
versus same forcpp
files inC:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/stacktrace
I think you need to specify that explicitly in some different way.For example, maybe (if it works) you need to use
C:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/debug/*.o
in both places where you currently havedebug/*.o
for that specificC:/Users/MR/Desktop/CS106B/HW0_NameHash/lib/StanfordCPPLib/*.cpp
directory files, and similarly for the other two directories?Excuse me if this does come from the Stanford course and is supposed to work somehow and I am mistaken, but as it stands the errors do not surprise me.
-
@Adam-Cheng that's not a
.pro
file, that's a Makefile. These are usually generated out of a.pro
file on Unix like systems. -
@SGaist @JonB Sorry for providing the wrong file, What I provided before was the compilation error information and the corresponding location of the makefile。
I didn't make any changes to the file, just downloaded it and tried to compile it.
Here is the .pro info: ( a bit long)# Stanford CS 106 B/X Qt Creator project file # # This file specifies the information about your project to Qt Creator. # You should not need to modify this file to complete your assignment. # If you need to add files or folders to your project, we recommend the following: # - close Qt Creator. # - delete your ".pro.user" file and "build_xxxxxxx" directory. # - place the new files/folders into your project directory. # - re-open and "Configure" your project again. # # @author Marty Stepp # (past authors/support by Reid Watson, Rasmus Rygaard, Jess Fisher, etc.) # @version 2016/08/12 # - fixed Windows release build problems # @version 2016/08/04 # - added flag for throwing errors on op >> parsing (default off) # @version 2016/07/22 # - added support for src/autograder/ directory # @version 2016/06/28 # - fixed bugs with 'copydata' on Windows systems # @version 2016/06/24 # - removed FONTSIZE setting; left to default and app configuration # - made output/ folder copy itself to subdir of build directory, if present # - improved code flow, structure, and comments # @version 2015/04/09 # - decreased Mac stack size to avoid sporatic crashes on Mac systems # @version 2014/11/29 # - added pthread library on Mac/Linux for running each test in its own thread # @version 2014/11/13 # - fixes related to generating stack traces # - support for putting testing files in a src/test/ folder (used in development) # @version 2014/11/05 # - improved/fixed flags for exception-handling # @version 2014/10/31 # - standard autograder-compatible version; should work with all assignments and graders. TEMPLATE = app # make sure we do not accidentally #include files placed in 'resources' CONFIG += no_include_pwd ############################################################################### # BEGIN SECTION FOR SPECIFYING SOURCE/LIBRARY/RESOURCE FILES OF PROJECT # ############################################################################### # checks to ensure that the Stanford C++ library and its associated # Java back-end are both present in this project !exists($$PWD/lib/StanfordCPPLib/private/version.h) { message(*** Stanford C++ library not found!) message(*** This project cannot run without the folder lib/StanfordCPPLib/.) message(*** Place that folder into your project and try again.) error(Exiting.) } !exists($$PWD/lib/spl.jar) { message(*** Stanford Java back-end library 'spl.jar' not found!) message(*** This project cannot run without spl.jar present.) message(*** Place that file into your lib/ folder and try again.) error(Exiting.) } win32 { !exists($$PWD/lib/addr2line.exe) { message(*** Stanford C++ library support file 'addr2line.exe' not found!) message(*** Our library needs this file present to produce stack traces.) message(*** Place that file into your lib/ folder and try again.) error(Exiting.) } } # include various source .cpp files and header .h files in the build process # (student's source code can be put into project root, or src/ subfolder) SOURCES += $$PWD/lib/StanfordCPPLib/*.cpp SOURCES += $$PWD/lib/StanfordCPPLib/stacktrace/*.cpp exists($$PWD/src/*.cpp) { SOURCES += $$PWD/src/*.cpp } exists($$PWD/src/autograder/*.cpp) { SOURCES += $$PWD/src/autograder/*.cpp } exists($$PWD/src/test/*.cpp) { SOURCES += $$PWD/src/test/*.cpp } exists($$PWD/*.cpp) { SOURCES += $$PWD/*.cpp } HEADERS += $$PWD/lib/StanfordCPPLib/*.h HEADERS += $$PWD/lib/StanfordCPPLib/private/*.h HEADERS += $$PWD/lib/StanfordCPPLib/stacktrace/*.h exists($$PWD/src/*.h) { HEADERS += $$PWD/src/*.h } exists($$PWD/src/autograder/*.h) { HEADERS += $$PWD/src/autograder/*.h } exists($$PWD/src/test/*.h) { HEADERS += $$PWD/src/test/*.h } exists($$PWD/*.h) { HEADERS += $$PWD/*.h } # directories examined by Qt Creator when student writes an #include statement INCLUDEPATH += $$PWD/lib/StanfordCPPLib/ INCLUDEPATH += $$PWD/lib/StanfordCPPLib/private/ INCLUDEPATH += $$PWD/lib/StanfordCPPLib/stacktrace/ INCLUDEPATH += $$PWD/src/ INCLUDEPATH += $$PWD/ exists($$PWD/src/autograder/*.h) { INCLUDEPATH += $$PWD/src/autograder/ } exists($$PWD/src/test/*.h) { INCLUDEPATH += $$PWD/src/test/ } # directories listed as "Other files" in left Project pane of Qt Creator OTHER_FILES += $$files(res/*) exists($$PWD/output/*.txt) { OTHER_FILES += $$files(output/*) } exists($$PWD/*.txt) { OTHER_FILES += $$files($$PWD/*.txt) } ############################################################################### # END SECTION FOR SPECIFYING SOURCE/LIBRARY/RESOURCE FILES OF PROJECT # ############################################################################### ############################################################################### # BEGIN SECTION FOR SPECIFYING COMPILER/LINKER FLAGS AND LIBRARIES # ############################################################################### # set up flags for the C++ compiler # (In general, many warnings/errors are enabled to tighten compile-time checking. # A few overly pedantic/confusing errors are turned off for simplicity.) QMAKE_CXXFLAGS += -std=c++11 QMAKE_CXXFLAGS += -Wall QMAKE_CXXFLAGS += -Wextra QMAKE_CXXFLAGS += -Wreturn-type QMAKE_CXXFLAGS += -Werror=return-type QMAKE_CXXFLAGS += -Wunreachable-code QMAKE_CXXFLAGS += -Wno-missing-field-initializers QMAKE_CXXFLAGS += -Wno-sign-compare QMAKE_CXXFLAGS += -Wno-write-strings # additional flags for Windows win32 { # increase system stack size (helpful for recursive programs) QMAKE_LFLAGS += -Wl,--stack,268435456 LIBS += -lDbghelp LIBS += -lbfd LIBS += -limagehlp } # additional flags for Mac OS X macx { # increase system stack size (helpful for recursive programs) # (this has been disabled because it led to crashes on many systems) #QMAKE_LFLAGS += -Wl,-stack_size,0x2000000 # calling cache() reduces warnings on Mac OS X systems cache() QMAKE_MAC_SDK = macosx } # additional flags for Linux unix:!macx { QMAKE_CXXFLAGS += -rdynamic QMAKE_LFLAGS += -rdynamic QMAKE_LFLAGS += -Wl,--export-dynamic QMAKE_CXXFLAGS += -Wl,--export-dynamic } # additional flags for non-Windows systems (Mac and Linux) !win32 { #QMAKE_CXXFLAGS += -Wno-dangling-field QMAKE_CXXFLAGS += -Wno-unused-const-variable LIBS += -ldl } # set up configuration flags used internally by the Stanford C++ libraries # These flags are all optional but can simplify project configuration. # (setting x/y to 999999 centers the window) # (see platform.cpp/h for descriptions of some of these flags) DEFINES += SPL_CONSOLE_X=999999 DEFINES += SPL_CONSOLE_Y=999999 DEFINES += SPL_CONSOLE_WIDTH=750 DEFINES += SPL_CONSOLE_HEIGHT=500 DEFINES += SPL_CONSOLE_ECHO DEFINES += SPL_CONSOLE_EXIT_ON_CLOSE DEFINES += SPL_VERIFY_JAVA_BACKEND_VERSION DEFINES += SPL_PROJECT_VERSION=20160812 DEFINES += PQUEUE_ALLOW_HEAP_ACCESS DEFINES += PQUEUE_PRINT_IN_HEAP_ORDER # DEFINES += SPL_ERROR_ON_STREAM_EXTRACT # build-specific options (debug vs release) # make 'debug' target (default) use no optimization, generate debugger symbols, # and catch/print to console any uncaught exceptions thrown by the program CONFIG(debug, debug|release) { QMAKE_CXXFLAGS += -O0 QMAKE_CXXFLAGS += -g3 QMAKE_CXXFLAGS += -ggdb3 QMAKE_CXXFLAGS += -fno-inline DEFINES += SPL_CONSOLE_PRINT_EXCEPTIONS } # make 'release' target be statically linked so it is a stand-alone executable CONFIG(release, debug|release) { QMAKE_CXXFLAGS += -O2 macx { QMAKE_POST_LINK += 'macdeployqt $${OUT_PWD}/$${TARGET}.app' #QMAKE_POST_LINK += 'macdeployqt $${OUT_PWD}/$${TARGET}.app && rm $${OUT_PWD}/*.o && rm $${OUT_PWD}/Makefile' } unix:!macx { QMAKE_LFLAGS += -static QMAKE_LFLAGS += -static-libgcc QMAKE_LFLAGS += -static-libstdc++ #QMAKE_POST_LINK += 'rm $${OUT_PWD}/*.o && rm $${OUT_PWD}/Makefile' } win32 { TARGET_PATH = $${OUT_PWD}/release/$${TARGET}.exe TARGET_PATH ~= s,/,\\,g OUT_PATH = $${OUT_PWD}/ OUT_PATH ~= s,/,\\,g REMOVE_DIRS += '"'$${OUT_PWD}/release'"' REMOVE_DIRS += '"'$${OUT_PWD}/debug'"' REMOVE_FILES += '"'$${OUT_PWD}/Makefile'"' REMOVE_FILES += '"'$${OUT_PWD}/Makefile.Debug'"' REMOVE_FILES += '"'$${OUT_PWD}/Makefile.Release'"' #REMOVE_FILES += '"'$${OUT_PWD}/object_script.$${TARGET}.Release'"' REMOVE_FILES += '"'$${OUT_PWD}/object_script.$${TARGET}.Debug'"' REMOVE_DIRS ~= s,/,\\,g REMOVE_FILES ~= s,/,\\,g QMAKE_LFLAGS += -static QMAKE_LFLAGS += -static-libgcc QMAKE_LFLAGS += -static-libstdc++ QMAKE_POST_LINK += copy '"'$${TARGET_PATH}'"' '"'$${OUT_PATH}'"' #QMAKE_POST_LINK += copy '"'$${TARGET_PATH}'"' '"'$${OUT_PATH}'"' \ # && rmdir /s /q $${REMOVE_DIRS} \ # && del $${REMOVE_FILES} } } ############################################################################### # END SECTION FOR SPECIFYING COMPILER/LINKER FLAGS AND LIBRARIES # ############################################################################### ############################################################################### # BEGIN SECTION FOR DEFINING HELPER FUNCTIONS FOR RESOURCE COPYING # ############################################################################### # This function copies the given files to the destination directory. # Used to place important resources from res/ and spl.jar into build/ folder. defineTest(copyToDestdir) { files = $$1 for(FILE, files) { DDIR = $$OUT_PWD # Replace slashes in paths with backslashes for Windows win32:FILE ~= s,/,\\,g win32:DDIR ~= s,/,\\,g !win32 { copyResources.commands += cp -r '"'$$FILE'"' '"'$$DDIR'"' $$escape_expand(\\n\\t) } win32 { copyResources.commands += xcopy '"'$$FILE'"' '"'$$DDIR'"' /e /y $$escape_expand(\\n\\t) } } export(copyResources.commands) } # specify files to copy on non-Windows systems !win32 { copyToDestdir($$files($$PWD/res/*)) copyToDestdir($$files($$PWD/lib/*.jar)) exists($$PWD/*.txt) { copyToDestdir($$files($$PWD/*.txt)) } } # specify files to copy on Windows systems win32 { copyToDestdir($$PWD/res) copyToDestdir($$PWD/lib/*.jar) copyToDestdir($$PWD/lib/addr2line.exe) exists($$PWD/*.txt) { copyToDestdir($$PWD/*.txt) } } # copy output/ dir to an output/ subdir of the build directory exists($$PWD/output/*) { PROJECTOUTDIR = $$PWD/output BUILDOUTDIR = $$OUT_PWD win32 { # on windows, must change / to \ in paths, # and include \output at end of dest dir PROJECTOUTDIR ~= s,/,\\,g BUILDOUTDIR = $$OUT_PWD/output BUILDOUTDIR ~= s,/,\\,g } copydata.commands = $(COPY_DIR) '"'$$PROJECTOUTDIR'"' '"'$$BUILDOUTDIR'"' first.depends = $(first) copydata export(first.depends) export(copydata.commands) } # copy support files such as library JAR and addr2line copyResources.input += $$files($$PWD/lib/*.jar) win32 { copyResources.input += $$files($$PWD/lib/addr2line.exe) } copyResources.input += $$files($$PWD/res/*) exists($$PWD/output/*.txt) { copyResources.input += $$files(output/*) } exists($$PWD/*.txt) { copyResources.input += $$files($$PWD/*.txt) } QMAKE_EXTRA_TARGETS += copyResources first copydata #QMAKE_EXTRA_TARGETS += copyResources POST_TARGETDEPS += copyResources ############################################################################### # END SECTION FOR DEFINING HELPER FUNCTIONS FOR RESOURCE COPYING # ############################################################################### ############################################################################### # BEGIN SECTION FOR CS 106B/X AUTOGRADER PROGRAMS # ############################################################################### # settings specific to CS 106 B/X auto-grading programs; do not modify exists($$PWD/lib/autograder/*.cpp) { # include the various autograder source code and libraries in the build process SOURCES += $$PWD/lib/autograder/*.cpp HEADERS += $$PWD/lib/autograder/*.h INCLUDEPATH += $$PWD/lib/StanfordCPPLib/private/ INCLUDEPATH += $$PWD/lib/autograder/ DEFINES += SPL_AUTOGRADER_MODE # a check to ensure that required autograder resources are present in this project !exists($$PWD/res/autograder/pass.gif) { message(*** Stanford library cannot find its image files pass.gif, fail.gif, etc.!) message(*** This project cannot run without those images present.) message(*** Place those files into your res/autograder/ folder and try again.) error(Exiting.) } # copy autograder resource files into build folder copyResources.input += $$files($$PWD/res/autograder/*) OTHER_FILES += $$files(res/autograder/*) !win32 { LIBS += -lpthread copyToDestdir($$files($$PWD/res/autograder/*)) } win32 { copyToDestdir($$PWD/res/autograder) } # copy source code into build folder so it can be analyzed by style checker exists($$PWD/src/*.cpp) { copyResources.input += $$files($$PWD/src/*.cpp) copyToDestdir($$files($$PWD/src/*.cpp)) } exists($$PWD/*.cpp) { copyResources.input += $$files($$PWD/*.cpp) copyToDestdir($$files($$PWD/*.cpp)) } exists($$PWD/src/*.h) { copyResources.input += $$files($$PWD/src/*.h) copyToDestdir($$files($$PWD/src/*.h)) } exists($$PWD/*.h) { copyResources.input += $$files($$PWD/*.h) copyToDestdir($$files($$PWD/*.h)) } } ############################################################################### # END SECTION FOR CS 106B/X AUTOGRADER PROGRAMS # ############################################################################### # END OF FILE (this should be line #395; if not, your .pro has been changed!)
-
This one is fairly involved.
Is the project public ?