Hello all
i tired to build the engine using Linux CentOS 6.7 64 bit
with all the additional OpenGL libraries installed as it pointed in the documents ,
like this:
[root@localhost Urho3D]# ./cmake_eclipse.sh /root/Documents/Dev/3d/Orho3d/git/buildeclispe -DURHO3D_SAMPLES=1
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so
-- Performing Test HAVE_CONST_XEXT_ADDDISPLAY
-- Performing Test HAVE_CONST_XEXT_ADDDISPLAY - Success
-- Performing Test HAVE_CONST_XDATA32
-- Performing Test HAVE_CONST_XDATA32 - Success
-- Found ALSA: /usr/lib64/libasound.so (found version "1.0.22")
-- Could NOT find PulseAudio development library (missing: PA_LIBRARIES PA_INCLUDE_DIRS)
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found Urho3D: as CMake target
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Documents/Dev/3d/Orho3d/git/buildeclispe
the C make script did successfully run and created the make-file parallel to the Urho3d source code .
from within eclipse i open it as "Make project with excising code "
then in the top project which named “buildeclipse” i did right click -> build project
and i got :
[code]11:21:51 **** Build of configuration Default for project buildeclispe ****
make all
Scanning dependencies of target FreeType
[ 0%] Building C object Source/ThirdParty/FreeType/CMakeFiles/FreeType.dir/src/autofit/autofit.c.o
In file included from /root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/include/freetype/freetype.h:33,
from /root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/src/autofit/afpic.c:20,
from /root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/src/autofit/autofit.c:21:
/root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/include/freetype/config/ftconfig.h: In function ?FT_MulFix_x86_64?:
/root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/include/freetype/config/ftconfig.h:484: error: #pragma GCC diagnostic not allowed inside functions
/root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/include/freetype/config/ftconfig.h:485: error: #pragma GCC diagnostic not allowed inside functions
/root/Documents/Dev/3d/Orho3d/git/Urho3D/Source/ThirdParty/FreeType/include/freetype/config/ftconfig.h:524: error: #pragma GCC diagnostic not allowed inside functions
make[2]: *** [Source/ThirdParty/FreeType/CMakeFiles/FreeType.dir/src/autofit/autofit.c.o] Error 1
make[1]: *** [Source/ThirdParty/FreeType/CMakeFiles/FreeType.dir/all] Error 2
make: *** [all] Error 2
11:21:51 Build Finished (took 242ms)[/code]
looking at the code the error is in the FreeType
/* Temporarily disable the warning that C90 doesn't support */
/* `long long'. */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlong-long"
im using this compiler :
g++ --version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)