stan - 2017-06-02

I had to patch two files in the UniversalIndentGUI.xcodeproj directory to get the project to compile. Once I did that, it built without issue. The two files were qt_preprocess.mak and qt_makeqmake.mak. I think it is because there are now also corresponding qt5 files, and so the scripts need to use the qt4 qualifier.

$ cat qt_preprocess.mak.patch

--- UniversalIndentGUI.xcodeproj/qt_preprocess.mak      2017-06-02 09:33:59.349826697 -0700
+++ UniversalIndentGUI.xcodeproj/qt_preprocess.mak      2017-06-02 09:32:44.678173668 -0700
@@ -4,18 +4,18 @@
 # Project:  UniversalIndentGUI.pro
 # Template: app
 # Command: /opt/local/bin/qmake -spec /opt/local/share/qt4/mkspecs/macx-xcode -o UniversalIndentGUI.xcodeproj/project.pbxproj UniversalIndentGUI.pro
 #############################################################################

-MOC       = /opt/local/share/moc
-UIC       = /opt/local/share/uic
+MOC       = moc-qt4
+UIC       = uic-qt4
 LEX       = flex
 LEXFLAGS  = 
 YACC      = yacc
 YACCFLAGS = -d
 DEFINES       = -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-INCPATH       = -I/opt/local/share/qt4/mkspecs/macx-xcode -I. -Irelease/moc -Isrc -I/opt/local/include/QtScript -I/opt/local/include/QtGui -I/opt/local/include/QtNetwork -I/opt/local/include/QtCore -I/opt/local/include -Irelease/uic -I/usr/local/include -I/System/Library/Frameworks/CarbonCore.framework/Headers
+INCPATH       = -I/usr/lib64/qt4/mkspecs/macx-xcode -I. -Irelease/moc -Isrc -I/usr/include/QtScript -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtCore -I/usr/include -Irelease/uic -I/usr/local/include -I/System/Library/Frameworks/CarbonCore.framework/Headers
 DEL_FILE  = rm -f
 MOVE      = mv -f

 IMAGES = 
 PARSERS =

 $ cat qt_makeqmake.mak.patch
--- UniversalIndentGUI.xcodeproj/qt_makeqmake.mak       2012-01-01 09:51:34.000000000 -0700
+++ UniversalIndentGUI.xcodeproj/qt_makeqmake.mak       2017-06-02 08:36:03.893421785 -0700
@@ -4,11 +4,11 @@
 # Project:  UniversalIndentGUI.pro
 # Template: app
 # Command: /opt/local/bin/qmake -spec /opt/local/share/qt4/mkspecs/macx-xcode -o UniversalIndentGUI.xcodeproj/project.pbxproj UniversalIndentGUI.pro
 #############################################################################

-QMAKE    = /opt/local/bin/qmake
+QMAKE    = /usr/bin/qmake-qt4
 UniversalIndentGUI.xcodeproj/project.pbxproj: UniversalIndentGUI.pro  /opt/local/share/qt4/mkspecs/macx-xcode/qmake.conf /opt/local/share/qt4/mkspecs/common/unix.conf \
                /opt/local/share/qt4/mkspecs/common/mac.conf \
                /opt/local/share/qt4/mkspecs/common/mac-g++.conf \
                /opt/local/share/qt4/mkspecs/qconfig.pri \
                /opt/local/share/qt4/mkspecs/modules/qt_webkit_version.pri \

I then ran qmake-qt4, and when that completed, make, and universalindentgui was in the release directory. When I run it, it runs nicely from there, but I can't seem to load any indent config files. I tried the uncrustify command from the help solution, uncrustify -c [config-file-name] --universalindentgui > uigui-uncrustify-config, but no dice. The file locator doesn't even show the file. And it also doesn't show hidden files, so I can't select them for other indenters either. There must be something I'm not doing properly.

At one point I saw a complaint that there were no indent files in /usr/share/universalindentgui, but the doc says it should run just fine from the build directory.

Maybe you'll have better luck. :-)