Building latest <develop> branch on OS X

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Building latest <develop> branch on OS X

Post by trevordevore » Mon Jun 22, 2015 2:11 pm

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?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Building latest <develop> branch on OS X

Post by trevordevore » Tue Jun 23, 2015 5:25 pm

@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.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Building latest <develop> branch on OS X

Post by trevordevore » Tue Jun 23, 2015 6:21 pm

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.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Building latest <develop> branch on OS X

Post by monte » Thu Jun 25, 2015 3:48 am

Thanks, should this be moved or copied to the engine forum
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Building latest <develop> branch on OS X

Post by mwieder » Thu Jul 09, 2015 6:25 pm

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.

Post Reply

Return to “LiveCode Builder”