freedib / lldbmi2

A simple MI interface to LLDB for Eclipse
Other
47 stars 16 forks source link

Build with cmake #17

Closed kenroser closed 8 years ago

kenroser commented 8 years ago

Create directory where you want to build LLDBMI2 From that directory run: cmake make make install

These instructions don't specify what "path_to_project_git" is. Earlier in that same documentation it says the way to check out the code is using: svn co https://github.com/freedib/lldbmi2.git lldbmi2. I'm assuming "path_to_project_git" is the directory in this checkout that contains the CMakeLists.txt file.

When I run cmake I get the error: fatal: Not a git repository (or any of the parent directories): .git

I think this is happening because the CMakeLists.txt is causing a usage of "git log" and this svn checkout doesn't look like a git checkout.

So does that mean I need to check out this code with git to have cmake work?

freedib commented 8 years ago

Corrected instructions. with examples

hchesser commented 7 years ago

I'm getting a CMake Error after cloning the repo:

-- The C compiler identification is AppleClang 8.0.0.8000042 -- The CXX compiler identification is AppleClang 8.0.0.8000042 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LLDB_LIBRARY (ADVANCED) linked by target "lldbmi2" in directory /Users/.../lldbmi2

-- Configuring incomplete, errors occurred! See also "/Users/.../lldbmi2/build/CMakeFiles/CMakeOutput.log".

I've attached the log (as a text file)

I am on a MacBook Retina, running OS X Sierra 10.12.3. I have lldb installed, version lldb-360.1.70

CMakeOutput.txt

shellscope commented 7 years ago

@hchesser I had the same problem, apparently there is a path hardcoded to Xcode in the CMakeLists.txt, so just make sure that your Xcode in the Applications folder is called Xcode and not Xcode-beta (like in my case).