Linux-Noob Forums

Full Version: How do I install CMake
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

[/url][url=http://www.cmake.org/HTML/Install.html]http://www.cmake.org/HTML/Install.html

 

I have downloaded the program, and extracted both the initial file, and the included

tar. The tar extracted to /usr/local/

 

The instructions then tell me to do ./bootstrap? I typed that and there is no such

file. I did a updatedb, and a locate, but still I don't see it. I am confused, what do

I do now? (Fedora Core 4)


I have got that working, now I am trying to use it to install:

 

[/url][url=http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD]http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD

 

Using these directions:

1. Change to the directory where the archive was extracted into. For example,

if you unpacked the toolkit in /opt/Pawn, go to that directory.

 

2. Launch "ccmake ." (the "." stands for the current directory).

 

3. Press the "c" key for "configure". After an initial configuration, you may

have items in the list that have a "*" in front of their value. These may

need adjustment, for instance the "EXECUTABLE_OUTPUT_PATH" item. After

adjustment, you type "c" once more.

 

4. Press the "g" button for "generate and quit". Then build the program by

typing "make".

 

First, I get an error no CMakeList.txt.. so I located that file in two place:

 

dir/sources/compiler

and

dir/sources/amx

 

I ran it in both of those (Ccmake):

Runs fine, but when I do the command "make" I get errors:

 

Building dependencies. cmake.depends...

Building executable /home/visualcode/pawn/source/compiler/pawncc...

/home/visualcode/pawn/source/compiler/libpawnc.so: undefined reference to `pthread_getspecific'

/home/visualcode/pawn/source/compiler/libpawnc.so: undefined reference to `pthread_key_delete'

/home/visualcode/pawn/source/compiler/libpawnc.so: undefined reference to `pthread_once'

/home/visualcode/pawn/source/compiler/libpawnc.so: undefined reference to `pthread_key_create'

/home/visualcode/pawn/source/compiler/libpawnc.so: undefined reference to `pthread_setspecific'

collect2: ld returned 1 exit status

make[1]: *** [/home/visualcode/pawn/source/compiler/pawncc] Error 1

make: *** [default_target] Error 2

 

What can I do?


"pthreads" sounds like perl threads.. maybe check to see if your perl supports threads..

 

ive installed cmake.. will download pawncc and give it a go later..


i was wrong with my guess pthread = posix threads...

 

 

do this:

 



Code:
ccmake .
t




 

Alter:



Code:
CMAKE_EXE_LINKER_FLAGS  -lrt




 

Then continue with:



Code:
c
g
make




 

Thats it...

Perfect, thank you!