I’ll fix it properly, thanks for bringing this to my knowledge. But I need to review the patch before I can say I really have all needed data, and pretty busy to do it now, sorry.
We don’t force users to use QTDIR anymore and I’ve personally written that system off, so I suppose I’m best person to fix this thing I wasn’t aware of? :) On Thursday 24 February 2011 14:31:35 Michael Douglass wrote: > Samu, > > This fix is the best I can find short of first getting Qt to integrate a fix > for the fact that THEY are not putting the qt_menu.nib files in the proper > place. Thus this fix only works if you compile Qt from source and then QtJambi against that Qt source using the QTDIR. Given the fact that Qt does not "install" these files properly, building from an installed version of Qt can never find these files. You must go to a source repository to get them. > > That said, the way this is implemented, if QTDIR is not set, you'll get a > warning to STDERR and the process will work as before. Therefore, accepting > this patch should not cause any undue harm. The downside is that it won't work on the Mac without QTDIR set because of what I said above -- but, it's no different than now in that case either. > > Thanks, > Michael > > > -----Original Message----- > > From: qt-jambi-interest-bounces+mikedoug=phmgmt....@qt.nokia.com > > [mailto:qt-jambi-interest-bounces+mikedoug=phmgmt....@qt.nokia.com] > > On Behalf Of Samu Voutilainen > > Sent: Thursday, February 24, 2011 1:37 PM > > To: qt-jambi-interest@qt.nokia.com > > Subject: Re: [Qt-jambi-interest] qtjambi compilation for macosx > > > > Our mysqld has seems like crashed... stupid OOMs. Site up now. > > > > QTDIR is most of time not used, so this patch is not really good. But if you > > can tell what it is, we can do proper fix for it :) I’ll look the MR. > > > > On Thursday 24 February 2011 13:00:20 Michael Douglass wrote: > > > The qt-jambi.org website is down with a database error right now, so I'm > > not filing a bug. > > > > > > However, I did branch the git repository yesterday and I've committed > > > a patch that "fixes" this in a relatively automated manner. As long > > > as QTDIR is set, the > > PlatformJarTask will copy the qt_menu.nib bits into the right place. I've > > requested a merge on this patch. > > > > > > Thanks, > > > Michael > > > > > > > -----Original Message----- > > > > From: qt-jambi-interest- > > bounces+mikedoug=phmgmt....@qt.nokia.com > > > > [mailto:qt-jambi-interest- > > bounces+mikedoug=phmgmt....@qt.nokia.com] > > > > On Behalf Of Samu Voutilainen > > > > Sent: Wednesday, February 23, 2011 2:50 PM > > > > To: qt-jambi-interest@qt.nokia.com > > > > Subject: Re: [Qt-jambi-interest] qtjambi compilation for macosx > > > > > > > > If you want me to do it, file a bug about it with exact details what you > > need. > > > > > > > > On Wednesday 23 February 2011 13:23:17 Michael Douglass wrote: > > > > > All, > > > > > > > > > > What I did as a "quick fix" to test it working was to manually > > > > > copy the qt_menu.nib files into the > > > > > build/platform-output/lib/Resources > > > > > directory, and then I patched > > > > PlatformJarTask to add "library" lines as below: > > > > > > > > > > RCS file: PlatformJarTask.java,v > > > > > retrieving revision 1.1 > > > > > diff -c -r1.1 PlatformJarTask.java > > > > > *** PlatformJarTask.java 2011/02/23 18:46:22 1.1 > > > > > --- PlatformJarTask.java 2011/02/23 18:47:37 > > > > > *************** > > > > > *** 229,234 **** > > > > > --- 229,240 ---- > > > > > } > > > > > } > > > > > > > > > > + // Include any resources! > > > > > + writer.println(" <!-- These aren't really libraries, > > > > > + they are resources - > > > > flagged with load=never for safety! -->"); > > > > > + writer.println(" <library > > > > name=\"lib/Resources/qt_menu.nib/classes.nib\"/>"); > > > > > + writer.println(" <library > > > > name=\"lib/Resources/qt_menu.nib/info.nib\"/>"); > > > > > + writer.println(" <library > > > > > + name=\"lib/Resources/qt_menu.nib/keyedobjects.nib\"/>"); > > > > > + > > > > > // plugins... > > > > > if ( pluginPaths.size() > 0 ) { > > > > > writer.println ( "\n <!-- Plugins... -->" ); > > > > > > > > > > > > > > > > > > > > This is not a fully optimal solution as it requires manual > > > > > copying, and it overloads the concept of a <library> entry in the > > > > > deployment.xml to also mean "this is a resource I > > > > want copied over". But, it got me where I need to be for now, and > > > > this information may help others. If I get some time I may sit down > > > > and do a more complete solution by adding a <resource> tag to the > > > > deployment xml file and adding support for it into the > > > > NativeLibraryManager.java to processes this XML file. Oh, and find > > > > a way to automatically copy the resource files from the Qt source. > > > > It's still a bug that Qt itself doesn't deploy these files -- but > > > > like I said originally, I'm just concerned with the correctness of > > > > QtJambi > > working for me. > > > > > > > > > > As of right now, I have a QtJambi 4.7.1 compiled and working > > > > > (mostly) for Mac. The only thing that I immediately see as broken > > > > > in my app is the 'close' buttons on a set of > > > > tabs we use. I'm hoping that's just a change in slots/signals > > > > between 4.6 and 4.7. > > > > > > > > > > Thanks, > > > > > Michael > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: qt-jambi-interest- > > > > bounces+mikedoug=phmgmt....@qt.nokia.com > > > > > > [mailto:qt-jambi-interest- > > > > bounces+mikedoug=phmgmt....@qt.nokia.com] > > > > > > On Behalf Of Samu Voutilainen > > > > > > Sent: Wednesday, February 23, 2011 12:50 PM > > > > > > To: qt-jambi-interest@qt.nokia.com > > > > > > Subject: Re: [Qt-jambi-interest] qtjambi compilation for macosx > > > > > > > > > > > > Answer is simple, but doing it may not be so... > > > > > > > > > > > > There is PlatformJarTask that writes deployment spec xml file > > > > > > that is inside native jar, and copies the files and this spec to > > > > > > a dir and then creates a jar from that dir. > > > > > > > > > > > > There is separate sections for each platform that could be use > > > > > > for specifying platform dependent things like this. I’ve used > > > > > > those for > > > > MinGW support. > > > > > > > > > > > > Feel free to write whole system from scratch if you want :) > > > > > > > > > > > > On Wednesday 23 February 2011 12:19:19 Michael Douglass wrote: > > > > > > > Okay, I've done some work on finding the right way to fix this... > > > > > > > I see what I need to do, but I just don't know how to fix it > > > > > > > the right way, and I think some of you may know > > > > > > what I should do when I give the information that I've gathered. > > > > > > One thing to note is that the "workaround" provided for in > > > > > > QTBUG-5952 doesn't work fully as it mucks up the default "mac" > > > > > > system menu for your application -- oh, and the menu items that > > > > > > do > > > > appear just don't work. > > > > > > > > > > > > > > The problem *is* with the qt_menu.nib data not being copied over. > > > > > > > Sure, it's a Qt bug, but I'm a QtJambi user and I'd like to > > > > > > > make it work for QtJambi and that's all that I > > > > > > care about. > > > > > > > > > > > > > > When I run my QtJambi application, it extracts a bunch of > > > > > > > files into > > > > > > > $TMPDIR/QtJambi_username_i386.4.7.1_gcc-20110223-1153/ -- > > > > > > > mainly all of the dylib files the system > > > > > > will need. The fix for this bug is to place the qt_menu.nib > > > > > > directory (from the Qt source code) into the "lib/Resources" > > > > > > subdirectory. QtJambi is perfectly happy once those files exist. > > > > > > (It works when I manually copy the files into place and then run > > > > > > my > > > > > > application.) > > > > > > > > > > > > > > The question is: How do I get QtJambi to include those files > > > > > > > in the JAR and > > > > > > then extract them along side the dylib files? > > > > > > > > > > > > > > Thanks, > > > > > > > Michael > > > > > > > > > > > > > > From: qt-jambi-interest-boun...@trolltech.com > > > > > > > [mailto:qt-jambi-interest-boun...@trolltech.com] On Behalf Of > > > > > > > Benoit DECHERF > > > > > > > Sent: Tuesday, September 21, 2010 6:18 AM > > > > > > > To: s...@smar.fi > > > > > > > Cc: qt-jambi-inter...@trolltech.com > > > > > > > Subject: Re: [Qt-jambi-interest] qtjambi compilation for > > > > > > > macosx > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > So, after some try, It compiles !! > > > > > > > But it doesn't work at runtime: the qt_menu.nib is missing ! > > > > > > > It seems that it is this bug: > > > > > > > http://bugreports.qt.nokia.com/browse/QTBUG-5952 > > > > > > > What is the workaround ? I can't understand how it can work > > > > > > > without this > > > > > > file, or how can I provide it ? > > > > > > > > > > > > > > Thanks, > > > > > > > Benoit > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2010/9/16 Samu Voutilainen > > <s...@smar.fi<mailto:s...@smar.fi>> > > > > > > > On Sunday 12 September 2010 10:10:08 Benoit DECHERF wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > I can't compile qtjambi on macosx 10.6. > > > > > > > > The error is: > > > > > > > > library.native.bundle: > > > > > > > > Processing Mac OS X install_name... > > > > > > > > - updating: libQtCore.4.dylib > > > > > > > > install_name_tool: can't open file: /libQtCore.4.dylib (No > > > > > > > > such file or > > > > > > > > directory) > > > > > > > > Running: 'install_name_tool, -change, libQtCore.4.dylib, > > > > > > > > @loader_path/..//libQtCore.4.dylib, /libQtCore.4.dylib' failed. > > > > > > > > at com.trolltech.tools.ant.Exec.exec(Exec.java:92) > > > > > > > > at > > > > > > > > com.trolltech.tools.ant.PlatformJarTask.processOSXInstallNam > > > > > > > > e(Pl > > > > > > > > atfo > > > > > > > > rmJarTask.java:538) > > > > > > > > > > > > > > > > subdir seems to be never initialized in this LibraryEntry ? > > > > > > > > Using absoluteSourcePath of relativePath make it compile. > > > > > > > > > > > > > > > > But it still fail at runtime (it also fail with 4.6.3, with > > > > > > > > another > > error): > > > > > > > > > > > > > > > > With 4.7: > > > > > > > > ------- > > > > > > > > Exception in thread "main" > > > > > > > > java.lang.ExceptionInInitializerError > > > > > > > > at > > > > > > > > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:6 > > > > > > > > 0) Caused by: java.lang.RuntimeException: Loading library > > > > > > > > failed, progress so > > > > > > > > far: > > > > > > > > Unpacking .jar file: 'qtjambi-platform-mac32-4.7.0.jar' > > > > > > > > ... > > > > > > > > Caused by: java.lang.RuntimeException: Failed to unpack > > > > > > > > native libraries, progress so far: > > > > > > > > Unpacking .jar file: 'qtjambi-platform-mac32-4.7.0.jar' > > > > > > > > ... > > > > > > > > Caused by: java.io.FileNotFoundException: Library > > > > > > 'lib/./libQtCore.4.dylib' > > > > > > > > specified in qtjambi-deployment.xml in > > > > > > > > 'qtjambi-platform-mac32- > > > > > > 4.7.0.jar' > > > > > > > > does not exist > > > > > > > > at > > > > > > > > > > > > > > > > > > > > com.trolltech.qt.internal.NativeLibraryManager.unpackDeploymentSpec( > > > > > > > > NativeLibraryManager.java:563) > > > > > > > > ------- > > > > > > > > > > > > > > > > And on 4.6.3: > > > > > > > > ------- > > > > > > > > Caused by: java.lang.UnsatisfiedLinkError: > > > > > > > > /private/var/folders/Uf/UfZqSqB8E8SIKY7m7qyrsk+++TI/-Tmp- > > > > > > /QtJambi_benoitdecherf_x86_64_4.6.3_gcc-20100817- > > > > > > 1815/lib/libQtGui.4.dylib: > > > > > > > > Library not loaded: /opt/local/lib/libpng12.0.dylib > > > > > > > > Referenced > > from: > > > > > > > > /private/var/folders/Uf/UfZqSqB8E8SIKY7m7qyrsk+++TI/-Tmp- > > > > > > /QtJambi_benoitdecherf_x86_64_4.6.3_gcc-20100817- > > > > > > 1815/lib/libQtGui.4.dylib > > > > > > > > Reason: image not found > > > > > > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > > > > > > > > ------- > > > > > > > > > > > > > > > > > > > > > > > > Benoit > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > Sorry that answer is this late, but myself I don't know > > > > > > > anything about > > > > > > Mac... > > > > > > > > > > > > > > "I cannot try it right now, but if he's compiling 4.7 with the > > > > > > > code we modified to make the generator be able to use bundles > > > > > > > in the system, we haven't finished yet. Anyway, he can try to > > > > > > > edit qtjambi-deployment.xml file inside > > > > > > > qtjambi-platform-mac32-4.7.0.jar and try to correct the paths > > > > > > > in there > > > > to the files inside the jar. > > > > > > > > > > > > > > Second error is that he's using my libraries that tries to > > > > > > > access libpng on /opt/local (because I used MacPorts to > > > > > > > compile them) Maybe we should warn / remove those libs..." > > > > > > > > > > > > > > So I think I'll need a bit more information about your problem > > > > > > > in order to > > > > > > get it solve solved. You can just talk to me at our IRC channel too. > > > > > > > -- > > > > > > > Terveisin, > > > > > > > Samu Voutilainen > > > > > > > http://smar.fi > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Qt-jambi-interest mailing list > > > > > > > qt-jambi-inter...@trolltech.com<mailto:Qt-jambi- > > > > > > inter...@trolltech.com > > > > > > > > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interes > > > > > > > > t > > > > > > > > > > > > > -- > > > > > > Terveisin, > > > > > > Samu Voutilainen > > > > > > http://smar.fi > > > > > > _______________________________________________ > > > > > > Qt-jambi-interest mailing list > > > > > > Qt-jambi-interest@qt.nokia.com > > > > > > http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest > > > > > > > > > -- > > > > Terveisin, > > > > Samu Voutilainen > > > > http://smar.fi > > > > _______________________________________________ > > > > Qt-jambi-interest mailing list > > > > Qt-jambi-interest@qt.nokia.com > > > > http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest > > > > > -- > > Terveisin, > > Samu Voutilainen > > http://smar.fi > > _______________________________________________ > > Qt-jambi-interest mailing list > > Qt-jambi-interest@qt.nokia.com > > http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest > -- Terveisin, Samu Voutilainen http://smar.fi _______________________________________________ Qt-jambi-interest mailing list Qt-jambi-interest@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest