[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Assigned to:None = cazfi ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #17, bug #18200 (project freeciv): Marko, thank you for feedback. I'll upload an updated patch later today. - qt5-darwin.m4 needs to be added to Makefile.am I'll do. - In FC_QT5_DARWIN_COMPILETEST value of CPPFADD seems suspicious (but I don't have Mac to test this) in case of default path (no $1 given). Does it really not need any of those -D)efined macros that you give with custom path case? - Similarly FC_QT5_DARWIN_LINKTEST / LIBSADD seems completely different in case of default path compared to custom path case I suppose we should remove cases of empty path because the build process will fall if the QT path was not specified. Moreover there is no way find QT framework if it was not specified by command line. I will not run any checks if the path to framework was not been specified. - /Users/al/ seems like your own path, not something that we can use as a default This is a sad mistake. I'm really sorry for that. ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Status: In Progress = Ready For Test ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #18, bug #18200 (project freeciv): New patch uploaded. There are 2 major changes besides fixes promised. ([https://gna.org/bugs/download.php?file_id=24404 file#24404) Summary of changes: 1) (General) Actually FC_QT5 is called three times during autoconfig. I've replaced FC_QT5 with a wrap function. It will call FC_QT5_DARWIN or FC_QT5_GENERIC(ex. FC_QT5) once only. 2) (Darwin only) It will try to find Qt framework path if it was not be specified via command line. 3) (bugfix) Makefile.am updated 4) (bugfix) Reference to my $HOME removed. 5) (Darwin only) Cleanup unused code. ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Additional Item Attachment, bug #18200 (project freeciv): File name: Qt5FrameworkDetect_18200_4.patch Size:3 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Status: Ready For Test = In Progress ___ Follow-up Comment #16: - qt5-darwin.m4 needs to be added to Makefile.am - In FC_QT5_DARWIN_COMPILETEST value of CPPFADD seems suspicious (but I don't have Mac to test this) in case of default path (no $1 given). Does it really not need any of those -D)efined macros that you give with custom path case? - Similarly FC_QT5_DARWIN_LINKTEST / LIBSADD seems completely different in case of default path compared to custom path case - /Users/al/ seems like your own path, not something that we can use as a default ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Additional Item Attachment, bug #18200 (project freeciv): File name: Qt5FrameworkDetect_18200_3.patch Size:4 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #15, bug #18200 (project freeciv): Hi everybody, My name is Alexey Novikov, I'm new to freeciv project. I'm C++ and Qt developer ( and civ-fan, of course :) Seems like I've resolved this problem. The point is setup correct paths. (Normally it is the job for qmake). Fortunately this paths is immutable with respect to Qt framework installation directory. Therefore user should specify pat to qt root directory only instead of separate paths to includes and libraries. This path should be used to locate moc executable also. I created the new m4 rule for Qt5 on MacOS X. (N.B. It will NOT work with Qt4). Tested on MacOS 10.10 (compilation succeed on Linux also). (file#24111 https://gna.org/bugs/download.php?file_id=24111) Honestly I don't think this is a great solution. I believe It would be better to let qmake do it's job. However it would be not easy to integrate libel into Qt project. So I thing this solution is quite good at the moment. ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Category:None = bootstrap Status:None = Ready For Test Assigned to: cazfi = None Planned Release: = 2.5.1, 2.6.0, 3.0.0 ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Planned Release: 2.4.0 = ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #14, bug #18200 (project freeciv): This looks stalled. Since it looks like it only affects the Qt client, which isn't in an interesting state in S2_4, I'm inclined to remove the 2.4.0 release target. ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #13, bug #18200 (project freeciv): I finally got a useful reply back from the Qt forum. 'libQtGui' exists in the framework as '/Library/Frameworks/QtGui.framework/Versions/4/QtGui'. Interestingly, when i do a locate for that, i get a hundred hits, including every header file in /Library/Frameworks/QtGui.framework/Headers/ . ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Additional Item Attachment, bug #18200 (project freeciv): File name: config-QtFrameworkDetect_18200-2.log Size:102 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Depends on: = bugs #18227 ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #9, bug #18200 (project freeciv): Neither locate command gets a result. Strangely enough when i manually inspect QtGui.framework, it has no libQtGui or anything remotely like that. Other than the headers and XML file, i only see this: ls -R /Library/Frameworks/QtGui.framework/Versions/4/Resources: qt_menu.nib /Library/Frameworks/QtGui.framework/Versions/4/Resources/qt_menu.nib: classes.nib info.nib keyedobjects.nib ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #10, bug #18200 (project freeciv): I wonder if we could check where qmake finds the libraries. Can you send me some makefile generated by qmake? ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #11, bug #18200 (project freeciv): Looking at the makefile, it seems i was partially mistaken: there *is* some Qt stuff in /usr/include. QtUiTools/quiloader.h QtUiTools/QUiLoader QtUiTools/QtUiTools I don't see a corresponding directory for SDL, though. (file #13213) ___ Additional Item Attachment: File name: Makefile Size:10 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Follow-up Comment #12, bug #18200 (project freeciv): That Makefile was very helpful, thank you. I noticed that it passes to compiler some parameters that I cannot find from any gcc documentation. My guess is that Mac OS gcc/g++ is modified special version, and you really need that to use frameworks. So to make configure *right* we should first check if compiler in use supports frameworks at all. Attached patch is more like quick hack to help testing what works and what not. It tries to set number of options that the qmake generated Makefile seemed to set, but not all of them. (file #13215) ___ Additional Item Attachment: File name: QtFrameworkDetect_18200-2.diff Size:1 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #18200] Configure does not support Mac OS Framework-style Qt installation
Update of bug #18200 (project freeciv): Planned Release: = 2.4.0 Summary: Configure is unable to detect frameworks = Configure does not support Mac OS Framework-style Qt installation ___ Follow-up Comment #8: I've been splitting this one to several tickets. This ticket handles configure check for Framework Qt-installation. Attached is first related patch. Based on information I've got so far it tries to detect and setup include paths correctly. So if it works correctly, you don't need to set CXXFLAGS or CPPFLAGS from commandline. It also has similar implementation for library path setting, but as we still don't know what the correct paths are, this is more than likely not to work. - Test program compilation failure from comment #6 comment #7 is now handled in bug #18227. Please comment patch from comment #7 in that ticket - Framework SDL-installation detection is handled in bug #18228 (file #13203) ___ Additional Item Attachment: File name: QtFrameworkDetect_18200.diff Size:1 KB ___ Reply to this item at: http://gna.org/bugs/?18200 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev