cling icon indicating copy to clipboard operation
cling copied to clipboard

Compile cling using Xcode

Open lucasribeiroufrj opened this issue 5 years ago • 2 comments

Hello,

I could not compile cling after generating a Xcode project using CMAKE.

  1. Is it possible to compile cling using Xcode?
  2. In case of a affirmative answer, how?

Thanks. Kind regards,

lucasribeiroufrj avatar Sep 16 '18 11:09 lucasribeiroufrj

It should be possible but we do not test it. You should be able to tell cmake to generate XCode project file. If you paste the error I may be more helpful.

vgvassilev avatar Sep 16 '18 14:09 vgvassilev

I’ve just managed. The problem is related to the three libraries:

libclingMetaProcessor.a libclingInterpreter.a libclingUtils.a

For some reason the three libraries mentioned are not being deployed to $(the path root folder)/src/build/Debug/lib/ but to (for example)

$(the path root folder)/src/build/tools/cling/lib/Utils/LLVM.build/Debug/obj.clingUtils.build/Objects-normal/libobj.clingUtils.a

I have hardcoded the solution using ln -s, for example:

$(the path root folder)/src/build/tools/cling/lib/Utils/LLVM.build/Debug/obj.clingUtils.build/Objects-normal/libobj.clingUtils.a $(the path root folder)/src/build/Debug/lib/libclingUtils.a

But, how can I fix it?

lucasribeiroufrj avatar Sep 16 '18 14:09 lucasribeiroufrj