build 1.0.1 failure

macOS specific usage questions
Pam
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2009 22:29

build 1.0.1 failure

Postby Pam » 13 Aug 2009 22:43

I just got a new Macbook Pro and had MacOSX completely reinstalled on it. So I started with a clean hard disk. I upgraded the machine to latest version of Apple software: Mac OS/X is 10.5.8

I'm following the instructions on the wiki for compiling under MacOSX. I installed the latest iPhone SDK 3.0 which included XCode v3.1.3. I downloaded the v1.0.1 tarball and followed the instructions:
cd extras/contrib
./bootstrap
make
cd ../..
./bootstrap
Setup the correct exports on CC,CXX,OBJC to point to the llvm compilers that do exist in the default area.

./configure --enable-debug --with-mozilla-sdk-path=./extras/contrib/gecko-sdk --enable-mozilla

was successful. However, the make fails:

export MACOSX_DEPLOYMENT_TARGET=10.5
make all-recursive
Making all in po
Making all in compat
/bin/sh ../libtool --tag=CC --mode=compile /Developer/usr/bin/llvm-gcc-4.2 -std=gnu99 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/Users/pameladragosh/src/vlc-1.0.1/./extras/contrib/include -DSYS_DARWIN -I/Users/pameladragosh/src/vlc-1.0.1/./extras/contrib/include -D_INTL_REDIRECT_MACROS -DMACOSX_DEPLOYMENT_TARGET=10.5 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT strndup.lo -MD -MP -MF .deps/strndup.Tpo -c -o strndup.lo strndup.c
../libtool: line 844: X--tag=CC: command not found
../libtool: line 877: libtool: ignoring unknown tag : command not found
../libtool: line 844: X--mode=compile: command not found
../libtool: line 1011: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1012: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1155: X/Developer/usr/bin/llvm-gcc-4.2: No such file or directory
../libtool: line 1155: X-std=gnu99: command not found
../libtool: line 1155: X-isysroot: command not found
../libtool: line 1155: X/Developer/SDKs/MacOSX10.5.sdk: No such file or directory
../libtool: line 1155: X-mmacosx-version-min=10.5: command not found
../libtool: line 1155: X-DHAVE_CONFIG_H: command not found
../libtool: line 1155: X-I.: command not found
../libtool: line 1155: X-I..: command not found
../libtool: line 1155: X-I../include: No such file or directory
../libtool: line 1155: X-I../include: No such file or directory
../libtool: line 1155: X-I/Users/pameladragosh/src/vlc-1.0.1/./extras/contrib/include: No such file or directory
../libtool: line 1155: X-DSYS_DARWIN: command not found
../libtool: line 1155: X-I/Users/pameladragosh/src/vlc-1.0.1/./extras/contrib/include: No such file or directory
../libtool: line 1155: X-D_INTL_REDIRECT_MACROS: command not found
../libtool: line 1155: X-DMACOSX_DEPLOYMENT_TARGET=10.5: command not found
../libtool: line 1155: X-Wall: command not found
../libtool: line 1155: X-Wextra: command not found
../libtool: line 1155: X-Wsign-compare: command not found
../libtool: line 1155: X-Wundef: command not found
../libtool: line 1155: X-Wpointer-arith: command not found
../libtool: line 1155: X-Wbad-function-cast: command not found
../libtool: line 1155: X-Wcast-align: command not found
../libtool: line 1155: X-Wwrite-strings: command not found
../libtool: line 1155: X-Wmissing-prototypes: command not found
../libtool: line 1155: X-Wvolatile-register-var: command not found
../libtool: line 1155: X-Werror-implicit-function-declaration: command not found
../libtool: line 1155: X-MT: command not found
../libtool: line 1155: Xstrndup.lo: command not found
../libtool: line 1155: X-MD: command not found
../libtool: line 1155: X-MP: command not found
../libtool: line 1155: X-MF: command not found
../libtool: line 1155: X.deps/strndup.Tpo: No such file or directory
../libtool: line 1155: X-c: command not found
../libtool: line 1208: Xstrndup.lo: command not found
../libtool: line 1213: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [strndup.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Does any one have any ideas?

BTW I did try it with the latest source code via git, but it gave me the problem not have twolame installed.

Thanks,

Pam

Pam
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2009 22:29

Re: build 1.0.1 failure - more info

Postby Pam » 18 Aug 2009 23:28

Well, I did a git of an entirely new clone at 5:21pm EST, and now this went away. Although downloading the source for version 0.9.10 exhibited the same problem.

However, now that I've been able to get the make working, its still fails with some public key files:

=== BUILDING NATIVE TARGET vlc OF PROJECT vlc WITH THE DEFAULT CONFIGURATION (Default) ===

Checking Dependencies...

Processing /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Info.plist Info.plist
mkdir /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents
cd /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx
<com.apple.tools.info-plist-utility> Info.plist -expandbuildsettings -o /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Info.plist

CpResource build/Default/VLC.bundle/Contents/Resources/dsa_pub.pem Resources/dsa_pub.pem
mkdir /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Resources
cd /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/Resources/dsa_pub.pem /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Resources
pbxcp: dsa_pub.pem: No such file or directory

... Lots of useless output messages that don't indicate any errors or warnings ............


PBXCp build/Default/VLC.bundle/Contents/Frameworks/Sparkle.framework ../../contrib/Sparkle/Sparkle.framework
mkdir /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Frameworks
cd /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/../../contrib/Sparkle/Sparkle.framework /Users/pameladragosh/src/fromgit/vlc/tmp/extras/package/macosx/build/Default/VLC.bundle/Contents/Frameworks
** BUILD FAILED **

The following build commands failed:
vlc:
CpResource build/Default/VLC.bundle/Contents/Resources/dsa_pub.pem Resources/dsa_pub.pem
(1 failure)

make[2]: *** [VLC.app] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Does anyone know what I'm missing to get past this? Can I disable something in the configure step?

thanks,

Pam

ajmas
Big Cone-huna
Big Cone-huna
Posts: 935
Joined: 04 Feb 2006 07:33
VLC version: 3.0.x
Operating System: MacOS X
Location: Montreal, Canada

Re: build 1.0.1 failure

Postby ajmas » 21 Aug 2009 21:06

I'll just chime in and say I am experiencing the same issues. I am trying to see if any devs can help, but so far no luck. I would like to know what causes the build issue, so at least it can be documented. I am using XCode 3.1.3 on an Core 2 Duo based MacBook Pro, with MacOS X 10.5.8
Providing logs, messages, configuration info (VLC, OS, Hardware) and a clear explanation of the issue always helps the problem solvers help you, even if they don't end up solving the issue. Just think what you would need if you were solving someone else's problem. Additional: Always looking for eager and capable MacOS X developers to join the VLC team - for more information see here.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: build 1.0.1 failure

Postby fkuehne » 22 Aug 2009 01:36

The dsa_pub.pem issue is fixed now. Please update your git checkout and repeat the bootstrap-configure-mac process. An update is also available for the contrib (just make clean, bootstrap, make in there), but it's not required to compile VLC right now.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: build 1.0.1 failure

Postby fkuehne » 22 Aug 2009 01:37

Please note that I was never able to reproduce the libcompat issue listed at the beginning of the thread.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

ajmas
Big Cone-huna
Big Cone-huna
Posts: 935
Joined: 04 Feb 2006 07:33
VLC version: 3.0.x
Operating System: MacOS X
Location: Montreal, Canada

Re: build 1.0.1 failure

Postby ajmas » 22 Aug 2009 16:26

I first got the latest code:

Code: Select all

git clone git://git.videolan.org/vlc.git --depth 3
and then followed the steps in the wiki page. On calling make:

Code: Select all

libvlc configuration -------------------- version : 1.1.0-git system : darwin architecture : i386 mmx build flavour : debug devel vlc aliases : cvlc rvlc nvlc plugins/bindings : You can tune the compiler flags in vlc-config. To build vlc and its plugins, type `./compile' or `make'. ghostwalker2:vlc ajmas$ make export MACOSX_DEPLOYMENT_TARGET=10.5 make --quiet all-recursive Making all in po : --update af.po vlc.pot rm -f af.gmo && : -c --statistics -o af.gmo af.po mv: rename t-af.gmo to af.gmo: No such file or directory make[3]: *** [af.gmo] Error 1 make[2]: *** [stamp-po] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Providing logs, messages, configuration info (VLC, OS, Hardware) and a clear explanation of the issue always helps the problem solvers help you, even if they don't end up solving the issue. Just think what you would need if you were solving someone else's problem. Additional: Always looking for eager and capable MacOS X developers to join the VLC team - for more information see here.

carath63
Blank Cone
Blank Cone
Posts: 19
Joined: 21 Sep 2006 17:17

Re: build 1.0.1 failure

Postby carath63 » 26 Aug 2009 15:00

I have run into this issue as well. My configuration:
latest vlc source code from git
MacOSX 10.5.8
XCode 3.1.2

I took a look at config.log after the configure step and noticed that xgettext, msgfmt, etc. all failed with a dylib symbol lookup error between /usr/lib/libxslt.dylib and extras/contrib/lib/libxml2.dylib.

I found a libxml2.dylib in /usr/lib and assumed that configure was putting extras/contrib/lib in front of /usr/lib, and the version in extras/contrib was not compatible with libxslt in /usr/lib. I moved the extras/contrib/lib/libxml2 files to a backup directory and tried the configure again. This time xgettext failed with a conflict with libjpeg.dylib. I moved libjpeg to a backup and tried again. It then failed with libtiff, and eventually libpng as well. I imagine I can just continue doing this until all conflicts are resolved, but I have the feeling there is a better fix for this.

Anyone else come across this problem? How did you fix it?
Christopher A. Rath

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: build 1.0.1 failure

Postby fkuehne » 26 Aug 2009 22:18

Seems like the contrib package got corrupted on the last upgrade. I'll upload a fixed one soon. Please watch out for the commit and update your checkout afterwards.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

carath63
Blank Cone
Blank Cone
Posts: 19
Joined: 21 Sep 2006 17:17

Re: build 1.0.1 failure

Postby carath63 » 26 Aug 2009 22:46

Thanks. I will watch for the update and try again.

Does the corrupted contrib package apply to the binary or src or both versions? I have tried both building from src and just taking the binary contrib package and got the same results.
Christopher A. Rath

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: build 1.0.1 failure

Postby fkuehne » 27 Aug 2009 01:41

Updated binary packages are now available. Please make sure that you run "make clean" in extras/contrib before updating to the new version.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Pam
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2009 22:29

Re: build 1.0.1 failure

Postby Pam » 31 Aug 2009 20:56

Ok, I did a re-get and also changed CONTRIBREV=18 in the extras/contrib/Makefile to ensure that the latest contributions were brought down. It now compiles. The player works but the Firefox plugin does nothing, it simply hangs. I believe there is another thread regarding this issue.

Thanks,

Pam

jennix
New Cone
New Cone
Posts: 3
Joined: 04 Oct 2009 16:48

Re: build 1.0.1 failure

Postby jennix » 05 Oct 2009 18:13

I'm still back at your 8/13 post with the exact same failed make.

I'm using 3.1.4 X-code and 10.5.8 OSX on a new Macbook. I dont' know WTF "git of an entirely new clone..." means, but

binkley:vlc-1.0.2 jennix$ git clone git://git.videolan.org/vlc.git --depth 3
-bash: git: command not found

how about a little help in plain english? anybody? I'd like the last two hours of my effin' life back too. I'd like to know why the hell i have to go through all this bullshit because of some stupid effin legality too, but that's probably more pointless than making me do the whole T^&I&^%^&*(*%R$^&*u compile in the first %^&*(*&%^R&Y place!

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: build 1.0.1 failure

Postby fkuehne » 06 Oct 2009 13:17

git is not installed on your Mac (or your PATH variable is set incorrectly). There are both binary and source versions of git available for Mac OS X by their respective maintainers.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

user411
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Mar 2008 22:47

build 1.0.2 failure

Postby user411 » 08 Oct 2009 16:29

I had the same issue as the first post, but with the 1.0.2 source using Mac OS X 10.5.5 and XCode 3.1.4 on an Intel Core 2 based notebook.

Compiling from git looked promising, but eventually it errors out starting with

...
In file included from playlist.m:42:
../../../include/vlc_keys.h:89: error: expected declaration specifiers or ‘...’ before ‘KeyToString’
../../../include/vlc_keys.h:89: error: expected declaration specifiers or ‘...’ before ‘(’ token
...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: build 1.0.1 failure

Postby Jean-Baptiste Kempf » 08 Oct 2009 19:29

Well, git is 1.1.0 and is under heavy development. Update your tree to latest version or revert a few commits.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests