Compile source code with xcode

macOS specific usage questions
GioTakeOff
New Cone
New Cone
Posts: 1
Joined: 11 Oct 2010 17:23

Compile source code with xcode

Postby GioTakeOff » 11 Oct 2010 17:43

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.

kengrant
New Cone
New Cone
Posts: 1
Joined: 20 Oct 2010 14:09

Re: Compile source code with xcode

Postby kengrant » 20 Oct 2010 14:12

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.

doraemon
New Cone
New Cone
Posts: 9
Joined: 16 Jul 2010 14:27

Re: Compile source code with xcode

Postby doraemon » 31 Oct 2010 11:18

Me too. I've seen other posts (viewtopic.php?f=32&t=83187) of people successfully using it, so clues v welcome!

alestanga
New Cone
New Cone
Posts: 5
Joined: 08 Nov 2010 22:01

Re: Compile source code with xcode

Postby alestanga » 08 Nov 2010 22:07

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.

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: Compile source code with xcode

Postby Jean-Baptiste Kempf » 09 Nov 2010 00:53

Unzip the sources and build all modules
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.

alestanga
New Cone
New Cone
Posts: 5
Joined: 08 Nov 2010 22:01

Re: Compile source code with xcode

Postby alestanga » 10 Nov 2010 20:04

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!

n0n0
New Cone
New Cone
Posts: 9
Joined: 11 Nov 2010 08:47

Re: Compile source code with xcode

Postby n0n0 » 11 Nov 2010 08:54

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

n0n0
New Cone
New Cone
Posts: 9
Joined: 11 Nov 2010 08:47

Re: Compile source code with xcode

Postby n0n0 » 17 Nov 2010 08:41

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

ian168
New Cone
New Cone
Posts: 6
Joined: 12 Nov 2010 13:02

Re: Compile source code with xcode

Postby ian168 » 18 Nov 2010 03:41

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

n0n0
New Cone
New Cone
Posts: 9
Joined: 11 Nov 2010 08:47

Re: Compile source code with xcode

Postby n0n0 » 26 Nov 2010 09:27

Hello,
Seems we are at least 6 persons blocked when trying to compile VLC with Xcode...
Any other clues will be very usefull.
Thanks

lstsi
New Cone
New Cone
Posts: 1
Joined: 26 Nov 2010 14:49

Re: Compile source code with xcode

Postby lstsi » 26 Nov 2010 14:58

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

Dionysiac
New Cone
New Cone
Posts: 6
Joined: 27 Nov 2010 11:13

Re: Compile source code with xcode

Postby Dionysiac » 29 Nov 2010 00:24

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

Dionysiac
New Cone
New Cone
Posts: 6
Joined: 27 Nov 2010 11:13

Re: Compile source code with xcode

Postby Dionysiac » 29 Nov 2010 11:55

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.

alestanga
New Cone
New Cone
Posts: 5
Joined: 08 Nov 2010 22:01

Re: Compile source code with xcode

Postby alestanga » 05 Dec 2010 18:11

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...

Dionysiac
New Cone
New Cone
Posts: 6
Joined: 27 Nov 2010 11:13

Re: Compile source code with xcode

Postby Dionysiac » 06 Dec 2010 00:39

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?

alestanga
New Cone
New Cone
Posts: 5
Joined: 08 Nov 2010 22:01

Re: Compile source code with xcode

Postby alestanga » 06 Dec 2010 10:22

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.

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: Compile source code with xcode

Postby Jean-Baptiste Kempf » 07 Dec 2010 12:24

Keep us posted!
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.

alestanga
New Cone
New Cone
Posts: 5
Joined: 08 Nov 2010 22:01

Re: Compile source code with xcode

Postby alestanga » 07 Dec 2010 16:50

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 :)

n0n0
New Cone
New Cone
Posts: 9
Joined: 11 Nov 2010 08:47

Re: Compile source code with xcode

Postby n0n0 » 13 Dec 2010 11:41

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

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: Compile source code with xcode

Postby Jean-Baptiste Kempf » 13 Dec 2010 18:12

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.
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 16 guests