I am having the following error, can you please help me? While installing player/stage for mac

thanks in advance

[ 16%] Building C object client_libs/libplayerc/CMakeFiles/playerc.dir/dev_wsn.o
Linking C shared library libplayerc.dylib
[ 16%] Built target playerc
[ 17%] Built target playerc_wrap_i_target
[ 17%] Building C object client_libs/libplayerc/bindings/python/CMakeFiles/_playerc.dir/playercPYTHON_wrap.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
                 from /Users/jamal/INSTALL_DIR/player-3.0.1/build/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c:112:
/Library/Frameworks/Python.framework/Headers/pyport.h:730:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
/Users/jamal/INSTALL_DIR/player-3.0.1/build/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:
/Users/jamal/INSTALL_DIR/player-3.0.1/build/client_libs/libplayerc/bindings/python/playercPYTHON_wrap.c:853: warning: format not a string literal and no format arguments
make[2]: *** [client_libs/libplayerc/bindings/python/CMakeFiles/_playerc.dir/playercPYTHON_wrap.o] Error 1
make[1]: *** [client_libs/libplayerc/bindings/python/CMakeFiles/_playerc.dir/all] Error 2

----- Forwarded Message -----
From: jam esen <esenkanova@yahoo.com>
To: "playerstage-users@lists.sourceforge.net" <playerstage-users@lists.sourceforge.net>
Sent: Monday, December 26, 2011 8:37 PM
Subject: Fw: [Playerstage-users] about stage/player for Mac

----- Forwarded Message -----
From: Arkapravo Bhaumik <arkapravobhaumik@gmail.com>
To: jam esen <esenkanova@yahoo.com>
Sent: Monday, December 26, 2011 8:26 PM
Subject: Re: [Playerstage-users] about stage/player for Mac


I am afraid, I will not be much help - I am on Unix, have not been much in Mac.

You have sent this email probably only to me - please sent it to the mailing list (playerstage-users@lists.sourceforge.net). Some Mac enthusiasts are sure to help you.



On 27 December 2011 00:52, jam esen <esenkanova@yahoo.com> wrote:

I could come till the yellow colored place
curl -O http://nchc.dl.sourceforge.net/project/playerstage/Player/3.0.1/player-3.0.1.tar.gz
export CXXFLAGS="-arch x86_64"
tar -xzvf player-3.0.1.tar.gz
cd player-3.0.1
mkdir build
cd build
make install

this command is giving an error. 

vanGogh:build jamal$ cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR
CMake Error: The source "/Users/jamal/INSTALL_DIR/player-3.0.1/build/CMakeLists.txt" does not match the source "/Users/jamal/INSTALL_DIR/player-3.0.1/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
vanGogh:build jamal$ 

can you please help me to configure cmake. I am having troubles with cmake I dont know what else do I have to install with cmake. I am following the guide but still the same error.