]> git.mxchange.org Git - flightgear.git/commitdiff
KIll off ALUT now it's gone from SimGear
authorJames Turner <zakalawe@mac.com>
Tue, 21 Aug 2012 23:10:00 +0000 (00:10 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 21 Aug 2012 23:10:00 +0000 (00:10 +0100)
CMakeLists.txt
CMakeModules/ConfigureMsvc3rdParty.cmake
CMakeModules/FindALUT.cmake [deleted file]
CMakeModules/FindSimGear.cmake
README.OpenAL
docs-mini/README.mingw
package/mac/build-mac-nightly-dmg.rb
package/openSUSE/FlightGear.spec
tests/alcinfo.cxx

index 85f1982ef349900555de666d5425ed3d1f5c9385..d0ef8c4fda9f1a37a34289dfc0a3657fb194438a 100644 (file)
@@ -144,7 +144,6 @@ find_package(ZLIB    REQUIRED)
 find_package(Threads REQUIRED)
 find_package(OpenGL  REQUIRED)
 find_package(OpenAL  REQUIRED)
-find_package(ALUT    REQUIRED)
 find_package(OpenSceneGraph 3.0.0 REQUIRED osgText osgSim osgDB osgParticle osgFX osgUtil osgViewer osgGA)
 
 if(ENABLE_FGADMIN)
@@ -249,7 +248,6 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MSVC_LD_FLAGS}")
 include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}
     ${Boost_INCLUDE_DIRS}
     ${ZLIB_INCLUDE_DIR}
-    ${ALUT_INCLUDE_DIR}
     ${OPENGL_INCLUDE_DIR}
     ${OPENAL_INCLUDE_DIR}
     ${SIMGEAR_INCLUDE_DIR}
index 23d488755bf9d483f3822980914b040d45ea0c9a..1230ef30bfec92f1df6b7df3e50e5568ff666441 100644 (file)
@@ -38,6 +38,5 @@ if (MSVC AND MSVC_3RDPARTY_ROOT)
     set (CMAKE_INCLUDE_PATH ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/include ${MSVC_3RDPARTY_ROOT}/install/${OSG_MSVC}/OpenScenegraph/include ${MSVC_3RDPARTY_ROOT}/install/${OSG_MSVC}/SimGear/include)
     set (BOOST_ROOT         ${MSVC_3RDPARTY_ROOT}/boost_1_44_0)
     set (OPENAL_INCLUDE_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/include)
-    set (ALUT_INCLUDE_DIR   ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/include)
     set (OPENAL_LIBRARY_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/lib)
 endif (MSVC AND MSVC_3RDPARTY_ROOT)
diff --git a/CMakeModules/FindALUT.cmake b/CMakeModules/FindALUT.cmake
deleted file mode 100644 (file)
index 48e6e04..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-# Locate ALUT
-# This module defines
-# ALUT_LIBRARY
-# ALUT_FOUND, if false, do not try to link to ALUT 
-# ALUT_INCLUDE_DIR, where to find the headers
-#
-# $ALUTDIR is an environment variable that would
-# correspond to the ./configure --prefix=$ALUTDIR
-# used in building ALUT.
-#
-# Created by James Turner. This was influenced by the FindOpenAL.cmake module.
-
-#=============================================================================
-# Copyright 2005-2009 Kitware, Inc.
-#
-# Distributed under the OSI-approved BSD License (the "License");
-# see accompanying file Copyright.txt for details.
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the License for more information.
-#=============================================================================
-# (To distributed this file outside of CMake, substitute the full
-#  License text for the above reference.)
-
-# Per my request, CMake should search for frameworks first in
-# the following order:
-# ~/Library/Frameworks/OpenAL.framework/Headers
-# /Library/Frameworks/OpenAL.framework/Headers
-# /System/Library/Frameworks/OpenAL.framework/Headers
-#
-# On OS X, this will prefer the Framework version (if found) over others.
-# People will have to manually change the cache values of 
-# OPENAL_LIBRARY to override this selection or set the CMake environment
-# CMAKE_INCLUDE_PATH to modify the search paths.
-
-FIND_LIBRARY(ALUT_LIBRARY 
-  NAMES ALUT alut
-  HINTS
-  $ENV{ALUTDIR}
-  PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
-  PATHS
-  ~/Library/Frameworks
-  /Library/Frameworks
-  /usr/local
-  /usr
-  /opt
-)
-
-FIND_PATH(ALUT_INCLUDE_DIR 
-  NAMES ALUT/alut.h alut.h
-  HINTS
-  $ENV{ALUTDIR}
-  PATH_SUFFIXES include/AL include
-  PATHS
-  ~/Library/Frameworks
-  /Library/Frameworks
-  /usr/local
-  /usr
-  /opt
-)
-
-include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT  DEFAULT_MSG  ALUT_LIBRARY ALUT_INCLUDE_DIR)
-
-MARK_AS_ADVANCED(ALUT_LIBRARY ALUT_INCLUDE_DIR)
-
index 580bb78f5a7341779f94afda3907271085cfea85..448ff70e90bd4af204ed8c90dcaf3691bed04c29 100644 (file)
@@ -196,7 +196,6 @@ else(SIMGEAR_SHARED)
         ${WINMM_LIBRARY})
 
     set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES 
-        ${ALUT_LIBRARY} 
         ${OPENAL_LIBRARY})
 
     if(WIN32)
index 7c0cd01f1b3ad065e2a85cbed27c7ac043b1b092..f21c656abc40ac7a118f4a901b7f5d70b1554427 100644 (file)
@@ -18,12 +18,3 @@ ccmake .
   then press 'g' to generate and exit ]
 
 
-The alut library is also required, but comes separately in the package
-freelut-1.1.0.tar.gz. This package can be downloaded from the same page
-(http://connect.creativelabs.com/openal/default.aspx). Download and run:
-tar xzvf freelut-1.1.0.tar.gz
-cd freealut-1.1.0
-./configure
-make
-sudo make install
-
index 757cd9512a9f0514e143f641072ee70afb33e918..ff48a1a7042596660bfb19a82c5cbb131dda4ec6 100644 (file)
@@ -62,44 +62,6 @@ patch header:
   #ifndef NEED_FTIME
   #include <time.h>
 
-GLUT
-====
-
-use precompiled in order to avoid conflicts with glut32.dll already installed.
-
-http://www.xmission.com/~nate/glut.html
-http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip
-
-The header has to be updated with respect to MINGW.
-
-*** glut.h      Tue Dec 12 22:22:52 2000
---- /local_old/include/GL/glut.h        Thu Aug 18 20:41:15 2005
-***************
-*** 20,26 ****
-     /* XXX This is from Win32's <windef.h> */
-  #  ifndef APIENTRY
-  #   define GLUT_APIENTRY_DEFINED
-! #   if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
-  #    define APIENTRY    __stdcall
-  #   else
-  #    define APIENTRY
---- 20,26 ----
-     /* XXX This is from Win32's <windef.h> */
-  #  ifndef APIENTRY
-  #   define GLUT_APIENTRY_DEFINED
-! #   if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__) || defined(__MINGW32__)
-  #    define APIENTRY    __stdcall
-  #   else
-  #    define APIENTRY
-
-
-install:
-cp glut.h /usr/local/include
-cp glut32.dll /usr/local/bin
-
-reimp glut32.lib 
-cp libglut32.a /usr/local/lib
-
 OpenAL
 ======
 
@@ -114,7 +76,6 @@ install:
 cd libs
 reimp  OpenAL32.lib
 cp libopenal32.a  /usr/local/lib
-cp alut.lib  /usr/local/lib/libalut.a
 cd ..
 mkdir /usr/local/include/AL
 cp Include/* /usr/local/include/AL
index 43675a56d69a9d652aa84f5e145b2d35ab2d16f9..967cb60f3919810e2b5eac2e1cb6efce8b0c44e4 100755 (executable)
@@ -20,8 +20,6 @@ puts "Code signing identity is #{$codeSignIdentity}"
 
 puts "osgVersion=#{osgVersion}, so-number=#{$osgSoVersion}"
 
-$alutSourcePath='/Library/Frameworks/ALUT.framework'
-
 $svnLibs = ['svn_client', 'svn_wc', 'svn_delta', 'svn_diff', 'svn_ra', 
   'svn_ra_local', 'svn_repos', 'svn_fs', 'svn_fs_fs', 'svn_fs_util',
   'svn_ra_svn', 'svn_subr', 'svn_ra_neon']
@@ -38,10 +36,6 @@ def fix_install_names(object)
   oldName = "libOpenThreads.#{$openThreadsSoVersion}.dylib"
   newName= "@executable_path/../Frameworks/#{oldName}"
   `install_name_tool -change #{oldName} #{newName} #{object}`
-  
-  alutBundlePath = "@executable_path/../Frameworks/Alut.framework"
-  alutLib = "Versions/A/ALUT"
-  `install_name_tool -change #{$alutSourcePath}/#{alutLib} #{alutBundlePath}/#{alutLib} #{object}`
 end
 
 $prefixDir=Dir.pwd + "/dist"
@@ -126,10 +120,6 @@ end
 
 copy_svn_libs()
 
-# custom ALUT
-# must copy frameworks using ditto
-`ditto #{$alutSourcePath} #{$frameworksDir}/ALUT.framework`
-
 # Info.plist
 template = File.read("#{srcDir}/package/mac/nightly.plist.in")
 output = ERB.new(template).result(binding)
index be2010d5227795644fd9c2f01f290a39d621aa07..561e20f7b4270716dc9042dc1441182a504e4512 100644 (file)
@@ -14,7 +14,6 @@ BuildRequires: update-desktop-files
 BuildRequires: SimGear = %{version}, SimGear-devel = %{version}
 BuildRequires: libOpenSceneGraph-devel >= 3.0
 BuildRequires: subversion-devel, libapr1-devel
-BuildRequires: freealut, freealut-devel
 BuildRequires: libopenal1-soft, openal-soft
 BuildRequires: zlib, zlib-devel
 BuildRequires: libfreetype6
index 85d2a27ecdcac1f6eb15c720b5800780d55de86e..e567d73cd0b4ed129e5c46926677c21b5d68f1d0 100644 (file)
@@ -151,30 +151,7 @@ int main(int argc, char **argv)
 
    s = (char *)alGetString(AL_EXTENSIONS);
    printExtensions ("OpenAL extensions", ' ', s);
-   testForALCError(device);
-
-/* alut testing mechanism */
-   context = alcGetCurrentContext();
-   if (context == NULL)
-   {
-      printf("Error: no current context\n");
-   }
-   else
-   {
-      if (alGetError () != AL_NO_ERROR)
-      {
-         printf("Alert: AL error on entry\n");
-      }
-      else
-      {
-         if (alcGetError (alcGetContextsDevice (context)) != ALC_NO_ERROR)
-         {
-            printf("Alert: ALC error on entry\n");
-         }
-      }
-   }
-/* end of alut test */
+   testForALCError(device); 
    
    if (alcMakeContextCurrent(NULL) == 0)
       printf("alcMakeContextCurrent failed.\n");