Recent

Author Topic: Fpcupdeluxe  (Read 815462 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #600 on: September 05, 2017, 08:06:33 pm »
Quote
Yes the fpcupdeluxe qt5 bundle does work fine.
This is good news ! And this means also that you will succeed in the end !

Code: Pascal  [Select][+][-]
  1. -k"-rpath @executable_path/../Frameworks"
The above has to be added into the custom options (see included picture) !!

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #601 on: September 05, 2017, 09:14:16 pm »
Hi

Well I did say stupid me, just for others a couple of pics showing the items to add, that was causing my compile issue.

The goods news as you have gathered, is that it compiled for qt5 and I could transfer to my app bundle, unfortunately I still have issues, but I do not think it is related to the QT cross compile but one/some of the components I am using. I have limited it down to a couple of ones that are causing issues when targeting 64bit on mac; and investigating the fixes.

Hope the pics helps others; if they are wrong let me know and I will edit post.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #602 on: September 05, 2017, 09:20:17 pm »
I hope you will succeed. And please keep us informed.
Thanks again for your feedback.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #603 on: September 14, 2017, 07:07:45 pm »
Test-release 1.4.0m; Darwin x64 only.

https://github.com/newpascal/fpcupdeluxe/releases/tag/v1.4.0m

This QT5-based release will install a x64 QT5 version of Lazarus (and FPC).
Please note:
There is no need to install QT5 on your system !
Also, no QT5, other than included in this release, will be needed: so, no 3GB of QT5 on your system.

Standalone QT5 apps need an extra plugin inside the app to work correct.
The plugin is named libqcocoa.dylib and must be placed inside /Contents/Plugins/platforms
Have a look at (inside) the fpcupdeluxe-x86_64-darwin-qt5.app itself to get the idea.
The minimum QT5 Framework can also be found inside: /Contents/Frameworks

Feedback welcome.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #604 on: September 14, 2017, 07:36:02 pm »
Hi

Just downloaded and when I try to run it, i get
fpceupdelkuxe...-qt5 cannot be opened because of a problem.
clicking report, termination reason missing library
@rpath/qtprintsuport.framework/versions/5/qtprintsupport
referenced from .... 1/qt5pas
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #605 on: September 14, 2017, 07:56:40 pm »
Thanks for the feedback.
Strange error, but will look into it.
Please help me some more with your OSX version and any info that can help.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #606 on: September 14, 2017, 08:36:09 pm »
Sierra 10.12.6

As I have many versions of FPUPDELUXE on desktop, I thought I would do some housekeeping; just in case something is screwed in the cache(s).
Deleted all fpcupdeluxes from desktop.
Ran Onyx, cleared caches and rebuild etc.

Re-downloaded 1.4.0m and placed on desktop, Ran straight away, so something this end...
Apologies for the false alarm.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #607 on: September 14, 2017, 10:43:42 pm »
Hi,

I told 1.4.0m to install into a new folder on Mac, which has just finished downloading and get message That went well!.

I cannot start lazarus from the startlazarus app I get the following error.

I Can start lazarus using the lazarus app, but then I cant install any packages, I tried to install OPM, when I click select the lpk, the screen goes non responsive, and have to quit process.

I then thought I would try installing bgrabitmap and uecontrols from fpcupdeluxe, this went through all the process and did install the components.
So I thought maybe its just OPM, so I tried installing bgracontrols via install packages of lazarus, but now I do not even get the the open file window to select a lpk file. Maybe it's just the laz config file that holding the location of the windows is messed up ( as the default layout, all the windows are all over the place and overlapping).
Quote
Process:               startlazarus [34633]
Path:                  /Users/USER/*/startlazarus.app/Contents/MacOS/startlazarus
Identifier:            com.company.startlazarus
Version:               0.1 (1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           startlazarus [34633]
User ID:               501

Date/Time:             2017-09-14 21:34:20.934 +0100
OS Version:            Mac OS X 10.12.6 (16G29)
Report Version:        12
Anonymous UUID:        A67AAA35-F382-821E-745F-D502980251F3

Sleep/Wake UUID:       96CEA3A7-DE99-44A6-8177-E9F605F26A19

Time Awake Since Boot: 560000 seconds
Time Since Wake:       2600 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib           0x00007fffd0e6ad42 __pthread_kill + 10
1   libsystem_pthread.dylib          0x00007fffd0f58457 pthread_kill + 90
2   libsystem_c.dylib                0x00007fffd0dd0420 abort + 129
3   org.qt-project.QtCore            0x00000001022c38c9 0x1022ad000 + 92361
4   org.qt-project.QtCore            0x00000001022c5297 QMessageLogger::fatal(char const*, ...) const + 231
5   org.qt-project.QtGui             0x0000000101de63fd QGuiApplicationPrivate::createPlatformIntegration() + 5581
6   org.qt-project.QtGui             0x0000000101de642b QGuiApplicationPrivate::createEventDispatcher() + 27
7   org.qt-project.QtCore            0x0000000102498639 QCoreApplicationPrivate::init() + 1657
8   org.qt-project.QtGui             0x0000000101de2591 QGuiApplicationPrivate::init() + 49
9   org.qt-project.QtWidgets         0x0000000101344e0e QApplicationPrivate::init() + 14
10  com.yourcompany.Qt5Pas           0x00000001010ef7e2 QApplication_Create + 50
11  com.company.startlazarus         0x00000001001a6e89 QTINT$_$TQTWIDGETSET_$__$$_CREATE$$TQTWIDGETSET + 257 (qtobject.inc:31)
12  com.company.startlazarus         0x00000001000529ca FORMS_$$_CREATEWIDGETSET$TWIDGETSETCLASS + 42 (forms.pp:2182)
13  com.company.startlazarus         0x00000001000251f8 INIT$_$INTERFACES + 16 (qtwsextdlgs.pp:86)
14  com.company.startlazarus         0x00000001000163f4 FPC_INITIALIZEUNITS + 60
15  com.company.startlazarus         0x00000001000219fc FPC_SysEntry + 12
16  com.company.startlazarus         0x0000000100001bd4 start + 52

Thread 1:
0   libsystem_kernel.dylib           0x00007fffd0e6b44e __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fffd0f5548e _pthread_wqthread + 1023
2   libsystem_pthread.dylib          0x00007fffd0f5507d start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib           0x00007fffd0e6b44e __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fffd0f55621 _pthread_wqthread + 1426
2   libsystem_pthread.dylib          0x00007fffd0f5507d start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib           0x00007fffd0e6b44e __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fffd0f55621 _pthread_wqthread + 1426
2   libsystem_pthread.dylib          0x00007fffd0f5507d start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff5fbff478  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007fff5fbff4a0  rsp: 0x00007fff5fbff478
   r8: 0x0000000000000040   r9: 0x00007fffd9c34040  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x0000000102779360  r13: 0x0000000000000018  r14: 0x00007fffd9c503c0  r15: 0x00007fff5fbff728
  rip: 0x00007fffd0e6ad42  rfl: 0x0000000000000206  cr2: 0x00007fffd9c32128
 
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary Images:
       0x100000000 -        0x100493fff +com.company.startlazarus (0.1 - 1) <7C68C5C2-739B-3699-A173-BA3A18079391> /Users/USER/*/startlazarus.app/Contents/MacOS/startlazarus
       0x1010bc000 -        0x101197ff7 +com.yourcompany.Qt5Pas (1.2 - 1.2.6) <61A38F29-2587-396E-8E88-8B5296ABAC01> /Users/USER/*/Qt5Pas.framework/Versions/1/Qt5Pas
       0x1012ed000 -        0x101318ff7 +org.qt-project.QtPrintSupport (5.8 - 5.8.0) <1FB7C62E-8FDA-3E8F-A1E4-3AC987027D3E> /Users/USER/*/QtPrintSupport.framework/Versions/5/QtPrintSupport
       0x101339000 -        0x10179dfff +org.qt-project.QtWidgets (5.8 - 5.8.0) <751070F0-6091-3A9C-8B6F-31C363B69435> /Users/USER/*/QtWidgets.framework/Versions/5/QtWidgets
       0x1018f8000 -        0x1019f5fff +org.qt-project.QtNetwork (5.8 - 5.8.0) <49B9700E-E1EB-38B2-8B37-990C03510C0F> /Users/USER/*/QtNetwork.framework/Versions/5/QtNetwork
       0x101d30000 -        0x101d6ddc7  dyld (433.5) <322C06B7-8878-311D-888C-C8FD2CA96FF3> /usr/lib/dyld
       0x101dbb000 -        0x1021bcfef +org.qt-project.QtGui (5.8 - 5.8.0) <D5482DD8-C913-3074-BAF5-C43A6E335247> /Users/USER/*/QtGui.framework/Versions/5/QtGui
       0x1022ad000 -        0x10276afff +org.qt-project.QtCore (5.8 - 5.8.0) <2C2FCD3B-2BCA-3941-B85E-9F334EB73FF8> /Users/USER/*/QtCore.framework/Versions/5/QtCore
    0x7fffb7d5d000 -     0x7fffb7d61ffb  com.apple.agl (3.3.1 - AGL-3.3.1) <752FDB92-EF67-3D04-BF40-A352BF1075CF> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x7fffb8091000 -     0x7fffb8091fff  com.apple.Accelerate (1.11 - Accelerate 1.11) <916E360F-323C-3AE1-AB3D-D1F3B284AEE9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fffb80aa000 -     0x7fffb85c3feb  com.apple.vImage (8.1 - ???) <B58A7937-BEE2-38FE-87F4-5D5F40D31DC9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fffb85c4000 -     0x7fffb8735ff3  libBLAS.dylib (1185.50.4) <4087FFE0-627E-3623-96B4-F0A9A1991E09> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fffb8736000 -     0x7fffb874affb  libBNNS.dylib (15) <254698C7-7D36-3FFF-864E-ADEEEE543076> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fffb874b000 -     0x7fffb8b41fef  libLAPACK.dylib (1185.50.4) <C35FFB2F-A0E6-3903-8A3C-113A74BCBCA2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fffb8b42000 -     0x7fffb8b58fff  libLinearAlgebra.dylib (1185.50.4) <345CAACF-7263-36EF-B69B-793EA8B390AF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fffb8b59000 -     0x7fffb8b5ffff  libQuadrature.dylib (3) <EF56C8E6-DE22-3C69-B543-A8648F335FDD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fffb8b60000 -     0x7fffb8b74ff7  libSparseBLAS.dylib (1185.50.4) <67BA432E-FB59-3C78-A8BE-ED4274CBC359> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fffb8b75000 -     0x7fffb8cfcfe7  libvDSP.dylib (600.60.1) <4155F45B-41CD-3782-AE8F-7AE740FD83C3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fffb8cfd000 -     0x7fffb8daffff  libvMisc.dylib (600.60.1) <E18365D7-DCC4-3304-A8D1-395E656D7B99> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fffb8db0000 -     0x7fffb8db0fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <7C5733E7-0568-3E7D-AF61-160F19FED544> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fffb906f000 -     0x7fffb9e48ff3  com.apple.AppKit (6.9 - 1504.83.101) <AE51ACB3-D501-3F91-B369-3D3711F24D0A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fffb9e5a000 -     0x7fffb9e5afff  com.apple.ApplicationServices (48 - 48) <DA687F9A-7B2D-342B-8796-16E45344F853> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fffb9e5b000 -     0x7fffb9ec9ff7  com.apple.ApplicationServices.ATS (377 - 422.2) <A31D17BE-F747-39FB-9A84-5F2F8891204C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fffb9f63000 -     0x7fffba092ff7  libFontParser.dylib (194.12) <73C3946D-EF92-3AC1-89C3-0E75B2A85325> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fffba093000 -     0x7fffba0ddfff  libFontRegistry.dylib (196.4) <EA96AE47-3369-3DEA-BB82-98348ADBD85B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fffba1da000 -     0x7fffba284ff7  com.apple.ColorSync (4.12.0 - 502.2) <ACA4001E-A0E3-33F6-9CD6-EEC2AA15E322> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fffba285000 -     0x7fffba2d6fff  com.apple.HIServices (1.22 - 593) <045870A9-1D92-3FEF-8722-671E99A35E71> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fffba2d7000 -     0x7fffba2e6ff3  com.apple.LangAnalysis (1.7.0 - 1.7.0) <2CBE7F61-2056-3F96-99A1-0D527796AFA6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fffba2e7000 -     0x7fffba334fff  com.apple.print.framework.PrintCore (12 - 491) <5027FD58-F0EE-33E4-8577-934CA06CD2AF> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fffba335000 -     0x7fffba370fff  com.apple.QD (3.12 - 313) <B339C41D-8CDF-3342-8414-F9717DCCADD4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
 ...........   
« Last Edit: September 14, 2017, 11:06:40 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #608 on: September 14, 2017, 10:49:22 pm »
Quote
Standalone QT5 apps need an extra plugin inside the app to work correct.
The plugin is named libqcocoa.dylib and must be placed inside /Contents/Plugins/platforms
Have a look at (inside) the fpcupdeluxe-x86_64-darwin-qt5.app itself to get the idea.

Add this into startlazarus.

But much better, start Lazarus with the desktop link !!

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #609 on: September 14, 2017, 11:23:02 pm »
Hi

Duh.. Silly me, yep that starts lazarus, but I still cant install packages with it ( I ammended last post; which you have probably missed).

Screen Capture of what happens when I choose to install a package, all I have is the windows that are on the screen, and I cannot do anything, as the screen capture shows my menu options are all greyed out..

The size of the windows are as they were when I started Lazarus, I had to move them around as these overlapped, even the Lazarus Main IDE WIndows was small.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #610 on: September 28, 2017, 12:09:35 am »
Hi
just had some spare time, to try and install x86-64-cocoa and qt5 versions.
I have created 2 seperate folders for each install and downloaded both the darwin x86-64 cocoa and the qt5 versions of fpcupdeluxe.

When I try to install trunk for x86-64 cocoa, the installation dows not complete, the error is at
/onlinepackagemanager/./vst/opkman-virtualTREES.PAS9329,30 Fatal cant find unit opkman_FactActiveX

unfortuantely i cannot select all and copy the log as trying to select all give range check error

So onto QT5, this installs and creates the Desktop shortcut. On starting Lazarus, if I go to online package manager I cannot use mouse to select a package ( the space bar will select hilighted option though), if I then install an package, that requires a rebuild I then get Build IDE: Exit Code 512, error:1, error occured while linking.

Quote
Build IDE: Exit code 512, Errors: 1
Free Pascal Compiler version 3.1.1-r37327 [2017/09/26] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling lazarus.pp
Assembling (pipe) /Users/josh/Lazarus_Trunk_QT5/lazarus/units/x86_64-darwin/qt5/lazarus.s
Compiling resource /Users/josh/Lazarus_Trunk_QT5/lazarus/units/x86_64-darwin/qt5/lazarus.or
Linking ../lazarus
ld: library not found for -lXtst
An error occurred while linking
Error: Error while linking

(also unable to resize message window or object inspector window
« Last Edit: September 28, 2017, 12:11:46 am by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #611 on: September 28, 2017, 07:01:37 am »
To make things clear:
fpcupdeluxe-i386-darwin installs 32bit Lazarus Carbon
fpcupdeluxe-i386-darwin-cocoa installs 32bit Lazarus Cocoa
fpcupdeluxe-x86_64-darwin-cocoa installs 64bit Lazarus Cocoa
fpcupdeluxe-x86_64-darwin-qt5 installs 64bit Lazarus QT5

AFAIK, and at the moment of this writing, only the first of this list will give you a fully functional Lazarus ! Cocoa still needs a lot of work. And also QT5 is not yet 100%.

So, you are encountering the current remaining limitations of the above widgetsets when installing anything other than the first of the list (32bit Carbon).

There has been a discussion on how to proceed regarding 64bit on Mac (within some months, only 64bit apps are allowed on Mac). It was suggested that Cocoa was the way to go. That would be the best. However, I am more than impressed on how well Lazarus works with QT5 on Mac 64bit.

So remember:
With the OPM, you can install any package.
This will not mean that this package is suitable for the Lazarus widgetset in use.

I have included a screenshot of Lazarus QT5 with Eye Candy Controls installed through the OPM. It also shows some missing tool-menu-items under QT5 and some extra speedbuttons to give access to missing items.

balazsszekely

  • Guest
Re: Fpcupdeluxe
« Reply #612 on: September 28, 2017, 08:04:45 am »
I added support for cocoa in r. 55937.  You can build Lazarus IDE, start OPM, but as @DonAlfredo said Cocoa still needs a lot of work. The important thing is Fpcupdeluxe won't fail because of OPM under cocoa.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #613 on: September 28, 2017, 11:41:07 am »
Hi

Thanks, I have been using the 32bit Carbon for some time, and the fact that High Sierra is the last Mac OS that supports 32bit I thought t would be prudent to check the state of any widgetset that supports 64bit.

I have had no luck at all getting Cocoa to run on My Mac so that  can see where it is and possibly help reports bugs issue, I am aware that you have, but this is not the same for me, I cannot get it to even operate as a basic idea, I have just re-installed a fresh  latest trunk, I cannot tell you what version it is; as I cannot even get that to work, the main menu bar is not even complete the pallets icons are half hidden, I have no file menu bar etc etc.

I have also thought that QT5 may be the route to go. Possible bug with Fpcupdeluxe for qt, if you minimise and then restore the option get messed up.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #614 on: September 28, 2017, 05:48:26 pm »
@josh
At this moment, the best you can do is just install the normal 32bit version of FPC and Lazarus Carbon on Mac. This combi works very well.
Followed by a crosscompiler for x86_64.
When compiling your app for x86_64, choose Cocoa as widgetset and you can compare the results and report bugs and/or help with Cocoa

 

TinyPortal © 2005-2018