Error at compiling

565 views
Skip to first unread message

dumbul

unread,
Oct 25, 2010, 2:04:01 AM10/25/10
to C++ RTMP Server
Hello! I'm trying to install rtmpd to Debian.
But when try to generate makefile using Cmake by writing ../../../
cmake-2.6.3-Linux-i386/bin/cmake .
I get an error:
-- The C compiler identification is unknown
-- The CXX 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.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.
-- Looking for openssl headers - found
-- Looking for openssl library - found
-- Looking for crypto library - found
-- Looking for dl
-- Looking for libdl headers - found
-- Looking for libdl library - found
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /root/cmake-2.6.3-Linux-i386/share/cmake-2.6/Modules/
TestBigEndian.cmake:31 (MESSAGE):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:22 (TEST_BIG_ENDIAN)


-- Configuring incomplete, errors occurred!

Please help me to fix it...

C++ RTMP Server

unread,
Oct 25, 2010, 3:17:58 AM10/25/10
to c-rtmp...@googlegroups.com
As far as I see, you didn't setup your compiler properly. The message is quite clear:

CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND"

and

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND"

In console, type gcc or g++ and hit enter. Is it working? Also, please inspect the value of the following environment variables:

echo $CC

and

echo $CXX

Cheers,
Andrei

> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

------
Eugen-Andrei Gavriloaie
Web: http://www.rtmpd.com

Rani

unread,
Oct 25, 2010, 9:26:23 AM10/25/10
to C++ RTMP Server
Maybe you shoukd consider reinstall cmake (i have a debian lenny box
and looks like this):

1.
kajin:/# apt-get update
Hit http://ftp.lug.ro lenny Release.gpg
Hit http://ftp.lug.ro lenny Release
Ign http://ftp.lug.ro lenny/main Packages/DiffIndex
....
(if there is no package to upgrade...)
2.
kajin:/# apt-cache search cmake
cmake - A cross-platform, open-source make system
dart-client - a distributed testing and dashboard system client
icmake - Intelligent C-like MAKEr, or the ICce MAKE utility
libwibble-dev - Library of various useful C++ code
xutils-dev - X Window System utility programs for development

3.
if i search to lenny repository i would see that version of cmake is
2.6.0 and crtmp server would require at least version 2.6.3 of cmake
so i have to manually compile and install cmake from source (i you
have already installed cmake remove it via apt-get purge cmake)

4. getting latest cmake
cd /usr/local
wget http://www.cmake.org/files/v2.8/cmake-2.8.2-Linux-i386.tar.gz
tar -zxvf cmake-2.8.2-Linux-i386.tar.gz
mv cmake-2.8.2-Linux-i386 cmake
ln -s /usr/local/cmake/bin/cmake /usr/bin/cmake

5. (for testing i would install rtmpd in opt directory)
cd /opt
svn co --username anonymous https://svn.rtmpd.com/crtmpserver/trunk
crtmpserver
....
6. compile and install
cd crtmpserver/builders/cmake
cmake .

if there is no errors...just run:

make

optional:
7. in case you are running some instance (web server - tomcat/jetty)
on port 8080 then you should change inboundRtmpt port in
rtmpserver.lua, as follows:

nano -w rtmpserver/rtmpserver.lua (main configuration of rtmpd - /
opt/crtmpserver/builders/cmake/rtmpserver/rtmpserver.lua )

and modify ...

....
{
ip="0.0.0.0",

port=8080, -- here you
should change the port, let's say to 8000
protocol="inboundRtmpt"
},

.....

save the file and let's test if it is ok:

i assume to be in the directory from where we have cokmpiled crtmp
server (i mean /opt/crtmpserver/builders/cmake/ )

./rtmpserver/rtmpserver ./rtmpserver/rtmpserver.lua

default cftmpserver log file :

tail -f /tmp/rtmpserver.log


best regards
>  smime.p7s
> 5KVizualizaţiDescărcaţi

dumbul

unread,
Oct 26, 2010, 5:33:44 AM10/26/10
to C++ RTMP Server
Thank to all for quick reply!
I corrected the mistake with the aid of user chewZ

It was necessary to install build-essential

# apt-get install build-essential
Reply all
Reply to author
Forward
0 new messages