hamzaalloush wrote in Wed Apr 08, 2015 6:25 pm:do we really need Windows SDK's? can't we find a similar toolchain like Mingw using GCC for example? i think VS support non-native compilers as well? we can then skip this whole thing and probebly even adopt a modified version of the debian build script
such a switch would make debugging much more difficult under Windows
hamzaalloush wrote in Fri Apr 17, 2015 6:45 am: i tried using mingw, it was amazing, but i didn't feel to compile even OSG since that requires a ton of libraries that made it a chore personally. but it is do-able(i did this in the Arch days), i can keep going untill i have an FG binary if you guys encourage me to do so. obviously not undermining the debuging features of VS... but alot of people were content with running GCC and fallback to GDB for debugging in Linux, so it isn't the "worst" thing to do.
hamzaalloush wrote in Fri Apr 17, 2015 6:45 am:so where are we currently, unfortunatly i was unable to do my part because the SDK has failed to even download the required lib's using the online installer, that's my quip. but i'll try again and can even fall back to VM if neccessary.
hamzaalloush wrote in Fri Apr 17, 2015 6:45 am:so has there been any other progress? we know elgaton has intention of porting the superbuild to be compiled using a recent version of VS. does this conflict with our effort, so we have to participate there instead?
# This file is part of MXE.
# See index.html for further information.
PKG := openscenegraph
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.1.9
$(PKG)_CHECKSUM := 400794c0a4a568110f28ad89513df66f2f8121b3
$(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION)
$(PKG)_FILE := OpenSceneGraph-$($(PKG)_VERSION).zip
$(PKG)_URL := http://www.openscenegraph.org/downloads/developer_releases/$($(PKG)_FILE)
$(PKG)_DEPS := gcc boost curl dcmtk ffmpeg freetype gdal giflib gta jasper jpeg libpng openal openexr poppler qt tiff xine-lib zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.openscenegraph.org/downloads/developer_releases/?C=M;O=D' | \
$(SED) -n 's,.*OpenSceneGraph-\([0-9][^<]*\)\.zip.*,\1,p' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && cmake . \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \
-DCMAKE_HAVE_PTHREAD_H=OFF \
-DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \
-DDYNAMIC_OPENTHREADS=OFF \
-DDYNAMIC_OPENSCENEGRAPH=OFF \
-DBUILD_OSG_APPLICATIONS=OFF \
-DPOPPLER_HAS_CAIRO_EXITCODE=0 \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1
$(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_i686-w64-mingw32 =
set(CMAKE_SYSTEM_NAME Windows)
set(MSYS 1)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_FIND_ROOT_PATH /home/hamza/build/mxe/usr/i686-pc-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_C_COMPILER /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-gcc)
set(CMAKE_CXX_COMPILER /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-g++)
set(CMAKE_Fortran_COMPILER /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-gfortran)
set(CMAKE_RC_COMPILER /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-windres)
set(HDF5_C_COMPILER_EXECUTABLE /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-h5cc)
set(HDF5_CXX_COMPILER_EXECUTABLE /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-h5c++)
set(PKG_CONFIG_EXECUTABLE /home/hamza/build/mxe/usr/bin/i686-pc-mingw32-pkg-config)
set(QT_QMAKE_EXECUTABLE /home/hamza/build/mxe/usr/i686-pc-mingw32/qt/bin/qmake)
set(CMAKE_INSTALL_PREFIX /home/hamza/build/mxe/usr/i686-pc-mingw32 CACHE PATH "Installation Prefix")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")
hamzaalloush wrote in Sat Apr 18, 2015 7:06 pm:I was able to retrieve all packages on my linux, ready to cross compile, now attempting to either build osg as static libs, or dynamic libs with SIMGEAR initially as a start, i have a Windows box aside my to test right now. mxe only provides OSG 3.1.9 though, so won't pass the least version check( Could NOT find OpenSceneGraph: Found unsuitable version "3.1.9", but
required is at least "3.2.0" )
Hooray wrote:As of 10/2014, the mxe project also contains updated support for building OSG based applications using OSG 3.2.1 for 64 bit Windows, as per: https://github.com/mxe/mxe/commit/c7deb ... 1486926850
(this even includes Qt5 support)
https://github.com/mxe/mxe
Hooray wrote in Sat Apr 18, 2015 7:12 pm:You need to use the non-stable branch (=master), as per:
Subject: Help me! Install osgEarth feature on Win7 64b with FG gitHooray wrote:As of 10/2014, the mxe project also contains updated support for building OSG based applications using OSG 3.2.1 for 64 bit Windows, as per: https://github.com/mxe/mxe/commit/c7deb ... 1486926850
(this even includes Qt5 support)
https://github.com/mxe/mxe
Hooray wrote in Sat Apr 18, 2015 7:12 pm:If there are any remaining issues building osg/sg/fg, I would just report an issue and provide your log file - the mxe folks are usually pretty responsive and can fix things quickly.
In fact, you could even create/provide your own mxe config files for plib/simgear to simplify the whole build setup
Users browsing this forum: No registered users and 2 guests