On 17 August 2010 23:25, Almar Klein <almar.kl...@gmail.com> wrote:
>
>
> On 20 July 2010 03:48, Anthony Tuininga <anthony.tuini...@gmail.com>wrote:
>
>> On Mon, Jul 19, 2010 at 4:15 PM, Almar Klein <almar.kl...@gmail.com>
>> wrote:
>> > Thanks for the quick and clear answers so far. I have two more
>> questions:
>>
>> You're welcome.
>>
>> >> >> > I want to distribute an application written in python 3.1 that
>> uses
>> >> >> > the
>> >> >> > PyQt4 widget toolkit. I'd like to make the app available to as
>> many
>> >> >> > people
>> >> >> > as possible (in binary form). I've gotten it to freeze on both
>> >> >> > windows
>> >> >> > and
>> >> >> > linux (I don't own a mac). In my experience the windows-frozen
>> apps
>> >> >> > always
>> >> >> > work on windows machines, but I've no clue how well this works in
>> >> >> > Linux.
>> >> >> > Will the binaries work on *any* Linux distribution? Or only on
>> Debian
>> >> >> > derived Linuxes (I'm running Linux Mint myself)?
>> >> >>
>> >> >> On Linux the main issue is glibc which you need to make sure is "as
>> >> >> old as possible" in order to cover most of the distributions out
>> >> >> there. Glibc is backwards compatible but not forwards compatible so
>> >> >> you need to act accordingly. I generally use CentOS 5.x as that is
>> >> >> fairly old and covers most of the distributions in the past few
>> years.
>> >> >
>> >> > So you mean I'd best build the binaries on an old OS? And does this
>> >> > depend
>> >> > on how much "exotic low level stuff" I use in my application, or only
>> >> > how
>> >> > new the version is that is on my system?
>> >>
>> >> The main issue is glibc. Whatever version you are using everyone else
>> >> who will use your package needs to use that version of glibc or a more
>> >> recent one. Everything links to that library so everything stands or
>> >> falls on what version you happen to have installed. Since that package
>> >> is regularly being improved new distributions generally include newer
>> >> versions of glibc, too.
>> >
>> > Ok, fair enough. Would it also be possible to (temporarily) install an
>> old
>> > version of glibc on my current system?
>>
>> Maybe. But I wouldn't do that personally. A virtual machine is far
>> less likely to cause problems. :-)
>>
>> > You said you use CentOS 5.x since it is fairly old. If I check the
>> website
>> > v5.5 is from may 2010, which I don't consider old. All versions below
>> 5.4
>> > are not available anymore (at least not on the mirror that I checked).
>> Do
>> > you recon that the 5.5 iso old enough or should I download CentOS 4.x?
>>
>> Well, CentOS 5.5 still uses the old version of glibc so even though it
>> was recently released it is still "old". :-) Red Hat is about to
>> release version 6 which will use a newer version of glibc. I don't
>> think version 4 is worth worrying about -- that's WAY too old!
>>
>> Anthony
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> cx-freeze-users mailing list
>> cx-freeze-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>
>
> Just letting you know I followed your suggestion. I now've got a CentOS
> installation running in VirtualBox, with Python3.1, PyQt4 (incl. QScintilla)
> and cx_freeze. I tested the binaries on several Linuxes, and they all
> worked.
>
Just wanted to point out that in order to build an app with nice
anti-aliased fonts and to use the GTK theme in Qt, you need a few extra
things.
(on CentOS 5.5):
- yum install gtk+ gtk+-devel
- yum install gtk2 gtk2-devel
- yum install contconfig fontconfig-devel
- yum install freetype freetype-devel
And compile Qt using "./configure -fontconfig -gtkstyle".
I put a summary of the installation procedure
here<http://code.google.com/p/iep/wiki/Installation?ts=1291642093&updated=Installation#Building_the_requirements_for_IEP_from_source_on_Linux>.
It works for the specific app I'm building, but it might also be useful to
others who want to build apps using PyQt.
Cheers,
Almar
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users