Sign in Join

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

Mailing lists / qt / 2008-10

qt4.4.3 qtopia

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Terry Kemp

Hi Den,

I have applied your patchset and am using -dUSE_QT_44 - works well.

Couple of things when crosscompiling with -dQTOPIA tho

QrbgH is not defined anywhere.

A couple of calls need ifndef QTOPIA added cos BINUX is automatically defined on linux (even arm)...

unit qt4;
{ Version : 1.64 }
-------
{$IF DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)}
  {$DEFINE BINUX}
  QtIntf = 'libqt4intf.so';
{$ENDIF}
{$IFDEF DARWIN}
  QtIntf = '';
{$ENDIF}
-------

I know I have asked before - but I was sure you said that BINUX and QTOPIA shouldn't be defined at the same time. Do you instead need to change the above code to {$IF (DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)) and not DEFINED(QTOPIA)} or whatever.

Also I noticed I commented out a QString_arg - probably because the compiler complained about identical parameters.

Terry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt44.diff.txt
Type: text/x-patch
Size: 2809 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20081029/74f7a9a6/attachment.bin>

Den Jean
to Terry Kemp: I have applied your patchset and am using -dUSE_QT_44 - works well. Couple of things when…
QrbgH is not defined anywhere.

fixed this, will be in next release.

Show quoted text 7 lines
{$IF DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)} {$DEFINE BINUX} QtIntf = 'libqt4intf.so'; {$ENDIF} {$IFDEF DARWIN} QtIntf = ''; {$ENDIF}

fixed this, will be in next release.

Also I noticed I commented out a QString_arg - probably because the

was already fixed, will be in next release. (64 bit gave me the same problem)

I am still working on setDashPattern.

regards,

Den Jean

Den Jean
to Terry Kemp: I have applied your patchset and am using -dUSE_QT_44 - works well. Couple of things when…
Terry Kemp wrote 29 lines
I have applied your patchset and am using -dUSE_QT_44 - works well. Couple of things when crosscompiling with -dQTOPIA tho QrbgH is not defined anywhere. A couple of calls need ifndef QTOPIA added cos BINUX is automatically defined on linux (even arm)... unit qt4; { Version : 1.64 } ------- {$IF DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)} ? {$DEFINE BINUX} ? QtIntf = 'libqt4intf.so'; {$ENDIF} {$IFDEF DARWIN} ? QtIntf = ''; {$ENDIF} ------- I know I have asked before - but I was sure you said that BINUX and QTOPIA shouldn't be defined at the same time. Do you instead need to change the above code to {$IF (DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)) and not DEFINED(QTOPIA)} or whatever. Also I noticed I commented out a QString_arg - probably because the compiler complained about identical parameters.

would you be so kind to check if everything is ok now ? I do not have an embedded platform anymore.

Explanation saved to wiki:
http://wiki.freepascal.org/Qt4_binding#Supported_Platforms

kind regards,

Den Jean

Terry Kemp
to Den Jean
Show quoted text 9 lines
would you be so kind to check if everything is ok now ? I do not have an embedded platform anymore. Explanation saved to wiki: http://wiki.freepascal.org/Qt4_binding#Supported_Platforms kind regards, Den Jean

One prob so far...

[tkemp at systems qt4pas-V1.67_Qt4.4.3-qtopia]$ . compile_lib_qtopia.sh In file included from qtpas.cpp:97:
lib/qpixmap.cppb: In function ?QRgb QPixmap_clut(QPixmap__*)?: lib/qpixmap.cppb:373: error: cast from ?QRgb*? to ?QRgb? loses precision strip: 'libqt4intf.so': No such file

Terry

Terry Kemp
to Den Jean
Den Jean wrote 9 lines
On Wednesday 05 November 2008 23:19:57 Terry Kemp wrote: > [tkemp at systems qt4pas-V1.67_Qt4.4.3-qtopia]$ . compile_lib_qtopia.sh > In file included from qtpas.cpp:97: > lib/qpixmap.cppb: In function ?QRgb QPixmap_clut(QPixmap__*)?: > lib/qpixmap.cppb:373: error: cast from ?QRgb*? to ?QRgb? loses precision http://users.telenet.be/Jan.Van.hijfte/qtforfpc/qtopia_qt4pas-V1.68_Qt4.4.3.tar.gz Qrgb sure is an annoying type :-), must be because I am color blind.

<Blonde moment>.

Actually I realized that the (qtopia) compile script was using g++ and I always have changed that to arm-linux-g++.

Makes a big difference on an x86_64 machine when making an arm binding ;) couldn't workout why I was getting...

Error: no such instruction: `swpb %bl,%dl,[%rax]'

changed to arm-linux-g++ and its OK.

should I look at next version - what did you change?

thanks

Terry

Den Jean
to Terry Kemp
Terry Kemp wrote
should I look at next version - what did you change?

please download again V1.68 (release different from temp version. forgot a ';' in qt4.pas)

library code:
Qrgb got translated to QRgbH in the C-code (as all Qxxx *> QxxxH), but QRgb is not a class. My first fix did not take into account for the *. This went unnoticed on 32bit, I guess you compiled on a platform where size int and ptr were different.