Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-22 Thread Tony Rietwyk
Thanks Israel, 

I have done that for my application.  The problem is that it also uses
Assistant, which on Mac requires webkit.  

It's pretty silly - there doesn't seem to be a supported way of stopping
webkit from being in QT_CONFIG on Mac!  

Regards, 

Tony

 Sent: Tuesday, 23 April 2013 1:56 AM
 
 If your goal is simply to get an app into the mac app store without using
 webkit, there is no need to build Qt without webkit - simply don't use
webkit
 in your project. I have several Qt based apps in the app store, not using
 webkit, even though I built qt with webkit. At least, I'm fairly sure they
don't
 include webkit :-)
 
 Israel Brewster


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-22 Thread Michael Jackson
Interesting. I went and actually looked at what was being built and QtWebKit is 
being built in my configuration. And Assistant is actually using that library. 
I guess since I start the build and go to sleep I never noticed if it was being 
built or not. I don't link against it for my application so I never really 
noticed.

I stand corrected.
Mike Jackson

On Apr 22, 2013, at 12:46 PM, Tony Rietwyk wrote:

 Thanks Israel, 
 
 I have done that for my application.  The problem is that it also uses
 Assistant, which on Mac requires webkit.  
 
 It's pretty silly - there doesn't seem to be a supported way of stopping
 webkit from being in QT_CONFIG on Mac!  
 
 Regards, 
 
 Tony
 
 Sent: Tuesday, 23 April 2013 1:56 AM
 
 If your goal is simply to get an app into the mac app store without using
 webkit, there is no need to build Qt without webkit - simply don't use
 webkit
 in your project. I have several Qt based apps in the app store, not using
 webkit, even though I built qt with webkit. At least, I'm fairly sure they
 don't
 include webkit :-)
 
 Israel Brewster
 
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-21 Thread Michael Jackson
This is what I use on OS X 10.6.8 and 10.8 builds using the Qt 4.8.4 
everywhere source package.

./configure -opensource -nomake demos -nomake examples -debug-and-release 
-shared -fast -exceptions -stl -no-qt3support  -no-webkit -no-phonon -largefile 
-arch x86_64  -prefix /Users/Shared/Toolkits/Qt-4.8.4 -Dmmacosx-version-min=10.6

And I definitely do NOT get WebKit built and it builds just fine. From what I 
can tell.

Mike Jackson

On Apr 20, 2013, at 12:16 AM, Tony Rietwyk t...@rightsoft.com.au wrote:

 Hi Everybody, 
 
 It seems this is not possible,  -no-webkit is marked as Windows only in the
 configure options docs,  why is that?  If Qt was smart enough to link to the
 system webkit on Mac, it might make sense, but that doesn't happen.  
 
 I would like to distribute my app via the Apple app store without qtwebkit,
 and with qtassistant using QTextBrowser.  This combination works well on
 Windows, yet QtAssistant will not build if -no-webkit is specified on the
 configure line on Mac.  I have also tried running configure as normal, then
 defining QT_NO_WEBKIT, and re-running the assistant makefile with -B.  The
 assistant runs but still uses webkit.  I can tell that since our help css
 has first-child selectors in it, and they are working on Mac, but on Windows
 QTextBrowser ignores them. 
 
 As a last resort, I could hack the supplied the assistant.pro to force it to
 use QTextBrowser. 
 
 I am using Qt 4.8.4, and gcc shows i686-apple-darwin11-llvm-gcc-4.2 on OSX
 10.7.5. 
 
 Thanks for any suggestions! 
 
 Tony
 
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-21 Thread Tony Rietwyk
Thanks for the response Mike, 

My configure used against expanded qt-everywhere-commercial-src-4.8.4.tar.gz
is:

./configure -arch x86 -no-qt3support -no-webkit   -nomake examples -nomake
demos  -sdk
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
er/SDKs/MacOSX10.6.sdk

- The configure shows the makefile for webkit being generated
- webcore, etc modules are built by make
- assistant.pro forces the use of helpviewer_qwv.cpp which uses webkit.  

Very strange! 

I've tried Philippe's suggestion to remove webkit from src/3rdparty before
configure with -no-webkit, but that crashes early in make trying to do qmake
on webkit.pro after forcing the src/3rdparty/webkit to be created!?  

I spoke too soon about my hacked assistant.pro working - it builds, but it
seems there are lots of problems with the body font and line sizing issues
using QTextBrowser on Mac?  

Regards, 

Tony

 Sent: Sunday, 21 April 2013 11:53 PM
 
 This is what I use on OS X 10.6.8 and 10.8 builds using the Qt 4.8.4
 everywhere source package.
 
 ./configure -opensource -nomake demos -nomake examples -debug-and-
 release -shared -fast -exceptions -stl -no-qt3support  -no-webkit -no-
 phonon -largefile -arch x86_64  -prefix /Users/Shared/Toolkits/Qt-4.8.4 -
 Dmmacosx-version-min=10.6
 
 And I definitely do NOT get WebKit built and it builds just fine. From
what I
 can tell.
 
 Mike Jackson
 
 On Apr 20, 2013, at 12:16 AM, Tony Rietwyk t...@rightsoft.com.au wrote:
 
  Hi Everybody,
 
  It seems this is not possible,  -no-webkit is marked as Windows only
  in the configure options docs,  why is that?  If Qt was smart enough
  to link to the system webkit on Mac, it might make sense, but that
doesn't
 happen.
 
  I would like to distribute my app via the Apple app store without
  qtwebkit, and with qtassistant using QTextBrowser.  This combination
  works well on Windows, yet QtAssistant will not build if -no-webkit is
  specified on the configure line on Mac.  I have also tried running
  configure as normal, then defining QT_NO_WEBKIT, and re-running the
  assistant makefile with -B.  The assistant runs but still uses webkit.
  I can tell that since our help css has first-child selectors in it,
  and they are working on Mac, but on Windows QTextBrowser ignores them.
 
  As a last resort, I could hack the supplied the assistant.pro to force
  it to use QTextBrowser.
 
  I am using Qt 4.8.4, and gcc shows i686-apple-darwin11-llvm-gcc-4.2 on
  OSX 10.7.5.
 
  Thanks for any suggestions!
 
  Tony
 
 
  ___
  Interest mailing list
  Interest@qt-project.org
  http://lists.qt-project.org/mailman/listinfo/interest
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-20 Thread Philippe
The only reliable way not to use webkit on both Mac and Windows, is to
erase the webkit* folders before configure.

Philippe

On Sat, 20 Apr 2013 16:00:47 +1000
Tony Rietwyk t...@rightsoft.com.au wrote:

 Hacking the assistant.pro file to comment out relevant lines using
 contains(QT_CONFIG, webkit), and adding: 
 
   defines += QT_NO_WEBKIT
 
 then running the normal Qt configure and make seems to work well.  otool
 confirms that Assistant is not using webkit. 
 
 I'm still curious about the rationale for the -no-webkit configure option
 only being for Windows though! 
 
 Tony 
 
  Sent: Saturday, 20 April 2013 2:17 PM
  
  Hi Everybody,
  
  It seems this is not possible,  -no-webkit is marked as Windows only in
 the
  configure options docs,  why is that?  If Qt was smart enough to link to
 the
  system webkit on Mac, it might make sense, but that doesn't happen.
  
  I would like to distribute my app via the Apple app store without
 qtwebkit,
  and with qtassistant using QTextBrowser.  This combination works well on
  Windows, yet QtAssistant will not build if -no-webkit is specified on the
  configure line on Mac.  I have also tried running configure as normal,
 then
  defining QT_NO_WEBKIT, and re-running the assistant makefile with -B.  The
  assistant runs but still uses webkit.  I can tell that since our help css
 has first-
  child selectors in it, and they are working on Mac, but on Windows
  QTextBrowser ignores them.
  
  As a last resort, I could hack the supplied the assistant.pro to force it
 to use
  QTextBrowser.
  
  I am using Qt 4.8.4, and gcc shows i686-apple-darwin11-llvm-gcc-4.2 on OSX
  10.7.5.
  
  Thanks for any suggestions!
  
  Tony
 
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Building qt4 on mac with -no-webkit

2013-04-19 Thread Tony Rietwyk
Hi Everybody, 

It seems this is not possible,  -no-webkit is marked as Windows only in the
configure options docs,  why is that?  If Qt was smart enough to link to the
system webkit on Mac, it might make sense, but that doesn't happen.  

I would like to distribute my app via the Apple app store without qtwebkit,
and with qtassistant using QTextBrowser.  This combination works well on
Windows, yet QtAssistant will not build if -no-webkit is specified on the
configure line on Mac.  I have also tried running configure as normal, then
defining QT_NO_WEBKIT, and re-running the assistant makefile with -B.  The
assistant runs but still uses webkit.  I can tell that since our help css
has first-child selectors in it, and they are working on Mac, but on Windows
QTextBrowser ignores them. 

As a last resort, I could hack the supplied the assistant.pro to force it to
use QTextBrowser. 

I am using Qt 4.8.4, and gcc shows i686-apple-darwin11-llvm-gcc-4.2 on OSX
10.7.5. 

Thanks for any suggestions! 

Tony


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest