Page 1 of 1

Building latest <develop> branch on OS X

Posted: Mon Jun 22, 2015 2:11 pm
by trevordevore
I went through the ReadMe for building new gyp-based projects on OS X. I'm having trouble building in Xcode, however. Here is what I did on OS X 10.9.5 with Xcode 6.2 installed in the standard location (/Applications/Xcode.app):

1) make config-mac
2) Tried opening various project files from the build-mac folder in order to compile them. I started with livecode.xcodeproj but also tried engine/engine.xcodeproj. When I try to compile these projects I get an error from revsecurity about a missing -lcustomcrypto library. Here is the full error message:

Code: Select all

Ld /Users/trevordevore/Development/livecode/_build/mac/Debug/revsecurity.dylib normal i386
    cd /Users/trevordevore/Development/livecode/thirdparty/libopenssl
    export MACOSX_DEPLOYMENT_TARGET=10.6
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/trevordevore/Development/livecode/_build/mac/Debug -L../../prebuilt/lib/mac -F/Users/trevordevore/Development/livecode/_build/mac/Debug -filelist /Users/trevordevore/Development/livecode/_cache/mac/Debug/revsecurity.build/Objects-normal/i386/revsecurity.LinkFileList -exported_symbols_list /Users/trevordevore/Development/livecode/_build/mac/DerivedSources/Debug/src/sslstubs.mac.symlist -install_name /usr/local/lib/revsecurity.dylib -mmacosx-version-min=10.6 -lcustomcrypto -lcustomssl -single_module -Xlinker -dependency_info -Xlinker /Users/trevordevore/Development/livecode/_cache/mac/Debug/revsecurity.build/Objects-normal/i386/revsecurity_dependency_info.dat -o /Users/trevordevore/Development/livecode/_build/mac/Debug/revsecurity.dylib

ld: library not found for -lcustomcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I did a search through the livecode repository and only came across -lcustomcrypto for the Linux build. Is it supposed to be included on OS X? Any suggestions on how to get the engine building again?

Re: Building latest <develop> branch on OS X

Posted: Tue Jun 23, 2015 5:25 pm
by trevordevore
@LCFraser helped me out with this. Because of the gyp changes I had to clean up my local git repository. I deleted ./prebuilt/fetched, ./prebuilt/lib, and ./prebuilt/include prior to building. I also deleted _build and _cache and thirdparty/_build and thirdparty/_cache.

Re: Building latest <develop> branch on OS X

Posted: Tue Jun 23, 2015 6:21 pm
by trevordevore
BTW, if you want to run the IDE from Xcode, open the livecode.xcodeproj file and do the following:

1) Select the <Livecode-all> target.
2) Build it.
3) Select the <development> target.
4) Press the Play button in the toolbar. The IDE should launch.

Re: Building latest <develop> branch on OS X

Posted: Thu Jun 25, 2015 3:48 am
by monte
Thanks, should this be moved or copied to the engine forum

Re: Building latest <develop> branch on OS X

Posted: Thu Jul 09, 2015 6:25 pm
by mwieder
Yeah, thanks, Trevor.

In addition, in my conversation with Mark and Peter in the engine contributors thread http://forums.livecode.com/viewtopic.php?f=66&t=21543 it seems that the rev team developers have separate git repositories for the different develop-* branches. And I've been unable to successfully switch between the different develop branches in a single repository after the gyp migration, due to anomalies with the prebuilt directory, so that does make sense.