Page 1 of 1

Compile source code with xcode

Posted: 11 Oct 2010 17:43
by GioTakeOff
Hi, I'm a new member of this community and I'm very happy. :)

I have a problem with source code. I can not compile the source code with Xcode.
I downloaded source code for the iOS (IPad) and into zip file there are three folder: "MediaLibraryKit", "MobileVLC" and "vlc".
do someone knows how to compile and run VLC from simulator??

Thanks and sorry for my english. I'm italian.

Re: Compile source code with xcode

Posted: 20 Oct 2010 14:12
by kengrant
Has any manged to compile the source code yet? If so it would be great for some help - I'm in the same boat as the original poster.

TA.

Re: Compile source code with xcode

Posted: 31 Oct 2010 11:18
by doraemon
Me too. I've seen other posts (viewtopic.php?f=32&t=83187) of people successfully using it, so clues v welcome!

Re: Compile source code with xcode

Posted: 08 Nov 2010 22:07
by alestanga
any clue?
i own an iPhone 3G so i'd like to build it for my "old" device since App Store version is 3GS or newer only...
i'm a registered developer so i could easily install it on my iPhone 3G and iPod 1G once i'll got it working :)
can someone explain how to build the source code with XCode and iOS SDK 4.2 GM?

thanks.
Ale.

Re: Compile source code with xcode

Posted: 09 Nov 2010 00:53
by Jean-Baptiste Kempf
Unzip the sources and build all modules

Re: Compile source code with xcode

Posted: 10 Nov 2010 20:04
by alestanga
Unzip the sources and build all modules
last time i tried i got a lot of dependency errors.
wich i have to build first?
i have to install the frameworks in the Mac's Library?
thanks!

Re: Compile source code with xcode

Posted: 11 Nov 2010 08:54
by n0n0
Same for me.

I've also tried to compile using the batch buildMobileVLC.sh
By renaming the directory VLC-1.1.0-iOS to vlc, I get a lot of errors but a ** BUILD SUCCEEDED ** message at the end.
But no idea if the application is there or not.

I've also installed the GIT package as the batch is using it.

Thanks for any info

Re: Compile source code with xcode

Posted: 17 Nov 2010 08:41
by n0n0
At the moment, the only clues I found coming from j-b are:

1- Unzip the sources and build all modules
-> I did it but get a lot of dependency errors

2- Look at the MobileVLC.git
-> I can't find this file in the unzipped archives

What should I do next?

Thanks

Re: Compile source code with xcode

Posted: 18 Nov 2010 03:41
by ian168
Hi all,
I have the same topic at how to compiler vlc with iOS,
Does anyone provide the method in detail?

Thanks a lot !!!
Ian

Re: Compile source code with xcode

Posted: 26 Nov 2010 09:27
by n0n0
Hello,
Seems we are at least 6 persons blocked when trying to compile VLC with Xcode...
Any other clues will be very usefull.
Thanks

Re: Compile source code with xcode

Posted: 26 Nov 2010 14:58
by lstsi
Hi,

have same issues to compile download packages from website.

Even to get latest source through git failed:

Code: Select all

git clone git://git.videolan.org/MobileVLC.git Cloning into MobileVLC... fatal: The remote end hung up unexpectedly
Any help is appreciated,
Lutz

Re: Compile source code with xcode

Posted: 29 Nov 2010 00:24
by Dionysiac
I have just finished building VLC for iPad both simulator and device. It was a bit of a mission to be honest.
The issue with not being able to clone from git was a server problem. That got fixed following a message to the @videolan twitter account. Thanks for the quick turnaround.

For the rest of the steps I have posted a guide on my blog http://rick-hawkins.blogspot.com/2010/1 ... -ipad.html.

Hope this helps.

Rick

Re: Compile source code with xcode

Posted: 29 Nov 2010 11:55
by Dionysiac
any clue?
i own an iPhone 3G so i'd like to build it for my "old" device since App Store version is 3GS or newer only...
i'm a registered developer so i could easily install it on my iPhone 3G and iPod 1G once i'll got it working :)
I don't think the old 3G will have enough grunt. Memory and processor are just a little bit too limited. Same for the 1st gen ipod. Would love to be proved wrong tho.

Re: Compile source code with xcode

Posted: 05 Dec 2010 18:11
by alestanga
For the rest of the steps I have posted a guide on my blog http://rick-hawkins.blogspot.com/2010/1 ... -ipad.html.
i tried your way.
i get these warnings/errors while executing the buildMobileVLC.sh:

Code: Select all

[info] Building libvlc for the iOS [info] Using armv7 with SDK version 4.2 [info] Building contrib for iOS in '/Users/ale/Desktop/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10' make[1]: warning: -jN forced in submake: disabling jobserver mode. make[1]: warning: -jN forced in submake: disabling jobserver mode. [info] Building contrib for current host [info] Bootstraping vlc configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used configure: WARNING: using cross tools not prefixed with host triplet configure: WARNING: Library libnotify needed for notify was not found configure: WARNING: TagLib library not found configure: WARNING: Library libraw1394 >= 2.0.1 libdc1394-2 >= 2.1.0 needed for dc1394 was not found configure: WARNING: Library libraw1394 >= 2.0.1 libavc1394 >= 0.5.3 needed for dv was not found configure: WARNING: Library dvdread needed for dvdread was not found configure: error: Package requirements (dvdnav) were not met: No package 'dvdnav' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables DVDNAV_CFLAGS and DVDNAV_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
is this correct?
i have something like 99 errors in xcode when i try to build the project either for the simulator and the device...

Re: Compile source code with xcode

Posted: 06 Dec 2010 00:39
by Dionysiac
I got a lot of compiler/linker warnings and "errors" but at the end of the script it reported success.
Don't even try to run it in XCode until the aggregate libraries are built.
Sorry I can;t be much more help here.
The method I posted worked for me, perhaps you have a different Xcode/SDK/OS combo?

Re: Compile source code with xcode

Posted: 06 Dec 2010 10:22
by alestanga
i solved the dvdnav error adding --enable-dvdnav=no at the end of the build.sh script inside the vlc/extras/packages/ios folder.
now i have a new problem to solve:

Code: Select all

The following build commands failed: MobileVLC: Ld /Users/ale/Desktop/MobileVLC/build/Release-iphoneos/VLC.app/VLC normal armv6 (1 failure)
i tried both armv6 and 7 in the build.sh script but i can't get rid of this error...
it has something to do with the architectures and the linker... i have to figure where's the problem :)

i'm using Mac OSX 10.6.5, xCode 3.2.5 with iOS SDK 4.2 and an iPhone 3G with iOS 4.2.1 GM.
now i'll try to delete the MobileVLC folder and then rebuilt the whole thing.

Re: Compile source code with xcode

Posted: 07 Dec 2010 12:24
by Jean-Baptiste Kempf
Keep us posted!

Re: Compile source code with xcode

Posted: 07 Dec 2010 16:50
by alestanga
Keep us posted!
i gave up yesterday afternoon.
i'll buy an iPhone 5 sooner or later :P

there must be something wrong with the linker.
there are no problems generating an arm7 executable but VLC crashes after few seconds on the iPhone 3G. (i also changed the minimum system requirement from arm7 to arm6)
when i changed arm7 to arm6 in the build.sh scripr (to generate an arm6 binary) i got all of those ld errors.
i tried changing arm7 to arm6 in every related project (MobileVLCKit and so on) but it didn't helped.
let me now if someone someday will be able to build an arm6 version of VLC :)

Re: Compile source code with xcode

Posted: 13 Dec 2010 11:41
by n0n0
I have tried the documentation provided by Dyonisia but I'm stuck at the begininning :

Code: Select all

git clone git://git.videolan.org/MobileVLC.git Cloning into MobileVLC... fatal: The remote end hung up unexpectedly
Any idea why I get this error message?
Thanks

Re: Compile source code with xcode

Posted: 13 Dec 2010 18:12
by Jean-Baptiste Kempf
I have tried the documentation provided by Dyonisia but I'm stuck at the begininning :

Code: Select all

git clone git://git.videolan.org/MobileVLC.git Cloning into MobileVLC... fatal: The remote end hung up unexpectedly
Any idea why I get this error message?
Thanks
Fixed.