modern version for mac os

Andrew Ho andrewho at animezone.org
Sun Aug 12 21:22:21 BST 2018


Hello jack,

There are 100 files in /Applications/kmymoney.app/Contents/PlugIns/ need 
to be fixed.

This is what I tested to relocate two libraries.

*****
## These are the commands I typed in the terminal.
cd /Applications/kmymoney.app/Contents/PlugIns

find . -type f | wc -l
#output
100

x=`otool -L -v kcm_kio.so | grep packaging | sed 
's|/Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/| |' | sed  
's|(compatibility version 5.0.0, current version 5.48.0)| |'`

for one in $x ; do install_name_tool -change 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/${one} 
../Frameworks/${one} kcm_kio.so; done

otool -L -v kcm_kio.so

#Output
kcm_kio.so:
         ../Frameworks/libKF5KIOWidgets.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5TextWidgets.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5KIOCore.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         @rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility 
version 5.11.0, current version 5.11.1)
         @rpath/QtConcurrent.framework/Versions/5/QtConcurrent 
(compatibility version 5.11.0, current version 5.11.1)
         ../Frameworks/libKF5JobWidgets.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5Completion.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5IconThemes.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5ConfigWidgets.5.dylib (compatibility 
version 5.0.0, current version 5.48.0)
         ../Frameworks/libKF5ConfigGui.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5Codecs.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5Auth.5.dylib (compatibility version 5.0.0, 
current version 5.48.0)
         ../Frameworks/libKF5ItemViews.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5WidgetsAddons.5.dylib (compatibility 
version 5.0.0, current version 5.48.0)
         ../Frameworks/libKF5Service.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5ConfigCore.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../Frameworks/libKF5I18n.5.dylib (compatibility version 5.0.0, 
current version 5.48.0)
         @rpath/QtXml.framework/Versions/5/QtXml (compatibility version 
5.11.0, current version 5.11.1)
         ../Frameworks/libKF5CoreAddons.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         @rpath/QtDBus.framework/Versions/5/QtDBus (compatibility 
version 5.11.0, current version 5.11.1)
         ../Frameworks/libKF5SonnetUi.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         @rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility 
version 5.11.0, current version 5.11.1)
         @rpath/QtGui.framework/Versions/5/QtGui (compatibility version 
5.11.0, current version 5.11.1)
         @rpath/QtCore.framework/Versions/5/QtCore (compatibility 
version 5.11.0, current version 5.11.1)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current 
version 120.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
current version 1226.10.1)

cd ./kf5

x=`otool -Lv KEmoticonsIntegrationPlugin.so | grep packaging | sed 
's|/Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/| |' | sed  
's|(compatibility version 5.0.0, current version 5.48.0)| |'`

for one in $x ; do install_name_tool -change 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/${one} 
../../Frameworks/${one} KEmoticonsIntegrationPlugin.so; done

 > /Applications/kmymoney.app/Contents/PlugIns/kf5

otool -Lv KEmoticonsIntegrationPlugin.so

#output
KEmoticonsIntegrationPlugin.so:
         ../../Frameworks/libKF5Emoticons.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         @rpath/QtGui.framework/Versions/5/QtGui (compatibility version 
5.11.0, current version 5.11.1)
         ../../Frameworks/libKF5Service.5.dylib (compatibility version 
5.0.0, current version 5.48.0)
         ../../Frameworks/libKF5CoreAddons.5.dylib (compatibility 
version 5.0.0, current version 5.48.0)
         ../../Frameworks/libKF5ConfigCore.5.dylib (compatibility 
version 5.0.0, current version 5.48.0)
         @rpath/QtCore.framework/Versions/5/QtCore (compatibility 
version 5.11.0, current version 5.11.1)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current 
version 120.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
current version 1226.10.1)

***

I think a script needs to add to the build system for fixing the 
relocation of the path during build.

It is difficult to guess what the "illegal instruction" means without 
the proper linked libraries.

The links are broken if all the files are relocate in a MacOS 
application structure folder.  This is the beauty of MacOS.


Regards,

Andrew

--

On 2018-08-12 10:16 AM, Jack wrote:
> Hello Andrew,
>
> It looks like possibly multiple problems, although they might actually 
> be related.
>
> I don't have a Mac, but is there perhaps a missing step of 
> "installation?"  The missing plugin errors say that KMM can't find 
> it's plugins.  Note it is looking for all plugins under 
> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/...' but you ran 
> it from /Applications/kmymoney.app/Contents/MacOS/.   First see if 
> there is a Plugins folder under that MacOS folder.  If so, a temporary 
> workaround might be to move it one level up.  If that works, then I 
> don't know if there is a configuration issue on the build system, or a 
> packaging issue, or a problem with the install process.
>
> I do see some "Library not loaded" messages, and the path 
> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/... refers to 
> the build system.  It seems likely due to a different but similar 
> issue as with the pluging problem above.
>
> However - that final "illegal instruction" might indicate a separate 
> problem, as KMM should simply exit cleanly if it can't find the plugins.
>
> As I said, I'm mostly guessing when it comes to MacOS.  One of the 
> folks who does will either confirm or correct me.
>
> Jack
>
> On 8/11/18 10:53 PM, Andrew Ho wrote:
>> Jack,
>>
>> I downloaded from the link that Thomas post,
>>
>> https://forum.kde.org/viewtopic.php?f=69&t=151541#p400985
>>
>> and the download server was 
>> https://cloud.bembel.net/index.php/s/ppFmLaLch3eHZOR
>>
>> I launched it from the terminal.
>>
>> cd /Applications/kmymoney.app/Contents/MacOS/
>>
>> kmymoney
>>
>> The error are as follows:
>>
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> WebConnect: Try to connect to WebConnect server
>> WebConnect: Connect to server failed
>> WebConnect: Starting server failed. Try to remove stale socket.
>> WebConnect: Running in server mode
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QPainter::begin: Paint device returned engine == 0, type: 2
>> QFSFileEngine::open: No file name specified
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/budgetview.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/budgetview.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/budgetview.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/budgetview.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/checkprinting.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/checkprinting.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/checkprinting.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libKF5WebKit.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/checkprinting.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvexporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvexporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvexporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_mymoney.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvexporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvimporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvimporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvimporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_csvimportercore.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/csvimporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/forecastview.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/forecastview.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/forecastview.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/forecastview.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/gncimporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/gncimporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/gncimporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_plugin.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/gncimporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/icalendarexporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/icalendarexporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/icalendarexporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_mymoney.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/icalendarexporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/kbanking.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/kbanking.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/kbanking.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libgwenhywfar.60.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/kbanking.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/ofximporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/ofximporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/ofximporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/ofximporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/onlinejoboutboxview.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/onlinejoboutboxview.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/onlinejoboutboxview.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/onlinejoboutboxview.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifexporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifexporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifexporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifexporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifimporter.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifimporter.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifimporter.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_settings.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/qifimporter.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/reconciliationreport.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/reconciliationreport.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/reconciliationreport.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libKF5WebKit.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/reconciliationreport.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/reportsview.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/reportsview.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/reportsview.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/reportsview.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/sqlstorage.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/sqlstorage.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/sqlstorage.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libkmm_widgets.5.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/sqlstorage.so
>>   Reason: image not found)
>> Could not load plugin 
>> '/Applications/kmymoney.app/Contents/PlugIns/kmymoney/xmlstorage.so', 
>> error: Cannot load library 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/xmlstorage.so: 
>> (dlopen(/Applications/kmymoney.app/Contents/PlugIns/kmymoney/xmlstorage.so, 
>> 133): Library not loaded: 
>> /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libgpgmepp.6.dylib
>>   Referenced from: 
>> /Applications/kmymoney.app/Contents/PlugIns/kmymoney/xmlstorage.so
>>   Reason: image not found)
>> Could not load plugin for online task 
>> "org.kmymoney.creditTransfer.sepa" , file name 
>> "/Applications/kmymoney.app/Contents/PlugIns/kmymoney/konlinetasks_sepa.so" 
>> .
>> Could not load plugin for online task 
>> "org.kmymoney.creditTransfer.sepa" , file name 
>> "/Applications/kmymoney.app/Contents/PlugIns/kmymoney/konlinetasks_sepa.so" 
>> .
>> QFSFileEngine::open: No file name specified
>> org.kde.pim.kidentitymanagement: IdentityManager: There was no 
>> default identity. Marking first one as default.
>> Illegal instruction
>>
>> ****
>>
>>  Thanks,
>>
>>  Andrew
>>
>> -- 
>>
>>
>> On 2018-08-11 03:15 PM, Jack wrote:
>>> Andrew,
>>>
>>> Please provide some additional information if you want any help. 
>>> From where did you download, or just confirm it was from the link 
>>> Thomas posted.  Also, provide the exact error message you received.  
>>> If there were no popup errors, please try launching from command line.
>>>
>>> Thanks.
>>>
>>> On 2018.08.10 08:56, Andrew Ho wrote:
>>>> I download the mac version.
>>>>
>>>> The path of linked libraries are mess up. It is not launched.
>>>>
>>>> Thanks,
>>>>
>>>> Andrew
>>>>
>>>> -- 
>>>>
>>>> �� Pressure creates diamond.
>>>>
>>>>
>>>> On 2018-08-10 04:28 AM, Thomas Baumgart wrote:
>>>>> Hi,
>>>>>
>>>>> please check 
>>>>> https://forum.kde.org/viewtopic.php?f=69&t=151541#p400985 how to 
>>>>> get a nightly build of a mac version.
>>>>>
>>>>> Hope that helps.
>>>>>
>>>>> Regards
>>>>>
>>>>> Thomas
>>>>>
>>>>>
>>>>> On Donnerstag, 7. Juni 2018 15:54:11 CEST Chuck Fossen wrote:
>>>>>
>>>>>> Here are the two issues that I opened:
>>>>>>
>>>>>> https://forum.kde.org/viewtopic.php?f=69&t=143313#p385387
>>>>>> https://trac.macports.org/ticket/55572
>>>>>>
>>>>>> Thanks!
>>>>>> Chuck
>>>>>>
>>>>>> On Wed, Jun 6, 2018 at 1:12 PM Jack 
>>>>>> <ostroffjh at users.sourceforge.net> wrote:
>>>>>>
>>>>>>> On 2018.06.06 13:55, Chuck Fossen wrote:
>>>>>>>> I'm looking for instructions on how to build kmymoney on a mac os
>>>>>>>> 11.13.
>>>>>>>> macports still is at 4.6. I'm looking for 4.8 or even 5.0.
>>>>>>>> I've tried building kmymoney-dev through macports but it doesn't
>>>>>>>> build. The
>>>>>>>> bug I opened was not responded to.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Chuck
>>>>>>>>
>>>>>>> I don't have a mac, so this is only an educated guess - but  I 
>>>>>>> would
>>>>>>> think 4.8 should build pretty much the same as 4.6, perhaps with 
>>>>>>> some
>>>>>>> dependencies requiring newer versions.  I don't know if macports 
>>>>>>> gives
>>>>>>> you instructions for compiling, or only a compiled binary.
>>>>>>>
>>>>>>> Where did you file that bug?  I don't see anything about this in
>>>>>>> bugs.kde.org, unless it's in a queue other than kmymoney. I 
>>>>>>> don't know
>>>>>>> whether anyone here can help or not - but we won't know unless you
>>>>>>> provide some more details about what you tried and where you got 
>>>>>>> stuck.
>>>>>>>
>>>>>>>
>>>>>>> Jack
>>>>>>>
>>>>>>
>>>>>>
>>>>
>>



More information about the KMyMoney mailing list