vgvassilev / cling

The interactive C++ interpreter Cling
https://rawgit.com/vgvassilev/cling/master/www/index.html
Other
1.76k stars 102 forks source link

Compile cling using Xcode #188

Open lucasribeiroufrj opened 5 years ago

lucasribeiroufrj commented 5 years ago

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,

vgvassilev commented 5 years ago

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.

lucasribeiroufrj commented 5 years ago

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?