speed-dreams-code/packaging/3rdParty-devel
xavi92 95782a8ff4 3rdParty-devel: Set OPENTHREADS_ATOMIC_USE_MUTEX=ON
Otherwise, OpenSceneGraph would fail to configure with:

-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE (advanced)
_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE__TRYRUN_OUTPUT (advanced)
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE (advanced)
_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE__TRYRUN_OUTPUT (advanced)
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed

Note: in the case of the x86_64-w64-mingw32 cross-toolchain, this
commit requires the win32 thread model.


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9585 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: abf7682212a38ea7a333eff88ed0743fef66da47
Former-commit-id: fb021387b5f54830fb7a6b93e3794e05d10de7de
2024-10-27 07:55:38 +00:00
..
Licenses 3rdParty-devel: Add rhash 2024-08-12 23:59:12 +00:00
patches 3rdParty-devel: Patch .def files for vorbis 2024-10-27 07:55:04 +00:00
CMakeLists.txt 3rdParty-devel: Set OPENTHREADS_ATOMIC_USE_MUTEX=ON 2024-10-27 07:55:38 +00:00
COPYING Changed to GPL 2 or later 2020-08-28 06:25:42 +00:00
LICENSE License should be GPL 2 2022-06-11 20:43:18 +00:00
readme.txt Remove trailing newlines 2024-07-30 22:17:48 +00:00
thirdpartydefinitions.cmake 3rdParty-devel: Limit warnings to Visual Studio 2024-10-27 07:42:19 +00:00
thirdpartydownloader.cmake Remove $Id$ 2024-09-30 05:17:15 +00:00
TODO.txt OS X installer fixes 2015-12-09 19:05:54 +00:00
x86_64-w64-mingw32.cmake Add x86_64-w64-mingw32.cmake 2024-10-27 07:43:43 +00:00

Building the dependencies for Speed-Dreams makes use of CMake's ExternalProject
 module. The source for each is downloaded from each project's site, patched if
 necessary, and built. This can take considerable time and accesses several
 different sites. See the thirdpartydefinitions.cmake file for the exact sites.
 The installation also contains a folder 3rdParty/source_info in which you
 will find the source link for each project.


 =============================================================================
 Windows
 As of version 2.3, this will download approximately 35MB of compressed source
 files.
 You will need more than 1GB of free disk space for the build.

 Prerequisites:
 DirectX SDK (June 2010) - needed by SDL and possibly OpenAL
 http://www.microsoft.com/en-us/download/details.aspx?id=6812

 CMake version 3.4 or greater.

 Building the 3rd Party dependencies for Windows

 Get the code

    Using Subversion:
        svn co https://svn.code.sf.net/p/speed-dreams/code/trunk/packaging/3rdParty-devel C:\src\3rdParty-devel

    If you already have the speed-dreams code:
        copy <Path-to sd-code>\packaging\3rdParty-devel\*.* C:\src\3rdParty-devel

    Important - Keep the path short ie: C:\src\3rdParty-devel
    The building of OpenSceneGraph with CMake's ExternalProject_Add creates quite a deep tree and the build may fail.

 CMake CLI Build

    Make a directory under the source directory (C:\src\3rdParty-devel)
        mkdir build-vs2015-release

    Change to the new directory:
        cd build-vs2015-release

    Generate the build system:
        cmake -G "Visual Studio 14 2015" .. -D CMAKE_BUILD_TYPE=Release -A Win32

    Build the package:
        cmake --build . --target PACKAGE --config Release

 Note:
   To build with VS2019 on Windows 7 or 8x, you may need to add -D CMAKE_SYSTEM_VERSION=10.0 to the command line:
         cmake -G "Visual Studio 16 2019" .. -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_VERSION=10.0 -A Win32

  =============================================================================
 OS X
 TODO

   =============================================================================
 Linux
 TODO