PDA

View Full Version : [ubuntu] cmaker problem



recycledhippy
March 23rd, 2009, 02:49 AM
I tried to run cmaker and I get a error that says

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a
simple test program.

It fails with the following output:





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)


CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done


any help would be great!!!

ibuclaw
March 23rd, 2009, 03:00 AM
Do you have g++ installed?


sudo apt-get install build-essential

Regards
Iain

recycledhippy
March 23rd, 2009, 03:12 AM
it appears maybe I didn't. Ill try cmaker again and let you know.

recycledhippy
March 23rd, 2009, 03:18 AM
it seems not all is good. Ineed to install something(see below) do you know how I ccan go about doing that? And how do I remove the cmakecache txt?







CMake Error at CMakeLists.txt:118 (MESSAGE):
LMMS requires libsndfile1 and libsndfile1-dev >= 1.0.11 - please install,
remove CMakeCache.txt and try again!

snova
March 23rd, 2009, 03:24 AM
LMMS requires libsndfile1 and libsndfile1-dev >= 1.0.11 - please install,

Install the libsndfile1-dev package, however you want. Quickest way through the terminal is:


sudo apt-get install libsndfile1-dev


remove CMakeCache.txt and try again!

Well, find the file and remove it. :) It should be in the current directory; wherever you're building it at.


rm CMakeCache.txt

recycledhippy
March 23rd, 2009, 03:33 AM
thanks for the help looks like I have another problem I have to figure out. I wish installing thing was easier in ubuntu!

snova
March 23rd, 2009, 03:38 AM
thanks for the help looks like I have another problem I have to figure out. I wish installing thing was easier in ubuntu!

It usually is. But compiling from source can be complicated, since there are no rules such downloads need abide by. They come in all shapes and sizes, plus you need to have various dependencies installed first.

Unless you know you need to build LMMS from source, is there any particular reason you cannot install from the repositories?

Open System -> Administration -> Synaptic; then search for and install 'lmms'. And that should be it.

recycledhippy
March 23rd, 2009, 03:44 AM
it's not the newest version. How can I go about getting the newest version?

snova
March 23rd, 2009, 04:03 AM
it's not the newest version.

Good enough for me. :)


How can I go about getting the newest version?

On their download page (http://lmms.sourceforge.net/download.php), I see they offer binaries for Ubuntu. It's a PPA (https://launchpad.net/~tobydox/+archive/ppa).

Now, adding a PPA is a slightly drawn-out process, but in the end it's much simpler than compiling from source. The instructions are here (https://help.launchpad.net/Packaging/PPA#Adding%20a%20PPA%20to%20your%20Ubuntu%20reposi tories).

First, we add the repository to your sources list. Open System -> Administration -> Software Sources (or similar, I forget what it's called). Go to the Third-Party Software tab, press Add, and paste this in:


deb http://ppa.launchpad.net/tobydox/ppa/ubuntu intrepid main

Download this (http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x02FE5F12ADDE29B2) file and save it somewhere. Go to the Authentication tab, press Import Key File and select the file you just downloaded.

Then close the window. It should prompt for you to reload, do so.

Then you should be able to open Synaptic and install the latest version of LMMS from it. It should automatically update itself with new releases, too.

recycledhippy
March 23rd, 2009, 06:04 PM
I got to the download the key file but your link is not a download its a page. how to I go about saving it? or is this the right thing?

recycledhippy
March 23rd, 2009, 07:10 PM
k nevermind I think I got it but there is no updated version in Synaptic