Esri / geomessage-simulator-qt

The GeoMessage Simulator provides UDP messaging for applications that are part of the ArcGIS for the Military solution.
Apache License 2.0
17 stars 22 forks source link

Possibly remove $$(BUILD_ARCH) from .pro's or document setting BUILD_ARCH in Readme #1

Closed csmoore closed 11 years ago

csmoore commented 11 years ago

Currently in the .pro's, the environment variable BUILD_ARCH needs set to x86 in order to build 32-bit.

This line may not be necessary:

QMAKE_TARGET.arch = $$(BUILD_ARCH)

It forces the user to set the environment variable BUILD_ARCH in order to build x86 (the pro's default to x86_64 if this is not set)

QMAKE_TARGET.arch is already set by qmake on Windows, but never set to anything on Linux.

Adding in this block will handle the Linux cases where QMAKE_TARGET.arch isn’t set. unix:{ eval(QMAKE_TARGET.arch = ""):{

QMAKE_TARGET.arch isn't set properly on Linux.

# If we get a bitset-specific mkspec, use it
linux-g++-32:QMAKE_TARGET.arch = x86
linux-g++-64:QMAKE_TARGET.arch = x86_64
# If we get a generic one, then determine the
# arch of the machine and assign
linux-g++:{
  ARCH = $$system(uname -m) # i686 or x86_64
  contains(ARCH, x86_64):{
    QMAKE_TARGET.arch = x86_64
  }
  else{
    QMAKE_TARGET.arch = x86
  }
} # linux-g++

} # eval } # unix

csmoore commented 11 years ago

This has been changed, so .pro config settings are no longer needed. Rather than settings in the .pro, the AGS Qt Runtime is now configured by adding this file <path to qt sdk>\mkspecs\features\esri_runtime_qt_10_2.prf