Alexander Lobunets | 15 Nov 2011 09:41
Picon

OSX 11.* Support?

Hello!

I'm currently fighting with installation of libavg on a OSX Lion. The
latest version of the installer fails and the source's MakeMacDist.sh
contains the following:

if [[ "${DARWINMAJORVER}" == "10" ]]
then
    PYTHONVERSION=2.6
    OSXVERSION=10.6
    BUILDDIR=/usr/local/lib/python2.6/
else
    PYTHONVERSION=2.5
    OSXVERSION=10.5
    BUILDDIR=/Library/Python/2.5
    sudo rm -rf ${BUILDDIR}/site-packages/libavg
    sudo make install

which suggests it's impossible? :)

Any hints are appreciated.

Thanks!

--

-- 
Kind regards,
Alex
Alexander Lobunets | 15 Nov 2011 09:43
Picon

Re: OSX 11.* Support?

Forgot to mention:

Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin

on my machine.

Thanks.

On Tue, Nov 15, 2011 at 9:41 AM, Alexander Lobunets
<alexander.lobunets@...> wrote:
> Hello!
>
> I'm currently fighting with installation of libavg on a OSX Lion. The
> latest version of the installer fails and the source's MakeMacDist.sh
> contains the following:
>
> if [[ "${DARWINMAJORVER}" == "10" ]]
> then
>    PYTHONVERSION=2.6
>    OSXVERSION=10.6
>    BUILDDIR=/usr/local/lib/python2.6/
> else
>    PYTHONVERSION=2.5
>    OSXVERSION=10.5
>    BUILDDIR=/Library/Python/2.5
>    sudo rm -rf ${BUILDDIR}/site-packages/libavg
>    sudo make install
>
> which suggests it's impossible? :)
(Continue reading)

Ulrich von Zadow | 15 Nov 2011 10:15
Picon

Re: OSX 11.* Support?

Hi Alex,

how does the install fail? I've seen the release installer for libavg 1.7 work on Lion, but it does install
libavg under Python 2.6. Python 2.6 is installed on Lion as well, so your problem might just be that you're
starting the wrong python version.

Cheers,

  Uli

On Nov 15, 2011, at 5:43 PM, Alexander Lobunets wrote:

> Forgot to mention:
> 
> Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
> 
> on my machine.
> 
> Thanks.
> 
> On Tue, Nov 15, 2011 at 9:41 AM, Alexander Lobunets
> <alexander.lobunets@...> wrote:
>> Hello!
>> 
>> I'm currently fighting with installation of libavg on a OSX Lion. The
>> latest version of the installer fails and the source's MakeMacDist.sh
>> contains the following:
>> 
>> if [[ "${DARWINMAJORVER}" == "10" ]]
(Continue reading)

Alexander Lobunets | 16 Nov 2011 11:19
Picon

Re: OSX 11.* Support?

Hi Ulrich!

The installer just says Failed and the following message can be found
in the console:

11/16/11 11:16:01.069 AM installd: PackageKit: Install Failed: Error
Domain=PKInstallErrorDomain Code=112 "An error occurred while running
scripts from the package “libavg.pkg”." UserInfo=0x7fd83be28d90
{NSFilePath=./postflight,
NSURL=file://localhost/Volumes/libavg.pkg%201/libavg.pkg#dist.pkg,
PKInstallPackageIdentifier=org.c-base.libavg.dist.pkg,
NSLocalizedDescription=An error occurred while running scripts from
the package “libavg.pkg”.} {
    NSFilePath = "./postflight";
    NSLocalizedDescription = "An error occurred while running scripts
from the package \U201clibavg.pkg\U201d.";
    NSURL = "file://localhost/Volumes/libavg.pkg%201/libavg.pkg#dist.pkg";
    PKInstallPackageIdentifier = "org.c-base.libavg.dist.pkg";
}

When I try the sources I've got the following:

libtool: compile:  gcc -O3 -gstabs -Wall -pipe
-I/Users/oleksandr/Documents/Projects/libavg/include -I./include
-D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX
-fvisibility=hidden -force_cpusubtype_ALL -fpascal-strings -c
./src/video/SDL_cursor.c -o build/SDL_cursor.o
/bin/sh ./libtool --mode=compile gcc -O3 -gstabs -Wall -pipe
-I/Users/oleksandr/Documents/Projects/libavg/include  -I./include
-D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX
(Continue reading)

Ulrich von Zadow | 20 Nov 2011 02:37
Picon

Re: OSX 11.* Support?

Hi Alex,

sorry for the late reply, I'm not in the office at the moment. I'll be
back end of the coming week.

In the meantime:

- for the installer: This is the post-install script failing, so the
install itself probably went through without any problems. Try executing
the tests as explained on the install page and see what happens. It looks
like you might run into the long startup times issue, though:
http://www.libavg.de/wiki/MacInstallIssues

- For the source install: Try updating SDL in the dependencies -  they've
fixed some Lion-related issues if I remember correctly.

Cheers,

  Uli

Alexander Lobunets wrote:
> Hi Ulrich!
>
> The installer just says Failed and the following message can be found
> in the console:
>
> 11/16/11 11:16:01.069 AM installd: PackageKit: Install Failed: Error
> Domain=PKInstallErrorDomain Code=112 "An error occurred while running
> scripts from the package “libavg.pkg”." UserInfo=0x7fd83be28d90
> {NSFilePath=./postflight,
(Continue reading)

Alexander Lobunets | 21 Nov 2011 10:35
Picon

Re: OSX 11.* Support?

Uli, thanks for suggestions.

1. I've tried to run tests using python2.6 and libavg installed using
the Installer (with failed post-install script). The result:
$ cd /Library/Python/2.6/site-packages/libavg/avg/test
$ python2.6 Test.py
Segmentation fault: 11

2. Sources: I've replaced the SDL 1.2.14 with non-stable 1.3 from
mercurial repository. The error has changed to the following:
	/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I..
-I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1
-DDEPENDS_ON_LIBINTL=1  -I../intl
-I///Users/oleksandr/Documents/Projects/libavg/include/libxml2
-I./libcroco  -I/Users/oleksandr/Documents/Projects/libavg/include
-O3 -gstabs -Wall -pipe  -c -o strstr.lo strstr.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\"
-DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I..
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl
-I///Users/oleksandr/Documents/Projects/libavg/include/libxml2
-I./libcroco -I/Users/oleksandr/Documents/Projects/libavg/include -O3
-gstabs -Wall -pipe -c strchrnul.c -o strchrnul.o
stpncpy.c:34: error: expected declaration specifiers or ‘...’ before
numeric constant
stpncpy.c:34: error: expected ‘)’ before ‘!=’ token
stpncpy.c:34: error: expected ‘)’ before ‘?’ token
make[4]: *** [stpncpy.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\"
(Continue reading)


Gmane