Page 1 of 1

A problem with compile VLCKit

Posted: 26 Nov 2009 04:10
by RAGOpoR
according to this page http://wiki.videolan.org/Mac_OS_X_Framework
i build the core components complete but when i try to build framework it have an error
How could i fix it?

Code: Select all

Build VLCKit of project VLCKit with configuration Debug PhaseScriptExecution "Run Script" build/VLCKit.build/Debug/VLCKit.build/Script-EF78BD2E0CAEEF9500354E6E.sh cd /Users/ragopor/vlc/projects/macosx/framework /bin/sh -c /Users/ragopor/vlc/projects/macosx/framework/build/VLCKit.build/Debug/VLCKit.build/Script-EF78BD2E0CAEEF9500354E6E.sh Building modules folder... find: /Users/ragopor/vlc/projects/macosx/framework/build/vlc_build_dir/modules: No such file or directory Removing module libmacosx_plugin.dylib rm: /Users/ragopor/vlc/projects/macosx/framework/build/Debug/VLCKit.framework/Versions/A/modules/libmacosx_plugin.dylib: No such file or directory Building library folder... Building share folder... Headers not needed for this product Ld build/Debug/VLCKit.framework/Versions/A/VLCKit normal i386 cd /Users/ragopor/vlc/projects/macosx/framework setenv MACOSX_DEPLOYMENT_TARGET 10.6 /Developer/usr/bin/llvm-gcc-4.2 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/ragopor/vlc/projects/macosx/framework/build/Debug -L/Users/ragopor/vlc/projects/macosx/framework/build/Debug/VLCKit.framework/lib -F/Users/ragopor/vlc/projects/macosx/framework/build/Debug -filelist /Users/ragopor/vlc/projects/macosx/framework/build/VLCKit.build/Debug/VLCKit.build/Objects-normal/i386/VLCKit.LinkFileList -install_name @loader_path/../Frameworks/VLCKit.framework/Versions/A/VLCKit -mmacosx-version-min=10.6 -single_module -read_only_relocs suppress -lvlc -framework Cocoa -framework QuartzCore -single_module -compatibility_version 1 -current_version 1 -o /Users/ragopor/vlc/projects/macosx/framework/build/Debug/VLCKit.framework/Versions/A/VLCKit ld: library not found for -lvlc collect2: ld returned 1 exit status Command /Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

Re: A problem with compile VLCKit

Posted: 04 Dec 2009 10:50
by marcelerz
Hi!

I found a different way to compile the kit. Here is the way I got it to work:

-Download the head with git by entering following command in the terminal:
> git clone git://git.videolan.org/vlc.git

-Then go to vlc/projects/macosx/framework and open the vlckit project.
-Select as target "vlc-contrib-core-framework" and hit build. This downloads all dependencies and compiles required binaries as the vlc library. To compile the project, you need to have gcc 4.2, otherwise you will get a compiler error. The compiling takes a while and even may throw errors for some binaries which cannot be installed, but it seems not to be required.
-To check if everything works: Select the vlckit as target and hit build. Should compile without any error.

I don't know why the wiki doesn't explain this way; it is much easier than the way they describe it and it even works.

Enjoy your vlc-kit!

Marcel Erz