Open willupowers opened 7 years ago
Thanks for the feedback, will fix that soon.
2017-06-16 21:07 GMT+02:00 willupowers notifications@github.com:
Will not build. Have tried Qt5.7 and Qt4. Get the same error:
users-iMac:monkey user$ qmake -r -spec macx-g++ && make && make install Project MESSAGE: Building in RELEASE for Darwin-x86_64 Project MESSAGE: Generating src/main.h... /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/maininterface/ui/UIAbout.ui -o ../build/Darwin-x86_64/release/ui/ui_UIAbout.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/maininterface/ui/UISettings.ui -o ../build/Darwin-x86_64/release/ui/ui_UISettings.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/abbreviationsmanager/ui/UIAddAbbreviation.ui -o ../build/Darwin-x86_64/release/ui/ui_UIAddAbbreviation.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/templatesmanager/ui/UITemplatesWizard.ui -o ../build/Darwin-x86_64/release/ui/ui_UITemplatesWizard.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/pluginsmanager/ui/UIPluginsSettings.ui -o ../build/Darwin-x86_64/release/ui/ui_UIPluginsSettings.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/pluginsmanager/ui/UIPluginsSettingsElement.ui -o ../build/Darwin-x86_64/release/ui/ui_UIPluginsSettingsElement.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/pluginsmanager/ui/UIPluginsSettingsAbout.ui -o ../build/Darwin-x86_64/release/ui/ui_UIPluginsSettingsAbout.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/UIXUPFindFiles.ui -o ../build/Darwin-x86_64/release/ui/ui_UIXUPFindFiles.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/XUPProjectManager.ui -o ../build/Darwin-x86_64/release/ui/ui_XUPProjectManager.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/pluginsmanager/ui/UICLIToolSettings.ui -o ../build/Darwin-x86_64/release/ui/ui_UICLIToolSettings.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/workspace/pOpenedFileExplorer.ui -o ../build/Darwin-x86_64/release/ui/ui_pOpenedFileExplorer.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/CommandsEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_CommandsEditor.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/VariablesEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_VariablesEditor.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/UIXUPEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_UIXUPEditor.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/FilesEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_FilesEditor.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/xupmanager/gui/MainEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_MainEditor.h /usr/local/Cellar/qt@5.7/5.7.1/bin/uic src/consolemanager/CommandEditor.ui -o ../build/Darwin-x86_64/release/ui/ui_CommandEditor.h /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -stdlib=libc++ -std=c++11 -mmacosx-version-min=10.7 -O2 -std=gnu++11 -Wall -W -fPIC -DMONKEY_CORE_BUILD -DHAVE_REGCOMP -DHAVE_STDLIB_H -DHAVE_FGETPOS -DHAVE_SYS_STAT_H -DHAVE_FCNTL_H -DHAVE_REGEX -DHAVE_UNISTD_H -DHAVE_STRSTR -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MACEXTRAS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I../build/Darwin-x86_64/release/ui -Isrc -I../qscintilla/QScintilla-gpl-snapshot/include -I../qscintilla/QScintilla-gpl-snapshot/src -I../qscintilla/QScintilla-gpl-snapshot/lexers -I../qscintilla/QScintilla-gpl-snapshot/lexlib -I../qscintilla/QScintilla-gpl-snapshot/Qt4Qt5 -I../qscintilla/QScintilla-gpl-snapshot/Qt4Qt5/Qsci -I../fresh/objects -I../fresh/widgets -I../ctags/ctags -I../qCtagsSense/src -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtMacExtras.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtCore.framework/Headers -I../build/Darwin-x86_64/release/moc -I/Applications/Xcode.app/ Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/ Library/Frameworks/AGL.framework/Headers -I../build/Darwin-x86_64/release/ui -I/usr/local/Cellar/qt@5.7/5.7.1/mkspecs/macx-g++ -F/usr/local/Cellar/qt@5.7/5.7.1/lib -o ../build/Darwin-x86_64/release/obj/UIAbout.o src/maininterface/ui/UIAbout.cpp /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -stdlib=libc++ -std=c++11 -mmacosx-version-min=10.7 -O2 -std=gnu++11 -Wall -W -fPIC -DMONKEY_CORE_BUILD -DHAVE_REGCOMP -DHAVE_STDLIB_H -DHAVE_FGETPOS -DHAVE_SYS_STAT_H -DHAVE_FCNTL_H -DHAVE_REGEX -DHAVE_UNISTD_H -DHAVE_STRSTR -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MACEXTRAS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I../build/Darwin-x86_64/release/ui -Isrc -I../qscintilla/QScintilla-gpl-snapshot/include -I../qscintilla/QScintilla-gpl-snapshot/src -I../qscintilla/QScintilla-gpl-snapshot/lexers -I../qscintilla/QScintilla-gpl-snapshot/lexlib -I../qscintilla/QScintilla-gpl-snapshot/Qt4Qt5 -I../qscintilla/QScintilla-gpl-snapshot/Qt4Qt5/Qsci -I../fresh/objects -I../fresh/widgets -I../ctags/ctags -I../qCtagsSense/src -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtMacExtras.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt@5.7/5.7.1/lib/QtCore.framework/Headers -I../build/Darwin-x86_64/release/moc -I/Applications/Xcode.app/ Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/ Library/Frameworks/AGL.framework/Headers -I../build/Darwin-x86_64/release/ui -I/usr/local/Cellar/qt@5.7/5.7.1/mkspecs/macx-g++ -F/usr/local/Cellar/qt@5.7/5.7.1/lib -o ../build/Darwin-x86_64/release/obj/UISettings.o src/maininterface/ui/UISettings.cpp In file included from src/maininterface/ui/UISettings.cpp:19: In file included from src/maininterface/ui/UISettings.h:25: In file included from ../build/Darwin-x86_64/release/ui/ui_UISettings.h:40: ../fresh/widgets/ pEnvironmentVariablesEditor.h:23:10: fatal error: 'ui_pEnvironmentVariablesEditor.h' file not found #include "ui_pEnvironmentVariablesEditor.h" ^ 1 error generated. make: *** [../build/Darwin-x86_64/release/obj/UISettings.o] Error 1
Additionally Qt5.7 complains there is no C++11 support. To fix that I had to modify monkey.pro by adding:
QMAKE_CXXFLAGS += -stdlib=libc++ QMAKE_CXXFLAGS += -std=c++11 QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 QMAKE_LFLAGS += -mmacosx-version-min=10.7
Finally the documentation for installation says to use:
qmake -r -spec macx-g++ && make aa make install
This throws missing "aa" build target. Assuming below is correct:
qmake -r -spec macx-g++ && make && make install
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pasnox/monkeystudio2/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0YWf7Yc8HOKNLgg3AEdYfmCv3CkMdtks5sEtJigaJpZM4N80y_ .
Thanks for the response.
Am I missing something to make a successful build? I did try building v1.9.04 too, and I received the same error. Should I be building on Windows or an older version of Mac/Linux?
I guess it is a qmake regression / change. I remember having had this issues multiple times already, the generated ui_XXX.h files
2017-06-20 9:48 GMT+02:00 willupowers notifications@github.com:
Thanks for the response.
Am I missing something to make a successful build? I did try building v1.9.04 too, and I received the same error. Should I be building on Windows or an older version of Mac/Linux?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pasnox/monkeystudio2/issues/4#issuecomment-309672732, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0YWcYde6WJ1C4yzKj8qY0a2wGzQJ_pks5sF3k7gaJpZM4N80y_ .
I guess it is a qmake regression / change. I remember having had this issues multiple times already, the generated ui_XXX.h files path are not added to INCLUDEPATH. Hence the compiler can not find them. You could try forcing it yourself adding the path of the ui_XXX.h files to INCLUDEPATH
I will investigate that during the week, cheers,
2017-06-20 9:49 GMT+02:00 Filipe Azevedo pasnox@gmail.com:
I guess it is a qmake regression / change. I remember having had this issues multiple times already, the generated ui_XXX.h files
2017-06-20 9:48 GMT+02:00 willupowers notifications@github.com:
Thanks for the response.
Am I missing something to make a successful build? I did try building v1.9.04 too, and I received the same error. Should I be building on Windows or an older version of Mac/Linux?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pasnox/monkeystudio2/issues/4#issuecomment-309672732, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0YWcYde6WJ1C4yzKj8qY0a2wGzQJ_pks5sF3k7gaJpZM4N80y_ .
It seems there may be an include for an incorrect file name in "pEnvironmentVariablesEditor.h". There is no "ui_pEnvironmentVariablesEditor.h" that I can find.
include "ui_pEnvironmentVariablesEditor.h"
It appears commenting this out or changing to:
include "pEnvironmentVariablesEditor.h"
will move the build forward but only until the next couple lines in the header file
In file included from ../build/Darwin-x86_64/release/ui/ui_UISettings.h:40: ../fresh/widgets/pEnvironmentVariablesEditor.h:28:76: error: use of undeclared identifier 'Ui' class Q_MONKEY_EXPORT pEnvironmentVariablesEditor : public QWidget, public Ui::pEnvironmentVariablesEditor ^ ../fresh/widgets/pEnvironmentVariablesEditor.h:28:80: error: expected class name class Q_MONKEY_EXPORT pEnvironmentVariablesEditor : public QWidget, public Ui::pEnvironmentVariablesEditor ^ 2 errors generated. make: *** [../build/Darwin-x86_64/release/obj/UISettings.o] Error 1
To line 26:
22 #include "MonkeyExport.h" 23 #include "ui_pEnvironmentVariablesEditor.h" 24 #include "pEnvironmentVariablesModel.h" 25
26 class Q_MONKEY_EXPORT pEnvironmentVariablesEditor : public QWidget, public Ui::pEnvironmentVariablesEditor
This is a generated file from pEnvironmentVariablesEditor.ui so it will not appear in the project file as header.
2017-06-20 23:16 GMT+02:00 willupowers notifications@github.com:
Seems there is an include for an incorrect file name in "pEnvironmentVariablesEditor.h". There is no "ui_pEnvironmentVariablesEditor.h" that I can find.
include "ui_pEnvironmentVariablesEditor.h"
It appears commenting this out or changing to:
include "pEnvironmentVariablesEditor.h"
will move the build forward but only until the next line in the header file
In file included from ../build/Darwin-x86_64/ release/ui/ui_UISettings.h:40: ../fresh/widgets/pEnvironmentVariablesEditor.h:28:76: error: use of undeclared identifier 'Ui' class Q_MONKEY_EXPORT pEnvironmentVariablesEditor : public QWidget, public Ui::pEnvironmentVariablesEditor ^ ../fresh/widgets/pEnvironmentVariablesEditor.h:28:80: error: expected class name class Q_MONKEY_EXPORT pEnvironmentVariablesEditor : public QWidget, public Ui::pEnvironmentVariablesEditor ^ 2 errors generated. make: *** [../build/Darwin-x86_64/release/obj/UISettings.o] Error 1
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pasnox/monkeystudio2/issues/4#issuecomment-309894337, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0YWWJSIUfnGAAOUxe98wAY9vWUOq28ks5sGDbFgaJpZM4N80y_ .
Ah. That clears things up a little. But unlike this issue, for some reason it appears I'm not getting a generated ui_pEnvironmentVariablesEditor.h in my build/.../ui folder.. which would explain the no such file or directory error. I'm very inexperienced, but I'm not sure forcing an INCLUDEPATH to the UI build folder will do anything when that file appears to not be generated.
Also FYI, I get the exact same error when building in Windows too
This may be a long shot but if I recall correctly the Qt Creator IDE has three different means of specifying how the UI header files get included and getting the setting wrong can play havok that sounds a little like what you are getting - I found this out the hard way when I tweaked this for a large project I code for and found that there were a couple of forms that were rigged to use a different embedding system to the rest and the project didn't compile until I re-organised the inheritance and #includes
a bit...
Sorry I can't be more specific but it might be worth reading up on in the Qt documentation, whether it is something that qmake handles or your IDE will have to I do not know...
Got it, read about this at Qt Designer using a Ui file and compare and contrast the use of:
#include "ui_myform.h"
in the header of the class using the formFORMS += myForm.h
in the qmake project fileprivate: Ui::CalculatorForm ui;
instanceui.setup(this);
namespace Ui { class MyForm; }
virtual ~MyForm{};
private: Ui::CalculatorForm * ui;
pointer to instanceui->setup(this);
MyForm::~MyForm() { delete ui; }
#include "ui_myform.h"
in the header of the class using the formFORMS += myForm.h
in the qmake project filesetup(this);
Maybe that will help you to work out which you have and which it should be - if you do change things it might be a good idea to clear out all the ui_*.h
and moc_*
files from the build directory as well, as make clean
may not catch all of them after a qmake
run rebuilds the Makefile
and forgets about some of them...
Will not build on Mac OS X El Capitan 10.11.6 or Ubuntu 17.04. Have tried Qt5.7 and Qt4 with version 2 and release 1.9.04. Appears to be the same unresolved issue experienced here in 2013.
I always get the same error:
Additionally Qt5.7 complains there is no C++11 support. To fix that I had to modify monkey.pro by adding:
Finally the documentation for installation says to use:
qmake -r -spec macx-g++ && make aa make install
This throws missing "aa" build target. Assuming below is correct:
qmake -r -spec macx-g++ && make && make install