cmake for version 4.1.2

Booting, installing, newbie
Post Reply
Message
Author
Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

cmake for version 4.1.2

#1 Post by Mercedes350se »

I need cmake for a project. I have downloaded and installed a number of versions of cmake but they are all missing a couple of libs.

Where can I download a version that will work out of the box on puppy 4.1.2?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#2 Post by mikeb »

2.4.8 Built from slackware...resquashed from lzm .. runs on 4.12. Includes documentation and install stuff so could probably be stripped..use as sfs or mount and manually add files.

https://www.dropbox.com/s/aj7z1lzhcj0ai ... 2.sfs?dl=1

If you are having a problem with this or any other you tried you might need a newer libstdc++...its a common need so worth updating

https://dl.dropboxusercontent.com/u/110 ... B13.tar.gz

mike
Last edited by mikeb on Wed 20 May 2015, 12:00, edited 1 time in total.

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#3 Post by Mercedes350se »

mikeb, Thank you but as I still have cmake-2.4.0 installed from last night I decided to try again.

When I run

Code: Select all

# cmake ../
cmake: /lib/libz.so.1: no version information available (required by cmake)
cmake: /lib/libc.so.6: version `GLIBC_2.7' not found (required by cmake
Both those library files are in /lib

Any ideas?

For the record I simply downloaded and extracted to /

Do I need to do anything else?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#4 Post by mikeb »

You either need to update glibc or use my sfs which works with glibc 2.6.1 happily.

Debian packages particularly force a higher glibc than actually needed.

mike

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#5 Post by Mercedes350se »

Downloaded the .sfs, mounted it and typed

Code: Select all

cmake ../
with exactly the same lib message as posted above.

Obviously I need some serious hand holding!

PS. I downloaded/installed the libstdc files.

EDIT: I still had another version of cmake which was the one beong called. After deleting it and mounting the .sfs I get a message saying I need version 2.6.

Life was not meant to be easy!

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#6 Post by mikeb »

Hmm so now it works but it want 2.6 ... fun isn't it. In some cases I have hacked the configure script(s) to allow an older version of such things and got away with it...otherwise its a case of a 4.12 puppy friendly newer cmake.....

http://ftp.slackware.com/.2/slackware/s ... ackware/d/

the cmake here is 2.6.2 and slackware 12.2...it MIGHT be ok on puppy 4.12...I cannot test at the moment... otherwise it may be a case of compiling it for yourself.

mike

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#7 Post by Mercedes350se »

Downloaded and extracted OK.

Ran

Code: Select all

# cmake ../
cmake: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
Copied the two files across from the Ubuntu install.

Ran

Code: Select all

# cmake ../
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/usr/src/rtl-sdr/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Oh dear!

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#8 Post by mikeb »

Hmm ok so now a running cmake.

Well when I built marble it comes with scripts to use cmake so my guess is the sources of the app you are building should set up all the build variables... have you tried building yet?

In my case I used the older cmake I gave you and just ran the marble build script....

mike

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#9 Post by Mercedes350se »

Searching the 'net seemed to indicate that I need "make".

I downloaded the devx_412.sfs to /

Clicked on it to mount it but still I get the same error messages.

If I do a pfind "make" is not found - however it is in /mnt/+devx_412.sfs/usr/bin

1. How do I make (sorry) it visible to the system?

2. Given that I have also installed a later version of "cmake" how do I hide the one that is also in the above directory? The compile requires the later version of cmake.

To try and answer my own questions I copied "make" to /usr/bin then assuming the old cmake was not visible

Code: Select all

# cmake ../
-- The C compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Build type not specified: defaulting to release.
-- libusb-1.0 not found.
-- Looking for include files CMAKE_HAVE_PTHREAD_H
CMake Error at /usr/share/cmake-2.6/Modules/CMakeCInformation.cmake:16 (GET_FILENAME_COMPONENT):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for include files CMAKE_HAVE_PTHREAD_H - not found.
-- Could NOT find Threads  (missing:  Threads_FOUND)
CMake Error at CMakeLists.txt:67 (message):
  LibUSB 1.0 required to compile rtl-sdr


-- Configuring incomplete, errors occurred!
It seems that simply clicking on the devx to mount it is not good enough. I have seen a thread on how to use the devx in a full HDD install. That will have to wait till tomorrow.

In the meantime the questions above are obviously still in need of an answer.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#10 Post by mikeb »

Hmm well that would explain a lot.

Once you have the devx properly installed then you may find all will work.

Ok if a later cmake is needed then the newer one would need adding after the original.

But this all seems a bit messy.... it may make more sense making a frugal developement system since you are dealing with devx and file you don't normally need to run rather than clog up your full install.
If you do DON"T do it on the same hard drive as a bug in puppy might just eat your full install for breakfast...use a flash stick or similar or another machine.

Or if its still a pain ask a looney like me to have a go at building it...just point me at the sources....I have 412 handy with dev files

mike

Post Reply