LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2014, 01:20 PM   #1
sabresong
Member
 
Registered: Feb 2011
Location: Asheville, NC, USA
Distribution: Fedora 19
Posts: 36
Blog Entries: 1

Rep: Reputation: 2
Cmake fails with in-tree build even when in a different directory


I'm trying to build SDL2 for Linux Mint 15. It requires Cmake, but when I try to run cmake, it gives me this error:

Code:
Prevented in-tree built.  Please create a build directory outside of the SDL source code and call cmake from there
I get this message even when trying to build from an empty directory elsewhere in the file system. I've tried using a new build directory in the SDL2 directory, and in a new directory one level up from the SDL2 directory.

I read that on Windows systems, this can be caused by an out of date MingW version, so I checked the versions on gcc and cmake. They both seem to be current. I checked those because I *think* gcc is sort of the Linux versions of MingW.

Can someone help me figure out what I'm missing?

System:
HP 2000-416dx
AMD E-300 APU
Linux Mint 15 "Olivia" 64 bit
gcc version 4.7.3
cmake version 2.8.10.1
 
Old 06-02-2014, 11:55 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
gcc is sort of the Linux versions of MingW.
It's your c compiler
MinGW, a contraction of "Minimalist GNU for Windows"

From the man page for Cmake
Quote:
USAGE
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
DESCRIPTION
The "cmake" executable is the CMake command-line interface. It may be used to configure projects in scripts. Project configuration settings may be specified on the command line with the -D option. The -i option will cause cmake to interactively prompt for such settings.
Read the man page, if you have questions, make a list and post back.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] cmake build crashes when running as user Tim Johnson Slackware 10 10-15-2014 03:31 PM
[SOLVED] cmake : can't build the project Teufel Programming 1 10-07-2013 01:00 AM
X11R6 - PCSX2 cmake build problem Hyonane Slackware 3 09-20-2012 03:28 PM
Is it ok to build latest cmake dir in personal directory? agentchange Linux - Software 8 09-06-2008 06:35 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration