Changeset 7769 in orxonox.OLD for branches/osx
- Timestamp:
- May 23, 2006, 12:45:40 PM (19 years ago)
- Location:
- branches/osx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/osx/acinclude.m4
r7670 r7769 135 135 for _lib_directory in ${QT_COMMON_LIB_DIRECTORIES} 136 136 do 137 if test -e ${_lib_directory}/libQtCore.so || test -e ${_lib_directory}/libQtCore4.a ; then 137 if test -e ${_lib_directory}/libQtCore.so || test -e ${_lib_directory}/libQtCore4.a || \ 138 test -e ${_lib_directory}/QtCore.framework ; then 138 139 QT_LIB_DIRECTORY=${_lib_directory} 139 140 break 140 141 fi 141 142 done 142 143 if test -n ${QT_LIB_DIRECTORY} ; then … … 194 195 fi 195 196 196 echo "QT_LIBS = ${QT_LIBS}"197 echo "QT_CXXFLAGS = ${QT_CXXFLAGS}"198 echo "QT_LD_FLAGS = ${QT_LDFLAGS}"197 echo "QT_LIBS = ${QT_LIBS}" 198 echo "QT_CXXFLAGS = ${QT_CXXFLAGS}" 199 echo "QT_LD_FLAGS = ${QT_LDFLAGS}" 199 200 echo "QT_BIN_DIRECTORY = ${QT_BIN_DIRECTORY}" 200 201 -
branches/osx/configure.ac
r7766 r7769 432 432 *darwin*) 433 433 echo "OS X detected" 434 435 434 osX="yes" 436 437 CPPFLAGS="-I/$prefix/include $CPPFLAGS" 438 LDFLAGS="$LDFLAGS -L$prefix/lib" 435 QT_PREFIX="$prefix" 436 CPPFLAGS="-I/$prefix/include $CPPFLAGS -F$prefix/lib" 437 LDFLAGS="$LDFLAGS -L$prefix/lib -F$prefix/lib" 438 PCK_CONFIG_PATH='/opt/local' 439 439 # checking gl header 440 440 AC_CHECK_HEADERS([OpenGL/gl.h] ,, 441 441 [AC_MSG_ERROR([cannot find opengl headers]) ]) 442 # che king for GLU-header442 # checking for GLU-header 443 443 AC_CHECK_HEADERS([OpenGL/glu.h] ,, 444 444 [AC_MSG_ERROR([cannot find opengl headers]) ]) … … 461 461 fi 462 462 463 463 LIBS="$LIBS" 464 464 AC_CHECK_HEADERS([OpenAL/al.h] ,, 465 465 [AC_MSG_ERROR([cannot find opengl headers]) ]) … … 471 471 SDL_CFLAGS=`sdl-config --cflags` 472 472 SDL_LIBS=`sdl-config --libs` 473 CXXFL \AGS="$CXXFLAGS $SDL_CFLAGS"473 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 474 474 LIBS="$LIBS $SDL_LIBS" 475 475 AC_CHECK_HEADERS([SDL/SDL.h] ,, … … 565 565 # QT # 566 566 #----# 567 AX_CHECK_QT([${QT_PREFIX}], [QtCore QtCore4],, [http://www.trolltech.com]) 568 if test x$have_qt = xno ; then 569 WITH_QT=no 567 if test `uname` = "Darwin" ; then 568 PKG_CONFIG_PATH="$prefix" 569 PKG_CHECK_MODULES( QT, QtCore >= 4.01 ) 570 QT_INCLUDE_DIR= $($PKG_CONFIG --variable=includedir QtGui) 571 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt" 572 AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget], 573 AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]), 574 575 AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QWidget], 576 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR", 577 AC_MSG_WARN([QWidget not found]))) 578 AC_MSG_NOTICE([Set QT_CFLAGS... $QT_CFLAGS]) 579 AC_CHECK_PROG(MOC, [moc], [moc]) 580 581 AC_SUBST(QT_CFLAGS) 582 AC_SUBST(QT_LIBS) 583 else 584 AX_CHECK_QT([${QT_PREFIX}], [QtCore QtCore4],, [http://www.trolltech.com]) 585 if test x$have_qt = xno ; then 586 WITH_QT=no 587 fi 570 588 fi 571 589 -
branches/osx/src/lib/util/file.cc
r7674 r7769 23 23 #include <fstream> 24 24 25 #ifdef __unix__ 25 #ifdef __unix__ 26 26 #include <unistd.h> 27 27 #elif __WIN32__ || _MS_DOS_ 28 28 #include <dir.h> 29 29 #else 30 #include <direct.h>30 //#include <direct.h> 31 31 #endif 32 32
Note: See TracChangeset
for help on using the changeset viewer.