Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

IDE Package system has a problem

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

osx fpc & lazarus svn qt x64
this is my example:
in Compiler options package's (-FU)
../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType) I have some 3.party components too, all -FU is same. IDE maked in qt x64. In terminal, use "lazbuild" there is no problem, but, delete "../all_libs/" folder then, just new maked lazarus (without run lazbuild on terminal) ~/.lazarus has 3.party components packs. Open any package in IDE and build is okey, okey mean in
"../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)" qt folder and compiled files is right there, after click "install" ask rebuild IDE ? yes, need to build other packages, but not opened in IDE, all of them compiled, but "x86_64-darwin-carbon" not "x86_64-darwin-qt" this errors in messages
Compiling package LCL 1.5: Exit code 256, Errors: 12, Warnings: 1 carbonproc.pp(511,13) Error: Identifier not found "ATSUFindFontFromName" carbonproc.pp(534,14) Error: Identifier not found "ATSUFindFontName" carbonproc.pp(541,14) Error: Identifier not found "ATSUFindFontName" carbonproc.pp(562,11) Error: Identifier not found "FMGetFontFamilyFromName" carbonproc.pp(669,5) Error: Identifier not found "HIViewChangeFeatures" carbonproc.pp(672,11) Error: Identifier not found "HIViewSetVisible" carbonproc.pp(673,11) Error: Identifier not found "HIViewSetFrame" carbonproc.pp(696,3) Error: Identifier not found "GetControlBounds" carbonproc.pp(706,3) Error: Identifier not found "SetControlData" carbonproc.pp(731,36) Error: Identifier not found "GetControlEventTarget" carbonproc.pp(1345,12) Error: Identifier not found "GetThemeFont" carbonproc.pp(1345,43) Error: Identifier not found "GetApplicationScript" carbonproc.pp(1347,28) Warning: Local variable "sz" does not seem to be initialized
Compiling package My_Images 1.0: Aborted

if package not open in, $(LCLWidgetType) macro not get true value.

Reply by email

zeljko
to FreeMan
FreeMan wrote
osx fpc & lazarus svn qt x64

Out of topic:
Keep in mind that there's ugly bug with modal windows and dialogs with qt cocoa (64bit). Not LCL , but qt one. I've created example project and it's reported here:
https://bugreports.qt.io/browse/QTBUG-40585

Besides that, I'm pretty happy how it works :) even in vmware, maverick 9.5 is snappy with qtlcl apps (qt-4.8.6 64bit cocoa). fpc-2.6.2

zeljko

Reply by email

Mattias Gaertner
to FreeMan: osx fpc & lazarus svn qt x64 this is my example: in Compiler options package's (-FU)…
osx fpc & lazarus svn qt x64 this is my example: in Compiler options package's (-FU) ../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)

Output directory of what package?

I have some 3.party components too, all -FU is same.

What is "all"?

Show quoted text 9 lines
IDE maked in qt x64. In terminal, use "lazbuild" there is no problem, but, delete "../all_libs/" folder then, just new maked lazarus (without run lazbuild on terminal) ~/.lazarus has 3.party components packs. Open any package in IDE and build is okey, okey mean in "../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)" qt folder and compiled files is right there, after click "install" ask rebuild IDE ? yes, need to build other packages, but not opened in IDE, all of them compiled, but "x86_64-darwin-carbon" not "x86_64-darwin-qt" this errors in messages

You need to set LCL widget type in 'Tools / Configure Build Lazarus' to 'qt', otherwise it will use 'carbon'.

Show quoted text 18 lines
Compiling package LCL 1.5: Exit code 256, Errors: 12, Warnings: 1 carbonproc.pp(511,13) Error: Identifier not found "ATSUFindFontFromName" carbonproc.pp(534,14) Error: Identifier not found "ATSUFindFontName" carbonproc.pp(541,14) Error: Identifier not found "ATSUFindFontName" carbonproc.pp(562,11) Error: Identifier not found "FMGetFontFamilyFromName" carbonproc.pp(669,5) Error: Identifier not found "HIViewChangeFeatures" carbonproc.pp(672,11) Error: Identifier not found "HIViewSetVisible" carbonproc.pp(673,11) Error: Identifier not found "HIViewSetFrame" carbonproc.pp(696,3) Error: Identifier not found "GetControlBounds" carbonproc.pp(706,3) Error: Identifier not found "SetControlData" carbonproc.pp(731,36) Error: Identifier not found "GetControlEventTarget" carbonproc.pp(1345,12) Error: Identifier not found "GetThemeFont" carbonproc.pp(1345,43) Error: Identifier not found "GetApplicationScript" carbonproc.pp(1347,28) Warning: Local variable "sz" does not seem to be initialized Compiling package My_Images 1.0: Aborted if package not open in, $(LCLWidgetType) macro not get true value.

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
> osx fpc & lazarus svn qt x64 > >this is my example: > >in Compiler options package's (-FU) > >../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType) Output directory of what package?

any. ZVDateTimeCtrls, virtualtreeview, etc.

I have some 3.party components too, all -FU is same. What is "all"?

I have some 3.party components too, what I installed package's -FU is same. "../all_libs/$(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)" sorry my english, because I'm not english and I never been in england, I'm using dictionary for translate

You need to set LCL widget type in 'Tools / Configure Build Lazarus' to 'qt', otherwise it will use 'carbon'.

Opened packed is getting IDE's widgetset. I'm using allways terminal, some times for test make IDE to carbon i386, or QT x64. if "Normal IDE" mean default IDE or IDE builded with this settings why I have to set every time?
my suggestion is, default or "normal IDE" LCL widget type, Target OS, Target CPU set to _*what IDE builded*_ with LCL widget type, target OS, Target CPU
regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150209/b43d0dc0/attachment.html>

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 7 lines
[...] > You need to set LCL widget type in 'Tools / Configure Build Lazarus' > to 'qt', otherwise it will use 'carbon'. Opened packed is getting IDE's widgetset. I'm using allways terminal, some times for test make IDE to carbon i386, or QT x64. if "Normal IDE" mean default IDE or IDE builded with this settings why I have to set every time?

In the IDE you have to set it only once.

my suggestion is, default or "normal IDE" LCL widget type, Target OS, Target CPU set to _*what IDE builded*_ with LCL widget type, target OS, Target CPU

If a project does not set the LCLWidgetType it gets the IDE's widgettype.
If you did not set a LCLWidgetType in the "Configure Build Lazarus", then it uses "carbon" on darwin.

Mattias

Reply by email

zeljko
to Mattias Gaertner
Mattias Gaertner wrote
If a project does not set the LCLWidgetType it gets the IDE's widgettype. If you did not set a LCLWidgetType in the "Configure Build Lazarus", then it uses "carbon" on darwin.

This is not always true in my case. Using fpc-2.6.2 (regular dmg downloaded) i386 + cross x86_64.
Sometimes it builds everything and at the end it cannot link since it calls i386-darwin ?!?
Yes, there's x86_64 cpu, qt widgetset and OS_TARGET=darwin in configure ide. Only way to make it build is:
1.make clean
2.make clean CPU_TARGET=x86_64
3.make bigide CPU_TARGET=x86_64 OS_TARGET=darwin LCL_PLATFORM=qt 4.Startlazarus, now build ide again (because of 3rd party packages). Now it builds correct ide.

z.

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 12 lines
On 02/09/2015 07:36 PM, Mattias Gaertner wrote: > If a project does not set the LCLWidgetType it gets the IDE's > widgettype. > If you did not set a LCLWidgetType in the "Configure Build Lazarus", > then it uses "carbon" on darwin. This is not always true in my case. Using fpc-2.6.2 (regular dmg downloaded) i386 + cross x86_64. Sometimes it builds everything and at the end it cannot link since it calls i386-darwin ?!? Yes, there's x86_64 cpu, qt widgetset and OS_TARGET=darwin in configure ide.

What parameters were passed to "make" when this happened? Right click on "Build IDE" / About Build IDE.

Mattias

Reply by email