Program fails to launch
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Program fails to launch
Due app crashes without error code.
In terminal:
open -a USBJTAGNT.app
Results:
LSOpenURLsWithRole() failed for the application -- USBJTAGNT.app with error -10810.
On MacOS Catalina or High Sierra too i suppose as first tried there.
Second try:
In terminal:
open -a USBJTAGNT.app/MacOS/USBJTAGNT
FSPathMakeRef failed with error -43.
This could be due if in code has this.options.executable = getExecutable( 'MyRealAppName' ); being wrong or so after unzipping the program and FSPathMakeRef is being wrong.
In terminal:
getconf LONG_BIT
64
So this is 64bit machine.
WinXP is out of questions as it fails too but i would love run on it as its my main programming machine.
In terminal:
open -a USBJTAGNT.app
Results:
LSOpenURLsWithRole() failed for the application -- USBJTAGNT.app with error -10810.
On MacOS Catalina or High Sierra too i suppose as first tried there.
Second try:
In terminal:
open -a USBJTAGNT.app/MacOS/USBJTAGNT
FSPathMakeRef failed with error -43.
This could be due if in code has this.options.executable = getExecutable( 'MyRealAppName' ); being wrong or so after unzipping the program and FSPathMakeRef is being wrong.
In terminal:
getconf LONG_BIT
64
So this is 64bit machine.
WinXP is out of questions as it fails too but i would love run on it as its my main programming machine.
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Re: Program fails to launch
I think i spotted something:
Load command 24
cmd LC_RPATH
cmdsize 48
path /Users/lishao/Qt/5.9.9/clang_64/lib (offset 12)
Load command 24
cmd LC_RPATH
cmdsize 48
path /Users/lishao/Qt/5.9.9/clang_64/lib (offset 12)
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Re: Program fails to launch
LC_LOAD_DYLIB is wrong for this too:
/usr/local/opt/libusb/lib/libusb-1.0.0.dylib
/usr/local/opt/libusb/lib/libusb-1.0.0.dylib
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Re: Program fails to launch
To fix earlier and else need run:
dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @executable_path/../Frameworks/libusb-1.0.0.dylib /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets
install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui
install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtNetwork.framework/Versions/5/QtNetwork
install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
Next problem it wont find cocoa plugin...
dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @executable_path/../Frameworks/libusb-1.0.0.dylib /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets
install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui
install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
dyld: Library not loaded: @rpath/QtNetwork.framework/Versions/5/QtNetwork
install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT
Next problem it wont find cocoa plugin...
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Re: Program fails to launch
Giving up for now as i have no time fix more as was due time today get thing dumped so need now return what i was trying to fix without how i really wanted and continue for next things. I understand these happens in development though.
Library not loaded: @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport
Referenced from: /Applications/USBJTAGNT.app/Contents/PlugIns/platforms/libqcocoa.dylib
So it find cocoa plugin but inside plugin has broken things i guess...
Hoping there will be WinXP version fix available for the next time and will prep before i need next time the device ready.
P.S. On software page you show example command:
tar -xvf USBJTAGNT-xxx-MAC.tar
But you can use just * instead of show users to replace xxx:
tar -xvf USBJTAGNT-*-MAC.tar
But its outdated anyway as its today just USBJTAGNT-Mac-x64.tar
Library not loaded: @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport
Referenced from: /Applications/USBJTAGNT.app/Contents/PlugIns/platforms/libqcocoa.dylib
So it find cocoa plugin but inside plugin has broken things i guess...
Hoping there will be WinXP version fix available for the next time and will prep before i need next time the device ready.
P.S. On software page you show example command:
tar -xvf USBJTAGNT-xxx-MAC.tar
But you can use just * instead of show users to replace xxx:
tar -xvf USBJTAGNT-*-MAC.tar
But its outdated anyway as its today just USBJTAGNT-Mac-x64.tar
-
- Junior Member
- Posts: 8979
- Joined: Mon Jul 18, 2005 9:33 pm
Re: Program fails to launch
https://youtu.be/xe9BPC7w-R8
See if this work for you. On terminal goes to the folder under MacOs and execute ./USBJTAGNT
See if this work for you. On terminal goes to the folder under MacOs and execute ./USBJTAGNT
-
- Junior Member
- Posts: 8979
- Joined: Mon Jul 18, 2005 9:33 pm
Re: Program fails to launch
I never tried command open -a
-
- Junior Member
- Posts: 6
- Joined: Sun Sep 19, 2021 3:03 am
Re: Program fails to launch
All above was done in that way to call directly the executable as you suggest too.usbbdm wrote: ↑Sun Sep 19, 2021 7:52 am https://youtu.be/xe9BPC7w-R8
See if this work for you. On terminal goes to the folder under MacOs and execute ./USBJTAGNT
(I mean yes i gave a go for that too but later i used otool -l and such to debug what fails in program)
I am hinting to check on clean macOS the working with latest version at least as there seems be links inside latest build which refers file locations which only on you works with development environment and the app doesn't successfully call the libraries what comes with the program which i example listed above some of them how to fix them and crashes finally to that cocoa library and its depencies calling...
I tried on both fresh Catalina and High Sierra (not so clean but usable).
Or if better why so fails i am listening surely.
-
- Junior Member
- Posts: 8979
- Joined: Mon Jul 18, 2005 9:33 pm
Re: Program fails to launch
I am out and can back to you latter today or tomorrow.
-
- Junior Member
- Posts: 8979
- Joined: Mon Jul 18, 2005 9:33 pm
Re: Program fails to launch
Big Sur is now fully supported.
Who is online
Users browsing this forum: No registered users and 4 guests