Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 402 for code/branches


Ignore:
Timestamp:
Dec 5, 2007, 4:22:20 PM (17 years ago)
Author:
nicolape
Message:

Fixed ogg loading

Location:
code/branches/FICN
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/CMakeLists.txt

    r401 r402  
    6363FIND_PACKAGE(OpenAL)
    6464FIND_PACKAGE(ALUT)
    65 #FIND_PACKAGE(OggVorbis)
     65FIND_PACKAGE(OggVorbis)
    6666
    6767#Sets the search paths for the linking
    68 LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${Boost_LIBRARY_DIRS} ${OPENAL_LIBRARY} ${ALUT_LIBRARY} core objects loader network weapon classHierarchy audio)
     68LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${Boost_LIBRARY_DIRS} core objects loader network weapon classHierarchy audio)
    6969#Sets the search path for include files
    70 INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR} ${ALUT_INCLUDE_DIR})
     70INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR} ${ALUT_INCLUDE_DIR} ${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR})
    7171
    7272#add main source dir
  • code/branches/FICN/cmake/FindOggVorbis.cmake

    r389 r402  
    11
    2 SET(OGGVORBIS_LIBRARY_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/lib")
    3 SET(OGGVORBIS_LIBRARY "${OGGVORBIS_LIBRARY_DIR}/libvorbisenc.so ${OGGVORBIS_LIBRARY_DIR}/libvorbisfile.so ${OGGVORBIS_LIBRARY_DIR}/libogg.so ${OGGVORBIS_LIBRARY_DIR}/libvorbis.so ")
    4 SET(OGGVORBIS_INCLUDE_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include")
     2#SET(OGGVORBIS_LIBRARY_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/lib")
     3#SET(OGGVORBIS_LIBRARY "-L ${OGGVORBIS_LIBRARY_DIR} -lvorbisenc -lvorbisfile -logg -lvorbis ")
     4#SET(OGGVORBIS_INCLUDE_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include")
    55
    6 MESSAGE(STATUS "OggVorbis was found. Libdir ${OGGVORBIS_LIBRARY_DIR} Includedir ${OGGVORBIS_INCLUDE_DIR}")
     6#
     7# Includes
     8#
     9
     10FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h
     11  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include               # Tardis specific hack
     12  /usr/local/include
     13  /usr/include
     14  /sw/include
     15  /opt/local/include
     16  /opt/csw/include
     17  /opt/csw/include
     18  /opt/include
     19  )
     20
     21FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h
     22  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include               # Tardis specific hack
     23  /usr/local/include
     24  /usr/include
     25  /sw/include
     26  /opt/local/include
     27  /opt/csw/include
     28  /opt/csw/include
     29  /opt/include
     30  )
     31
     32#
     33# Libs
     34#
     35
     36FIND_LIBRARY(OGG_LIBRARY
     37  NAMES ogg
     38  PATHS
     39        /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib
     40  /usr/local/lib
     41  /usr/lib
     42  /sw/lib
     43  /opt/local/lib
     44  /opt/csw/lib
     45  /opt/lib
     46  )
     47
     48FIND_LIBRARY(VORBIS_LIBRARY
     49  NAMES vorbis
     50  PATHS
     51        /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib
     52  /usr/local/lib
     53  /usr/lib
     54  /sw/lib
     55  /opt/local/lib
     56  /opt/csw/lib
     57  /opt/lib
     58  )
     59
     60FIND_LIBRARY(VORBISENC_LIBRARY
     61  NAMES vorbisenc
     62  PATHS
     63        /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib
     64  /usr/local/lib
     65  /usr/lib
     66  /sw/lib
     67  /opt/local/lib
     68  /opt/csw/lib
     69  /opt/lib
     70  )
     71
     72FIND_LIBRARY(VORBISFILE_LIBRARY
     73  NAMES vorbisfile
     74  PATHS
     75        /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib
     76  /usr/local/lib
     77  /usr/lib
     78  /sw/lib
     79  /opt/local/lib
     80  /opt/csw/lib
     81  /opt/lib
     82  )
     83
     84SET(OGG_FOUND "NO")
     85IF(OGG_LIBRARY)
     86  SET(OGG_FOUND "YES")
     87        MESSAGE(STATUS "Ogg was found. Libdir ${OGG_LIBRARY} Includedir ${OGG_INCLUDE_DIR}")
     88ENDIF(OGG_LIBRARY)
     89
     90SET(VORBIS_FOUND "NO")
     91IF(VORBIS_LIBRARY)
     92  SET(VORBIS_FOUND "YES")
     93        MESSAGE(STATUS "Vorbis was found. Libdir ${VORBIS_LIBRARY} Includedir ${VORBIS_INCLUDE_DIR}")
     94ENDIF(VORBIS_LIBRARY)
     95
  • code/branches/FICN/src/audio/CMakeLists.txt

    r389 r402  
    1515ADD_LIBRARY(audio ${SRC_FILES} ${INC_FILES})
    1616
    17 TARGET_LINK_LIBRARIES(audio ${OPENAL_LIBRARY} ${ALUT_LIBRARY} ${OGGVORBIS_LIBRARY})
     17TARGET_LINK_LIBRARIES(audio ${OPENAL_LIBRARY} ${ALUT_LIBRARY} ${OGG_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY} ${VORBISENC_LIBRARY})
    1818
    1919
Note: See TracChangeset for help on using the changeset viewer.