Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get compiler information for configuration Debug #35

Open
xMamo opened this Issue Dec 8, 2016 · 96 comments

Comments

Projects
None yet
@xMamo
Copy link

xMamo commented Dec 8, 2016

When I start up CLion, I get the following error:

"C:\Program Files (x86)\JetBrains\CLion 2016.3\bin\cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "D:\Users\Matteo\Documents\Unreal Projects\UnrealCourse\BuildingEscape"
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Users/Matteo/Documents/Unreal Projects/UnrealCourse/BuildingEscape/cmake-build-debug
Cannot get compiler information for configuration Debug:
	Compiler exited with error code 1: C:\MinGW\bin\g++.exe -xc++ -DACTORPICKERMODE_API="" -DADDCONTENTDIALOG_API="" -DADVERTISING_API="" -DAIGRAPH_API="" -DAIMODULE_API="" -DAITESTSUITE_API="" -DALEMBICIMPORTER_API="" -DALEMBICLIBRARY_API="" -DALLDESKTOPTARGETPLATFORM_API="" -DANALYTICSBLUEPRINTLIBRARY_API="" -DANALYTICSET_API="" -DANALYTICSMULTICASTEDITOR_API="" -DANALYTICSMULTICAST_API="" -DANALYTICSVISUALEDITING_API="" -DANALYTICS_API="" -DANDROIDDEVICEDETECTION_API="" -DANDROIDMEDIAEDITOR_API="" -DANDROIDMEDIAFACTORY_API="" -DANDROIDMEDIA_API="" -DANDROIDPLATFORMEDITOR_API="" -DANDROIDRUNTIMESETTINGS_API="" -DANDROIDTARGETPLATFORM_API="" -DANDROID_ASTCTARGETPLATFORM_API="" -DANDROID_ATCTARGETPLATFORM_API="" -DANDROID_DXTTARGETPLATFORM_API="" -DANDROID_ETC1TARGETPLATFORM_API="" -DANDROID_ETC2TARGETPLATFORM_API="" -DANDROID_MULTITARGETPLATFORM_API="" -DANDROID_PVRTCTARGETPLATFORM_API="" -DANIMATIONBLUEPRINTEDITOR_API="" -DANIMATIONEDITOR_API="" -DANIMGRAPHRUNTIME_API="" -DANIMGRAPH_API="" -DANSEL_API="" -DANSEL_DLL=AnselSDK64.dll -DAPPFRAMEWORK_API="" -DAPSALAREDITOR_API="" -DARCHVISCHARACTER_API="" -DASSETREGISTRY_API="" -DASSETTOOLS_API="" -DASYNC_DEFERRED_DELETION=1 -DAUDIOCAPTURE_API="" -DAUDIOFORMATADPCM_API="" -DAUDIOFORMATOGG_API="" -DAUDIOFORMATOPUS_API="" -DAUDIOMIXERXAUDIO2_API="" -DAUDIOMIXER_API="" -DAUTOMATIONCONTROLLER_API="" -DAUTOMATIONMESSAGES_API="" -DAUTOMATIONWINDOW_API="" -DAUTOMATIONWORKER_API="" -DAVFMEDIAEDITOR_API="" -DAVFMEDIAFACTORY_API="" -DAVFMEDIA_API="" -DBEHAVIORTREEEDITOR_API="" -DBLANKMODULE_API="" -DBLANKPLUGIN_API="" -DBLUEPRINTCOMPILERCPPBACKEND_API="" -DBLUEPRINTGRAPH_API="" -DBLUEPRINTNATIVECODEGEN_API="" -DBLUEPRINTPROFILER_API="" -DBLUEPRINTRUNTIME_API="" -DBLUEPRINTSTATS_API="" -DBLUTILITY_API="" -DBSPMODE_API="" -DBUILDINGESCAPE_API="" -DBUILDING_STATIC -DBUILDPATCHSERVICES_API="" -DCABLECOMPONENT_API="" -DCASCADE_API="" -DCEF3UTILS_API="" -DCHARACTERAI_API="" -DCINEMATICCAMERA_API="" -DCLASSVIEWER_API="" -DCLIONSOURCECODEACCESS_API="" -DCODEEDITOR_API="" -DCODEVIEW_API="" -DCOLLECTIONMANAGER_API="" -DCOLLISIONANALYZER_API="" -DCOMPONENTVISUALIZERS_API="" -DCONFIGEDITOR_API="" -DCONTENTBROWSER_API="" -DCOREUOBJECT_API="" -DCORE_API="" -DCRASHTRACKER_API="" -DCURVEASSETEDITOR_API="" -DCURVETABLEEDITOR_API="" -DCUSTOMMESHCOMPONENT_API="" -DD3D11RHI_API="" -DD3D12RHI_API="" -DDATABASESUPPORT_API="" -DDATATABLEEDITOR_API="" -DDEBUG_RESOURCE_STATES=0 -DDEPRECATED_FORGAME=DEPRECATED -DDERIVEDDATACACHE_API="" -DDESKTOPPLATFORM_API="" -DDESKTOPWIDGETS_API="" -DDESTRUCTIBLEMESHEDITOR_API="" -DDETAILCUSTOMIZATIONS_API="" -DDEVICEMANAGER_API="" -DDEVICEPROFILEEDITOR_API="" -DDEVICEPROFILESERVICES_API="" -DDIRECTORYWATCHER_API="" -DDISTCURVEEDITOR_API="" -DDOCUMENTATION_API="" -DDX_MAX_MSAA_COUNT=8 -DEDITORLIVESTREAMING_API="" -DEDITORSETTINGSVIEWER_API="" -DEDITORSTYLE_API="" -DEDITORTESTS_API="" -DEDITORWIDGETS_API="" -DEIGEN_MPL2_ONLY -DENABLE_HTTP_FOR_NFS=1 -DENABLE_OLD_GAMEPLAY_DEBUGGER=0 -DENABLE_RESIDENCY_MANAGEMENT=1 -DENGINEMESSAGES_API="" -DENGINESETTINGS_API="" -DENGINE_API="" -DENVIRONMENTQUERYEDITOR_API="" -DEPICSURVEY_API="" -DEXAMPLEDEVICEPROFILESELECTOR_API="" -DEXTERNALIMAGEPICKER_API="" -DFBXAUTOMATIONTESTBUILDER_API="" -DFILELOGGING_API="" -DFLURRYEDITOR_API="" -DFOLIAGEEDIT_API="" -DFOLIAGE_API="" -DFONTEDITOR_API="" -DFUNCTIONALTESTINGEDITOR_API="" -DFUNCTIONALTESTING_API="" -DGAMECIRCLERUNTIMESETTINGS_API="" -DGAMELIVESTREAMING_API="" -DGAMEPLAYABILITIESEDITOR_API="" -DGAMEPLAYABILITIES_API="" -DGAMEPLAYDEBUGGER_API="" -DGAMEPLAYTAGSEDITOR_API="" -DGAMEPLAYTAGS_API="" -DGAMEPLAYTASKSEDITOR_API="" -DGAMEPLAYTASKS_API="" -DGAMEPROJECTGENERATION_API="" -DGAMMAUI_API="" -DGEOMETRYCACHEED_API="" -DGEOMETRYCACHE_API="" -DGEOMETRYMODE_API="" -DGITSOURCECONTROL_API="" -DGOOGLEVRCONTROLLER_API="" -DGOOGLEVRHMD_API="" -DGRAPHEDITOR_API="" -DHARDWARESURVEY_API="" -DHARDWARETARGETING_API="" -DHAS_OODLE_SDK=0 -DHEADMOUNTEDDISPLAY_API="" -DHIERARCHICALLODOUTLINER_API="" -DHIERARCHICALLODUTILITIES_API="" -DHOTFIX_API="" -DHOTRELOAD_API="" -DHTML5NETWORKING_API="" -DHTML5PLATFORMEDITOR_API="" -DHTML5TARGETPLATFORM_API="" -DHTTPNETWORKREPLAYSTREAMING_API="" -DHTTP_API="" -DHTTP_PACKAGE=1 -DICMP_API="" -DICMP_PACKAGE=1 -DIMAGECORE_API="" -DIMAGEWRAPPER_API="" -DINPUTBINDINGEDITOR_API="" -DINPUTCORE_API="" -DINPUTDEVICE_API="" -DINTERNATIONALIZATIONSETTINGS_API="" -DINTERNATIONALIZATION_API="" -DINTROTUTORIALS_API="" -DIOSPLATFORMEDITOR_API="" -DIOSRUNTIMESETTINGS_API="" -DIOSTARGETPLATFORM_API="" -DIS_MONOLITHIC=0 -DIS_PROGRAM=0 -DJSONUTILITIES_API="" -DJSON_API="" -DKISMETCOMPILER_API="" -DKISMETWIDGETS_API="" -DKISMET_API="" -DLANDSCAPEEDITOR_API="" -DLANDSCAPE_API="" -DLAUNCHDAEMONMESSAGES_API="" -DLAUNCHERSERVICES_API="" -DLAUNCH_API="" -DLAYERS_API="" -DLEAPMOTION_API="" -DLEVELEDITOR_API="" -DLEVELSEQUENCEEDITOR_API="" -DLEVELSEQUENCE_API="" -DLIGHTPROPAGATIONVOLUMEEDITOR_API="" -DLIGHTPROPAGATIONVOLUMERUNTIME_API="" -DLOBBY_API="" -DLOBBY_PACKAGE=1 -DLOCALIZATIONDASHBOARD_API="" -DLOCALIZATIONSERVICE_API="" -DLOCALIZATION_API="" -DLOGVISUALIZER_API="" -DMACCLIENTTARGETPLATFORM_API="" -DMACNOEDITORTARGETPLATFORM_API="" -DMACSERVERTARGETPLATFORM_API="" -DMACTARGETPLATFORM_API="" -DMAINFRAME_API="" -DMATERIALEDITOR_API="" -DMATERIALSHADERQUALITYSETTINGS_API="" -DMATERIALUTILITIES_API="" -DMATINEETOLEVELSEQUENCE_API="" -DMATINEE_API="" -DMAX_CBS=8 -DMAX_ROOT_CBVS=MAX_CBS -DMAX_SRVS=32 -DMEDIAASSETS_API="" -DMEDIAPLAYEREDITOR_API="" -DMEDIAUTILS_API="" -DMEDIA_API="" -DMERGEACTORS_API="" -DMERGE_API="" -DMESHBONEREDUCTION_API="" -DMESHPAINT_API="" -DMESHUTILITIES_API="" -DMESSAGELOG_API="" -DMESSAGINGDEBUGGER_API="" -DMESSAGINGRPC_API="" -DMESSAGING_API="" -DMETALSHADERFORMAT_API="" -DMIDIDEVICE_API="" -DMOBILELAUNCHERPROFILEWIZARD_API="" -DMOBILEPATCHINGUTILS_API="" -DMODULEUI_API="" -DMOVIEPLAYER_API="" -DMOVIESCENECAPTUREDIALOG_API="" -DMOVIESCENECAPTURE_API="" -DMOVIESCENETOOLS_API="" -DMOVIESCENETRACKS_API="" -DMOVIESCENE_API="" -DNAVMESH_API="" -DNDEBUG=1 -DNETCODEUNITTEST_API="" -DNETWORKFILESYSTEM_API="" -DNETWORKFILE_API="" -DNETWORKING_API="" -DNETWORKREPLAYSTREAMING_API="" -DNEWLEVELDIALOG_API="" -DNIAGARAEDITOR_API="" -DNIAGARA_API="" -DNULLDRV_API="" -DNULLNETWORKREPLAYSTREAMING_API="" -DNUTUNREALENGINE4_API="" -DOCULUSAUDIO_API="" -DOCULUSINPUT_API="" -DOCULUSLIBRARY_API="" -DOCULUSRIFT_API="" -DONESKYLOCALIZATIONSERVICE_API="" -DONLINEBLUEPRINTSUPPORT_API="" -DONLINESUBSYSTEMAMAZON_API="" -DONLINESUBSYSTEMAMAZON_PACKAGE=1 -DONLINESUBSYSTEMFACEBOOK_API="" -DONLINESUBSYSTEMFACEBOOK_PACKAGE=1 -DONLINESUBSYSTEMNULL_API="" -DONLINESUBSYSTEMNULL_PACKAGE=1 -DONLINESUBSYSTEMOCULUS_API="" -DONLINESUBSYSTEMOCULUS_PACKAGE=1 -DONLINESUBSYSTEMSTEAM_API="" -DONLINESUBSYSTEMSTEAM_PACKAGE=1 -DONLINESUBSYSTEMUTILS_API="" -DONLINESUBSYSTEMUTILS_PACKAGE=1 -DONLINESUBSYSTEM_API="" -DONLINESUBSYSTEM_PACKAGE=1 -DOODLEHANDLERCOMPONENT_API="" -DOPENGLDRV_API="" -DORIGINAL_FILE_NAME=\"UE4Editor-CLionSourceCodeAccess.dll\" -DORIGINAL_FILE_NAME=\"UE4Editor.exe\" -DOSVRINPUT_API="" -DOSVR_API="" -DOUTPUTLOG_API="" -DPACKAGEDEPENDENCYINFO_API="" -DPACKAGESDIALOG_API="" -DPACKETHANDLER_API="" -DPAKFILE_API="" -DPAPER2DEDITOR_API="" -DPAPER2D_API="" -DPAPERSPRITESHEETIMPORTER_API="" -DPAPERTILEDIMPORTER_API="" -DPARTY_API="" -DPARTY_PACKAGE=1 -DPERFCOUNTERS_API="" -DPERFORCESOURCECONTROL_API="" -DPERSONA_API="" -DPHAT_API="" -DPHYA_API="" -DPHYSXFORMATS_API="" -DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir -DPIXELINSPECTORMODULE_API="" -DPLACEMENTMODE_API="" -DPLATFORM_SUPPORTS_MGPU=1 -DPLATFORM_WINDOWS=1 -DPLISTEDITOR_API="" -DPLUGINBROWSER_API="" -DPLUGINWARDEN_API="" -DPORTALMESSAGES_API="" -DPORTALPROXIES_API="" -DPORTALRPC_API="" -DPORTALSERVICES_API="" -DPROCEDURALMESHCOMPONENTEDITOR_API="" -DPROCEDURALMESHCOMPONENT_API="" -DPROFILERCLIENT_API="" -DPROFILERMESSAGES_API="" -DPROFILERSERVICE_API="" -DPROFILER_API="" -DPROJECTLAUNCHER_API="" -DPROJECTSETTINGSVIEWER_API="" -DPROJECTS_API="" -DPROJECTTARGETPLATFORMEDITOR_API="" -DPROPERTYEDITOR_API="" -DQOS_API="" -DQOS_PACKAGE=1 -DRAWMESH_API="" -DREALTIMEPROFILER_API="" -DREFERENCEVIEWER_API="" -DRELIABILITYHANDLERCOMPONENT_API="" -DRENDERCORE_API="" -DRENDERER_API="" -DRESIDENCY_PIPELINE_DEPTH=6 -DRHI_API="" -DRUNTIMETESTS_API="" -DSANDBOXFILE_API="" -DSCENEDEPTHPICKERMODE_API="" -DSCENEOUTLINER_API="" -DSCREENSHOTCOMPARISONTOOLS_API="" -DSCREENSHOTCOMPARISON_API="" -DSCREENSHOTTOOLS_API="" -DSCRIPTEDITORPLUGIN_API="" -DSCRIPTPLUGIN_API="" -DSEQUENCERECORDERSECTIONS_API="" -DSEQUENCERECORDER_API="" -DSEQUENCERWIDGETS_API="" -DSEQUENCER_API="" -DSERIALIZATION_API="" -DSESSIONFRONTEND_API="" -DSESSIONMESSAGES_API="" -DSESSIONSERVICES_API="" -DSETTINGSEDITOR_API="" -DSETTINGS_API="" -DSHADERCOMPILERCOMMON_API="" -DSHADERCORE_API="" -DSHADERFORMATD3D_API="" -DSHADERFORMATOPENGL_API="" -DSHADERPREPROCESSOR_API="" -DSHAREDSETTINGSWIDGETS_API="" -DSIGNIFICANCEMANAGER_API="" -DSIMPLEHMD_API="" -DSIZEMAP_API="" -DSKELETALMESHEDITOR_API="" -DSKELETONEDITOR_API="" -DSLATECORE_API="" -DSLATENULLRENDERER_API="" -DSLATEREFLECTOR_API="" -DSLATEREMOTE_API="" -DSLATERHIRENDERER_API="" -DSLATE_API="" -DSLATE_REFLECTOR_HAS_DESKTOP_PLATFORM=1 -DSLATE_REFLECTOR_HAS_SESSION_SERVICES=1 -DSMARTSNAPPING_API="" -DSOCKETS_API="" -DSOCKETS_PACKAGE=1 -DSOUNDCLASSEDITOR_API="" -DSOUNDCUEEDITOR_API="" -DSOUNDMODIMPORTER_API="" -DSOUNDMOD_API="" -DSOUNDVISUALIZATIONS_API="" -DSOURCECODEACCESS_API="" -DSOURCECONTROLWINDOWS_API="" -DSOURCECONTROL_API="" -DSPEEDTREEIMPORTER_API="" -DSSL_API="" -DSSL_PACKAGE=1 -DSTANDALONERENDERER_API="" -DSTATICMESHEDITOR_API="" -DSTATSVIEWER_API="" -DSTEAMCONTROLLER_API="" -DSTEAMSDK_FOUND=1 -DSTEAMVRCONTROLLER_API="" -DSTEAMVR_API="" -DSTEREOPANORAMA_API="" -DSTREAMINGFILE_API="" -DSTREAMINGPAUSERENDERING_API="" -DSTRUCTBOX_API="" -DSUBVERSIONSOURCECONTROL_API="" -DSUB_ALLOCATED_DEFAULT_ALLOCATIONS=1 -DSUPERSEARCHEDITOR_API="" -DSUPERSEARCH_API="" -DSWARMINTERFACE_API="" -DSYNTHBENCHMARK_API="" -DTARGETDEVICESERVICES_API="" -DTARGETPLATFORM_API="" -DTASKGRAPH_API="" -DTCPMESSAGING_API="" -DTEXTUREALIGNMODE_API="" -DTEXTURECOMPRESSOR_API="" -DTEXTUREEDITOR_API="" -DTEXTUREFORMATASTC_API="" -DTEXTUREFORMATDXT_API="" -DTEXTUREFORMATINTELISPCTEXCOMP_API="" -DTEXTUREFORMATPVR_API="" -DTEXTUREFORMATUNCOMPRESSED_API="" -DTOOLBOX_API="" -DTRANSLATIONEDITOR_API="" -DTREEMAP_API="" -DTVOSTARGETPLATFORM_API="" -DUATHELPER_API="" -DUBT_COMPILED_PLATFORM=Win64 -DUBT_COMPILED_TARGET=Editor -DUDPMESSAGING_API="" -DUE4GAME_API="" -DUE_BUILD_DEVELOPMENT=1 -DUE_BUILD_MINIMAL=0 -DUE_EDITOR=1 -DUE_ENABLE_ICU=1 -DUMGEDITOR_API="" -DUMG_API="" -DUNDOHISTORY_API="" -DUNICODE -DUNREALAUDIOXAUDIO2_API="" -DUNREALAUDIO_API="" -DUNREALEDMESSAGES_API="" -DUNREALED_API="" -DUOBJECTPLUGIN_API="" -DUSERFEEDBACK_API="" -DUSE_CHECKS_IN_SHIPPING=0 -DUSE_LOGGING_IN_SHIPPING=0 -DUSE_NEW_ASYNC_IO=0 -DUSE_P4_API=1 -DUSE_STATIC_ROOT_SIGNATURE=0 -DUSE_STATS_WITHOUT_ENGINE=0 -DUTILITYSHADERS_API="" -DVECTORVM_API="" -DVIEWPORTINTERACTION_API="" -DVIEWPORTSNAPPING_API="" -DVISUALSTUDIOSOURCECODEACCESS_API="" -DVOICE_API="" -DVOICE_PACKAGE=1 -DVREDITOR_API="" -DVSACCESSOR_HAS_DTE=1 -DVULKANRHI_API="" -DVULKANSHADERFORMAT_API="" -DWEBBROWSERWIDGET_API="" -DWEBBROWSER_API="" -DWIDGETCAROUSEL_API="" -DWIN32=1 -DWINDOWSCLIENTTARGETPLATFORM_API="" -DWINDOWSDEVICEPROFILESELECTOR_API="" -DWINDOWSMOVIEPLAYER_API="" -DWINDOWSNOEDITORTARGETPLATFORM_API="" -DWINDOWSSERVERTARGETPLATFORM_API="" -DWINDOWSTARGETPLATFORM_API="" -DWINVER=0x0601 -DWITH_ANSEL=1 -DWITH_APEX=1 -DWITH_BOX2D=1 -DWITH_COREUOBJECT=1 -DWITH_DEV_AUTOMATION_TESTS=1 -DWITH_DIRECTXMATH=0 -DWITH_EDITOR=1 -DWITH_ENGINE=1 -DWITH_FREETYPE=1 -DWITH_GAMEPLAY_DEBUGGER=1 -DWITH_LOGGING_TO_MEMORY=0 -DWITH_OGGVORBIS=1 -DWITH_PERFCOUNTERS=1 -DWITH_PERF_AUTOMATION_TESTS=1 -DWITH_PHYSX=1 -DWITH_PLUGIN_SUPPORT=0 -DWITH_PORTAL_SERVICES=1 -DWITH_RECAST=1 -DWITH_RUNTIME_PHYSICS_COOKING -DWITH_SERVER_CODE=1 -DWITH_SSL=1 -DWITH_STEAMWORKS=1 -DWITH_UNREALEXR=1 -DWITH_UNREALJPEG=1 -DWITH_UNREALPNG=1 -DWITH_UNREAL_DEVELOPER_TOOLS=1 -DWMFMEDIAEDITOR_API="" -DWMFMEDIAFACTORY_API="" -DWMFMEDIA_API="" -DWORKSPACEMENUSTRUCTURE_API="" -DWORLDBROWSER_API="" -DXAUDIO2_API="" -DXMLPARSER_API="" -D_UNICODE -D_WIN32_WINNT=0x0601 -D__UNREAL__ -D__WINDOWS_DS__ -D__WINDOWS_WASAPI__ @CMakeFiles/BuildingEscapeEditorFake.dir/includes_CXX.rsp -g ( ) -std=gnu++11 -v -dD -E
	g++.exe: error: (: No such file or directory
	g++.exe: error: ): No such file or directory
	Using built-in specs.
	COLLECT_GCC=C:\MinGW\bin\g++.exe
	Target: mingw32
	Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads=posix --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls
	Thread model: posix
	gcc version 5.3.0 (GCC) 
	

I'm on Windows 10 (64 bit). I'm using the latest version of CLionSourceCodeAccess (commit cca71db960a371d1847215e898f181164b892503), the latest version of CLion (build #CL-163.7743.47), and the latest version of Unreal Engine (v. 4.14.0) as I'm writing this.
I'm using the MinGW toolchain with the bundled CMake and the bundled GDB of CLion. This is a list of all currently installed packages of MinGW (all updated to the latest avaiable version):

  • mingw-32-binutils (bin);
  • mingw-32-gcc (bin, dev, doc, info, lang, lic, man);
  • mingw-32-gcc-g++ (bin, dev, doc, man);
  • mingw-32-gdb (bin, doc, info, lang, lic);
  • mingw-32-libatomic (dll);
  • mingw-32-libgcc (dll);
  • mingw-32-libgmp (dll);
  • mingw-32-libgomp (dll);
  • mingw-32-libiconv (dll);
  • mingw-32-libintl (dll);
  • mingw-32-libmpc (dll);
  • mingw-32-libmpfr (dll);
  • mingw-32-libpthreadgc (dev, dll);
  • mingw-32-libquadmath (dll);
  • mingw-32-libssp (dll);
  • mingw-32-libstdc++ (dll);
  • mingw-32-libgz (dll);
  • mingw-32-make (bin, doc, lang, lic);
  • mingw-32-libgcc (dll);
  • mingw-32-mingw-get (bin, gui, lic);
  • mingw-32-mingwrt (dev, dll);
  • mingw-32-w32api (dev).

I already tried not to use the bundled CMake and/or the bundled GDB.

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 26, 2016

Same here, same system, Unreal Engine v. 4.14.1, mingw-w64

@tkrause

This comment has been minimized.

Copy link

tkrause commented Dec 29, 2016

Same issue as well. It also will not build using Run -> Build seems to be erroring when trying to build the Plugins folder on the CLionSourceCodeAccess files.

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 29, 2016

Nah, i've removed plugin manually by removing it from cmake file, it is caused by braces at the end of cmake command

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Dec 29, 2016

Anyone have more specifics on this, i'm at a bit of a loss trying to debug this. (primarily on a mac)
I've got latest plugin + Unreal 4.14.1 + bundled cmake and its not giving me grief ... any more details would be much appreciated.

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 29, 2016

I can get with you on TeamViewer session or something and we can try to fix that if it suits you

@tkrause

This comment has been minimized.

Copy link

tkrause commented Dec 29, 2016

I setup CLion and UE4 as specified in the Wiki both using MinGW as well as LLVM's clang. After reading around, I went ahead and replaced all the *.cmake files \ with / which fixed some errors in generating debug symbols and errors in the cmake log.

This is what I am left with when enabling verbose mode on cmake. If you would like, we could do a remote desktop session as PWN1109 suggested as well.

http://pastebin.com/hTE2uXrQ

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Dec 29, 2016

@anastasiak2512 you think you might be able to chime in on this one?

@xMamo

This comment has been minimized.

Copy link
Author

xMamo commented Dec 29, 2016

I wish I could help, but I'm not too confortable with C++'s CMake yet.

Just wanted to say that the backslash problem wasn't there in commit cca71db960a371d1847215e898f181164b892503. I saw that you reverted the changes of that commit; I presume this is to avoid replacing escape backslashes on Mac and Linux. As @otks suggested in pull 34, you could solve this problem with #if PLATFORM_WINDOWS preprocessor directives.

If you need a Windows testing environment, you could set up a virtual machine. You can get Window's ISO from Window's official website right here.

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Dec 29, 2016

I've got a VM actually setup :) its just a time thing at the moment. I'm trying to find sometime this next week to fix all this however. I have a bunch of other fixes on the mac side to go in.

I've reached out to @anastasiak2512 as well, she's the lovely person from JetBrains that helped get the CMake stuff going on Windows/etc :) So she is the most qualified for fixing it, but I will take a stab at it none the less.

@xMamo

This comment has been minimized.

Copy link
Author

xMamo commented Dec 29, 2016

Working with Visual Studio is so frustrating! Can't wait to use CLion instead! Wish I could help more, but I'm not at my work PC right now.

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Dec 29, 2016

I'll have a look at it next week hopefully.

@tkrause

This comment has been minimized.

Copy link

tkrause commented Jan 8, 2017

Any update on this integration? :)

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Jan 8, 2017

Sorry, but not yet from my side.

@SkaveRat

This comment has been minimized.

Copy link

SkaveRat commented Feb 1, 2017

Any update on this? Even a workaround to remove DNDEBUG or the braces would be helpful

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Feb 7, 2017

Hey, I finally found some time for this. Sorry for a delay.

That's not about slashes/backslashes I'm afraid. CMake can correctly convert them where necessary.

Looks like the problem is caused by the "p -g ( ) " generated by CMake (you can find it at the end of the long line in the original report). Maybe some incorrect or crashed path caused that. Since I can't reproduce it, I need all CMake files generated by the plugin (that caused this error) and flags from <project_name>\cmake-build-<debug\release\etc>\CMakeFiles<target_name>.dir\flags.make directory. Could someone share them with me?

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 7, 2017

Hey,
I've recently tried out the plugin and got the same error. I can confirm that the problems are the empty brackets at the end.
I've uploaded my generated files to this repo: here

I've also found a kind of hacky way to get one step further. If you set
set(CMAKE_CXX_FLAGS "-g -std=gnu++11\n")
in the cmake file you'll cut out the brackets. Problem is, I'm stuck on the new error that pops up right after:
g++.exe: error: CreateProcess: No such file or directory

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Feb 7, 2017

@Chartas Could you pls also upload generated flags? Somewhere from <project_name>\cmake-build-<debug\release\etc>\CMakeFiles<target_name>.dir\flags.make

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 7, 2017

I pushed the whole cmake generated folder. =)

Edit: I think I got something. Definitions.cmake line 295. There is a pair of brackets at the end of GameSavedDir() (kudos to text highlighting) and if i remove them, no more error.

Edit2: Okay, still get errors, just the new one i also get when i use the hacky way.

LogError.txt

@Koriel

This comment has been minimized.

Copy link

Koriel commented Feb 7, 2017

I believe my generated CMake files are nearly identical to the one from Chartas, but here is my repo in case it helps in any way, flags.cmake only exists in CMakeFiles/TestClionEditorFake.dir/flags.make.

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 7, 2017

@Koriel Would you mind trying to navigate to the Project/Intermediate/ProjectFiles folder and escaping or removing the brackets in Definitions.cmake? Then reload the cmake file with CLion and see what happens.

@Koriel

This comment has been minimized.

Copy link

Koriel commented Feb 7, 2017

The parentheses? If I switch:
-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir()
To either one of these:
-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir\(\)
-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir

I get the following:

debug-output.txt

with g++.exe: error: CreateProcess: No such file or directory

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 7, 2017

Yes that's exactly what i meant. Numerous google results state that this error is due to a missing path entry for MinGW but that makes no sense, since other projects and applications seem to work. (I also spent some time installing numerous mingw distributions and restarting my pc. Didn't help.)

Additionally i found that reducing the number of paths included through IncludeDirectories.cmake has an effect on this error. I can't see any pattern but entirely commenting out all includes following line 250 removes the error for me, (Of course that's no proper solution.) But it might be something to look at.

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Feb 8, 2017

Indeed, that's not correct from the compiler side that () are not escaped in
-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir()

It should be either
-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir\(\)
or
“-DPIPELINE_STATE_FILE_LOCATION=FPaths::GameSavedDir()"

Since the definitions are parsed and copied to the generated Definitions.cmake as
DefinitionsProcessed.Append(FString::Printf(TEXT("\t-D%s\n"), *Line));
from CLionSourceCodeAccessor.cpp:173
It could make sense to escape (). Still not sure :: is also a valid symbol. And other invalid symbols could also be present in this Line.

Another workaround could be in CLion itself. CLion v2017.1 should handle them correctly on project loading and since it's only a fake target to open project in CLion (so you won't build/run this target), could be a possible solution.

Could you please try private CLion EAP build from here, open your UE4 project in it, and share the error log, generated cmake files and build dir in case the problem is still present?

@Koriel

This comment has been minimized.

Copy link

Koriel commented Feb 8, 2017

This file ("remote: error: File Intermediate/Build/Win64/UE4Editor/Development/TestCLion2017/TestCLion2017.h.pch") is larger than 800 MB, so I had to remove it, but I have the Build dirs in both the project root's Intermediate directory and the plugin's Intermediate/Build directory.

Error Log: https://gist.github.com/Koriel/326e0d98f38b073716ac5fb877dbeaa6

Repository: here

It appears the issue with () is gone, it just has g++.exe: error: CreateProcess: No such file or directory. Not sure if this is my configuration, or some underlying thing.

@Koriel

This comment has been minimized.

Copy link

Koriel commented Feb 8, 2017

@Chartas Do you have Cygwin installed? There might be a conflict with having both of them in the system PATH and trying to use g++.

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 8, 2017

@Koriel I had it installed. I now removed it according to this guide and still get the same error we two get after escaping the parentheses. Here my message which is pretty much the same as yours only with a different compiler version and my own paths.

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 8, 2017

Okay, with the help of my mad python skills i managed to identify the path values that are most likely the reason for the recent error.

Most of the path values in the second to last line look like this:
C:/PROGRA~1/EPICGA~1/4.14/...<SomeMoreFolder>
They're simplified, probably due to the spaces in the path name. (I don't really know why, doesn't matter for now anyway.) Point is, there are a number of paths to whom this does not apply. For example:
C:/Program Files/Epic Games/4.14/Engine/Plugins/MovieScene/MatineeToLevelSequence/Source/LevelSequenceEditor/Private
And as it happens this path does in fact not exist on my machine. The second to last subfolder is named MatineeToLevelSequence instead of LevelSequenceEditor.

So I conclude that the path retrival is faulty for windows user. Since they're retrived from the CodeLite project, those are probably already faulty as well. I'm not sure how it might be possible to fix that yet.

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Feb 8, 2017

So there was already some fixes to handle faulty data in the CodeLite side of things, so what could be done (and its feasible) is that we do directory checks on each line as its added to the config. This actually is a good idea as a whole across all platforms.

Thoughts?

@Chartas

This comment has been minimized.

Copy link

Chartas commented Feb 8, 2017

I agree. The problem is, what to do once a faulty path has been found? Also, how do we know that we have all relevant path values included, since CodeLite appears to not be reliable?

It might be possible to use the UBT to generate a cmake file and then parse that one to construct a CLion useable cmake file. But I'm not sure how UBT generates the file and it might suffer from the same base problem.

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Feb 8, 2017

When I first started on this, they 'talked about it' but it wasnt ready. It was an engine patch, and i wanted to make this accessible to everyone. I'll dig into it tonight a bit to see if it got mainlined. The actual code the generates the CodeLite file however is going to be the same as the other, so it would have the same fundamental flaw.

@shadd-anderson

This comment has been minimized.

Copy link

shadd-anderson commented May 21, 2017

Any news on this issue lately? I've started developing for Unreal in CLion since JetBrains is LEAGUES better than VS. Hoping it gets worked out soon :)

@shadd-anderson

This comment has been minimized.

Copy link

shadd-anderson commented Jun 4, 2017

So, as mentioned in #53 , uninstalling Unreal and rebuilding from source eliminates this error. h/t to @mhatina.

@altairmizuchi

This comment has been minimized.

Copy link

altairmizuchi commented Jun 5, 2017

Hello, guys. Considering command line length problem for windows.
I see that you registered problem for JetBrains but it seems like they knew about it in 2016 and thinks it should be solved by you and not them!

https://blog.jetbrains.com/clion/2016/10/clion-and-ue4/

"As for the CLionSourceCodeAccess plugin, we’ve tested it on macOS. On Windows there is an issue for MinGW and Cygwin toolchains. CLion’s part will be addressed in CLion 2017.1 EAP, but there is still some internal command line length limitation coming from the toolchain. Probably, MSVC support, which we plan for 2017.1, will resolve this as well."

Or have I misunderstood something?
https://support.microsoft.com/en-us/help/830473/command-prompt-cmd.-exe-command-line-string-limitation

The solution with parameter file proposed by Microsoft sounds like a good idea.

P.S. I am trying to use MVSC which is supported by CLion now

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Jun 5, 2017

@anastasiak2512 that does look like an interesting thing ... but is that more on the clang chain side?

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Jun 6, 2017

@reapazor @altairmizuchi The problem is that we do use the response file inside CLion to call the compiler. The problem happens somewhere inside the compiler call and we have no idea for now how to handle the situation( We'll continue the investigation (under CPP-9974)

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Jul 31, 2017

@here, could you please try adding the following lines to the CMake settings in CLion:

-DCMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS=1
-DCMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES=1

If it helps, I'll contribute to the plugin to generate a proper set command

@altairmizuchi

This comment has been minimized.

Copy link

altairmizuchi commented Jul 31, 2017

@anastasiak2512 I'll check it tomorrow if nobody does it earlier

@altairmizuchi

This comment has been minimized.

Copy link

altairmizuchi commented Aug 1, 2017

not_helped

@anastasiak2512
unfortunately, it has not helped(

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 1, 2017

@altairmizuchi That's interesting, doesn't seem the proper parameters are used (you still get a command line error). I'll try to make a set command in CMake scripts with FORCE flag and commit to the plugin. Hopefully, this week. Then we can recheck.

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 1, 2017

@altairmizuchi Meanwhile, could you please try Tools | CMake | Reset Cache and Reload?

@altairmizuchi

This comment has been minimized.

Copy link

altairmizuchi commented Aug 1, 2017

@Cenovis

This comment has been minimized.

Copy link

Cenovis commented Aug 25, 2017

Any news on this issue ? As a big fan of Jetbrains tools I can't wait to find a solution on this issue :)

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

@Cenovis Looking at it right now. Sorry for a delay

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

First of all, I've sent a pull request to force RESPONSE file usage from CMake: #74

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

@altairmizuchi I see in your log "-DCMAKE_BUILD_TYPE=Debug" and the error is "command line is too long to fit in debug record", so let's try and set Release build type. For that in your CMake settings change configuration to Release. If still fails, attach a fresh CMake output collected after 'Reset Cache and Reload Project'

@reapazor reapazor closed this in #74 Aug 28, 2017

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

@reapazor I would wait for a while and ask users to do some checks before closing this ;)

@reapazor reapazor reopened this Aug 28, 2017

@reapazor

This comment has been minimized.

Copy link
Contributor

reapazor commented Aug 28, 2017

Fair :) i merged it in, and it was working ... but true :D Didn't realize merging would close the issue.

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

@reapazor My main concern is that @altairmizuchi shows me the log with RESPONSE flags set but the problem still present. However, it might be caused by the Debug configuration.
Thus I'd kindly all people here who were reporting the issue do a check and share results.

@Iamthecenterofthemultiverse

This comment has been minimized.

Copy link

Iamthecenterofthemultiverse commented Aug 28, 2017

@anastasiak2512 Works for me with release configuration.

@Cenovis

This comment has been minimized.

Copy link

Cenovis commented Aug 28, 2017

@anastasiak2512 CLion now detects correctly the UE4 API ! But I'm not able to build my project directly from clion:

C:\msys64\mingw64\bin\cmake.exe --build "C:\Users\Cenovis\Documents\Unreal Projects\ue4-hacknslash\HackAndSlashGame\cmake-build-debug" --target HNSEditor-Development -- -j 2
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Cenovis/Documents/Unreal Projects/ue4-hacknslash/HackAndSlashGame/cmake-build-debug
Compiling game modules for hot reload
@progress push 5%
@progress 'Generating code...' 0%
@progress 'Generating code...' 67%
@progress 'Generating code...' 100%
@progress pop
Target is up to date
Total build time: 6.28 seconds (NoActionsToExecute executor: 0.00 seconds)
mingw32-make.exe[3]: *** [CMakeFiles\HNSEditor-Development.dir\build.make:56: CMakeFiles/HNSEditor-Development] Error 2
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:104: CMakeFiles/HNSEditor-Development.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:111: CMakeFiles/HNSEditor-Development.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:130: HNSEditor-Development] Error 2

@altairmizuchi

This comment has been minimized.

Copy link

altairmizuchi commented Aug 28, 2017

Wow! CMD line error disappeared!!! Although I had some missing header error for "target-all" but I have no time to recheck it right now. Thx!

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

So I think now the issue could be closed, however, the plugin instruction should be updated. On Windows it is required to use Release configuration (at least for MSVC) - we can't set it from the plugin, it should be configured manually in CLion.
We'll think about it more to see if we can make it work with Debug configuration in the future.

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Aug 28, 2017

@Cenovis let's clean the installation:

  1. Do CMake 'Reset Cache and Reload Project'
  2. Clean the build for this configuration, rerun.
@Cenovis

This comment has been minimized.

Copy link

Cenovis commented Aug 29, 2017

@anastasiak2512 Thanks, it worked like a charm 👍 :)

@TomCoursow

This comment has been minimized.

Copy link
Contributor

TomCoursow commented Oct 5, 2017

@reapazor
@anastasiak2512
Yes with the latest changes and the new Important Wiki Notes for Windows I finally got it working on my Windows Machine after trying it for over a year now 😃
Thank you very much!

Now CLion seems to hang up every 10 seconds for a while but I would also say that this issue task is fixed now as the freeze should not be related to this here right?

@anastasiak2512

This comment has been minimized.

Copy link
Contributor

anastasiak2512 commented Jan 30, 2019

MSVC issue is fixed in Preview 2019!

@terrantsh

This comment has been minimized.

Copy link

terrantsh commented Feb 22, 2019

@anastasiak2512 Thank you so much!I have worked out this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.