Forums » StepMania Releases » Installing SM5 on Linux

Hi Kyzentun,

I followed your instructions but I recieve an error from Cmake.

This is what I recieve:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c

The output was:
No such file or directory


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2191656839/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2191656839.dir/build.make CMakeFiles/cmTryCompileExec2191656839.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -c /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2191656839
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2191656839.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -o cmTryCompileExec2191656839 -rdynamic
CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2191656839] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2191656839/fast] Error 2

File /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3312765619/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3312765619.dir/build.make CMakeFiles/cmTryCompileExec3312765619.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3312765619
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3312765619.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -o cmTryCompileExec3312765619 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3312765619] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3312765619/fast] Error 2

Any help would be appreicated.
Reply
If you already installed the libc6-dev package, then try installing the libpthread-stubs0-dev package.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
I have installed both. Same or similar error.j

Spoiler (click to view)Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c

The output was:
No such file or directory


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2191656839/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2191656839.dir/build.make CMakeFiles/cmTryCompileExec2191656839.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -c /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2191656839
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2191656839.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -o cmTryCompileExec2191656839 -rdynamic
CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2191656839] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2191656839/fast] Error 2

File /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3312765619/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3312765619.dir/build.make CMakeFiles/cmTryCompileExec3312765619.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3312765619
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3312765619.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -o cmTryCompileExec3312765619 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3312765619] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3312765619/fast] Error 2

Reply
What about the gcc or gcc-4.9 package?
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
These were already installed. I installed everything similar as well.

Spoiler (click to view)Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c

The output was:
No such file or directory


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2191656839/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2191656839.dir/build.make CMakeFiles/cmTryCompileExec2191656839.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -c /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2191656839
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2191656839.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o -o cmTryCompileExec2191656839 -rdynamic
CMakeFiles/cmTryCompileExec2191656839.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2191656839] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2191656839/fast] Error 2

File /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3312765619/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3312765619.dir/build.make CMakeFiles/cmTryCompileExec3312765619.dir/build
make[1]: Entering directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3312765619
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3312765619.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3312765619.dir/CheckFunctionExists.c.o -o cmTryCompileExec3312765619 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3312765619] Error 1
make[1]: Leaving directory `/home/homeuser/stepmania/Build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3312765619/fast] Error 2

Reply
I noticed that my error log also has that in it. Did it generate a Makefile in the Build dir when you ran cmake? If it did, then you might be able to build anyway.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
So it doesn't seem to work as there is nothing to compile when I do the "make -J8"
I get this in the Terminal Window:

Spoiler (click to view)-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
-- -- At least one sound library was found. Do not worry if any were not found at this stage.
-- Could NOT find VA (missing: VA_LIBRARY VA_INCLUDE_DIR)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindGLEW.cmake:27 (find_package_handle_standard_args)
StepmaniaCore.cmake:323 (find_package)
CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "/home/homeuser/stepmania/Build/CMakeFiles/CMakeOutput.log".
See also "/home/homeuser/stepmania/Build/CMakeFiles/CMakeError.log".


Thanks for the assistance.
Reply
Well that looks like you're missing GLEW, which should be in one of the libglew dev packages. There is more than one, get the highest in the 1.x series that your package manager lists.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply