2017-10-24 1 views
1

Ubuntu LTS 14.04を使用しています。私は修正ドキュメントhttps://github.com/eranif/codeliteを相談した後 :CMakeエラー:名前付きジェネレータを作成できませんでした。CodeLite - Unix Makefiles

cmake_minimum_required (VERSION 3.5) 

project (HelloWorld) 

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -std=c++14") 
set (source_dir "${PROJECT_SOURCE_DIR}/src/") 

file (GLOB source_files "${source_dir}/*.cpp") 

add_executable (HelloWorld ${source_files}) 

build.sh:

#!/bin/sh 

cmake -G "CodeLite - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug 

EDIT は、このチュートリアルTheChernoProject How to Setup C++ on Linux

CMakeLists.txt以下のC++で開発するcodeliteを設定しようとすると、 build.shへ:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug 

となりました。そして、出力を与えた:

-- The C compiler identification is GNU 4.8.4 
-- The CXX compiler identification is GNU 4.8.4 
-- Check for working C compiler: /usr/bin/cc 
-- Check for working C compiler: /usr/bin/cc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Check for working CXX compiler: /usr/bin/c++ 
-- Check for working CXX compiler: /usr/bin/c++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Configuring done 
-- Generating done 

HelloWorldのワークスペースが

+0

エラー全体ですか、他のコンテキストはありませんか? –

+0

build.shを実行すると、それはすべて端末の出力です。 – Ahmed

+0

同じエラーが発生しました。 Linux Mintを実行中18.3 – ES3178

答えて

1

を生成していなかったしかし、私は純粋にCodeLiteを使用して最初から新鮮なプロジェクトを作成し、それが私のためにcmakeのファイルを生成しました。すべてが完璧に働いた。

+0

何らかの理由で、新しいプロジェクトを作成しようとするたびにcodeliteがクラッシュする – Ahmed

+0

ああ!私はあなたのためにこれを見つけました:https://stackoverflow.com/questions/26603375/codelite-crashes-after-clicking-new-workspace-or-creating-new-project-in-ubuntu – ES3178

+0

これはまさに私が必要としていたものでした。ワークスペースを作成し、新しいプロジェクトを作成すると、すべてがビルドされ、期待どおりに実行されます。 – Ahmed

関連する問題