dotBunny / CLionSourceCodeAccess

A CLion Plugin for Unreal Engine
136 stars 26 forks source link

Cannot get compiler information for configuration Debug #35

Open xmamo opened 7 years ago

xmamo commented 7 years ago

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):

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

Dalai- commented 7 years ago

@shpen where exactly are you adding set(CMAKE_CXX_FLAGS "-g -std=gnu++11\n") and ...Engine/Binaries/DotNET/? Are you using cygwin or mingw? I'm getting the g++.exe: error: (: No such file or directory error and would like to try your fix.

Regarding the macro errors, do you have the Unreal Engine 4 SDK Support plugin installed in CLion?

ghost commented 7 years ago

That would be interesting for me too, i´ve tried setting up the stuff but stucking at this specific point. If i add the set(...) inside the cmakelist i get another issue, but i´ve no clue where to add the /DotNet/ path except in Windows environment and the global bash config of cygwin. None of this worked as expected.

Right now i download the source of the engine and compile it, hopefully you find the time to answer @shpen :-)

shpen commented 7 years ago

@Dalai- I am putting the cmake flags at the top of the CMakeLists.txt. If I rebuild from scratch (github source, rather than just including the source when downloading from the Epic Launcher), then I don't need to set this flag. I am using cygwin, if that matters.

As far as the path for UnrealBuildTool, I unfortunately have not been able to figure out how to configure the path, so I am manually adding the full path in the CMakeLists.txt for the build targets that I use. It's annoying because it gets overwritten, but I haven't figured out a cleaner solution unless @Toby91 can comment.

Unfortunately, despite getting this to work for the most part, I am having serious performance usability issues:

And some other issues I cannot think of off the top of my head. For now I am switching back to VS2015, manually applying all my keybindings and installing Resharper with the hopes of recapturing the Intellij/CLion editor experience, but keeping the usability and stability of VS2015. Really all I need are my shortcuts, color scheme, and some basic code navigation/generation to keep me happy. CLion has all that, but unfortunately I think I will wait for this project to mature a little further before attempting to come back. Sorry if it's not the good news you're hoping for.

anastasiak2512 commented 7 years ago

@shpen I'm sorry the experience with CLion was not smooth. Could I kindly ask you for one thing? When there is a freeze in CLion, thread dumps are generated automatically. They are located in the same directory as logs (Help | Show Logs). Could you share them with us, please? We'd like to investigate the freeze. Which CLion version was that btw?

shpen commented 7 years ago

log.zip

2016.3.3

anastasiak2512 commented 7 years ago

@shpen thanks!

ghost commented 7 years ago

Good evening,

Something new here? I´m playing a bit with MSVC Beta support and so on but still sitting here with my unsatisfying Visual Studio.

Cheers, Maik

TomCoursow commented 7 years ago

Same here also tried 2017.1 with MSVC Support but also get command line to long :/

anastasiak2512 commented 7 years ago

I'm afraid it's a compiler issue and we can't help with it in CLion. The only way could be changing the generated output from the plugin, but I have no proper idea on how to do it.

TomCoursow commented 7 years ago

Sounds like we are doomed? :(

reapazor commented 7 years ago

"There's always hope" :) got it all up in a VM now ....

-- Matthew Davey

On Apr 23, 2017, at 08:50, Tom - Henry Coursow notifications@github.com<mailto:notifications@github.com> wrote:

Sounds like we are doomed? :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dotBunny/CLionSourceCodeAccess/issues/35#issuecomment-296441219, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAGD3IJ7cW8OBpNkgRsE6jlkz_n9v2Fjks5ry0ksgaJpZM4LHwVC.

reapazor commented 7 years ago

So I've gotten past most of the stuff above, im just working out a " g++.exe: error: CreateProcess: No such file or directory" issue :)

reapazor commented 7 years ago

(not giving up on windows :D )

reapazor commented 7 years ago

screenshot 2017-04-23 12 18 31

^ Current Setup

reapazor commented 7 years ago

Produces C:\Users\reapazor\AppData\Local\Temp\compiler-file -mtune=generic -march=i686 -std=gnu++11 -fpch-preprocess -g -fworking-directory -dD g++.exe: error: CreateProcess: No such file or directory

Koriel commented 7 years ago

I'm impressed. :D I can redo it later with your configuration and see if I get the same thing. Maybe this is banal, but somewhere it said that could happen if you need to restart after installing for the PATH to take effect (since you installed it in a VM recently?).

reapazor commented 7 years ago

So, yes to the restart :) ... but it presents a more difficult problem after that. I keep hitting the command line character limit on windows.

The compile line it fails on is 160k+ characters long (windows limit is something like <9k).

I'm trying to find a work around :)

Koriel commented 7 years ago

I can't try this yet (maybe tonight), but found a guy who says the 9k limit is a cmd.exe limitation, he tries to solve it by replacing the windows shell with another shell: https://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/

reapazor commented 7 years ago

That is a nice find :) I might even play with it soon.

shadd-anderson commented 7 years ago

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 commented 7 years ago

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

altairmizuchi commented 7 years ago

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 commented 7 years ago

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

anastasiak2512 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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

altairmizuchi commented 7 years ago

not_helped

@anastasiak2512 unfortunately, it has not helped(

anastasiak2512 commented 7 years ago

@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 commented 7 years ago

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

altairmizuchi commented 7 years ago

@anastasiak2512 clion_output.txt

Cenovis commented 7 years ago

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

anastasiak2512 commented 7 years ago

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

anastasiak2512 commented 7 years ago

First of all, I've sent a pull request to force RESPONSE file usage from CMake: https://github.com/dotBunny/CLionSourceCodeAccess/pull/74/

anastasiak2512 commented 7 years ago

@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'

anastasiak2512 commented 7 years ago

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

reapazor commented 7 years ago

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

anastasiak2512 commented 7 years ago

@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 commented 7 years ago

@anastasiak2512 Works for me with release configuration.

Cenovis commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@Cenovis let's clean the installation:

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

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

TomCoursow commented 7 years ago

@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 commented 5 years ago

MSVC issue is fixed in Preview 2019!

terrantsh commented 5 years ago

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