Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c3233d0
Modified code to work with gstreamer-1.0
reiniert Nov 5, 2016
c081f2e
Merge remote-tracking branch 'rticommunity/master'
reiniert Nov 6, 2016
aec2099
Added modifications needed to build and run on Darwin
reiniert Nov 10, 2016
e990f17
Changed the way the restrict keyword is handled so it works for clang…
reiniert Nov 10, 2016
e2ff5fa
Forgot to remove some testing code that disabled the ignore_subscript…
reiniert Nov 10, 2016
ebfb528
Minor cleanups
reiniert Nov 10, 2016
252cc5c
Minor improvement to directory creation rule
reiniert Nov 11, 2016
fd9325b
Improved generation of dependencies and did some minor cleanup
reiniert Nov 15, 2016
d6ffd36
More improvements to the makefile and some additional explanations added
reiniert Nov 16, 2016
930be3f
Fixed problems with OSX/macOS, in particular Sierra
reiniert Nov 22, 2016
adfdaac
Updated VidoeData code to build and run with Windows
reiniert Nov 23, 2016
f7388c5
Merge remote-tracking branch 'origin/master'
reiniert Nov 23, 2016
f29a10b
Ported VideoData example to micro. Build can be selected to use Pro o…
reiniert Nov 27, 2016
f22cec0
Completed port to Micro. Did some temporary changes for testing purpo…
reiniert Nov 30, 2016
50f4a0b
Made everything work for Connext Micro
reiniert Dec 2, 2016
49415e3
Fixed compilation issues for Linux
reiniert Dec 2, 2016
b091f0f
Moved Sleep functionality implementation to edition-specific code
reiniert Dec 3, 2016
e498d4c
Improved makefile to allow side-by-side debug and non-debug, shared a…
reiniert Dec 3, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions VideoData/ExampleCode/make/Makefile.Darwin
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
###############################################################################
## (c) Copyright, Real-Time Innovations, All rights reserved. ##
## ##
## Permission to modify and use for internal purposes granted. ##
## This software is provided "as is", without warranty, express or implied. ##
## ##
###############################################################################

# Note:
# - This is a convenience makefile that you can use in the case that you build
# on Linux but there is no specific makefile for the architecture that you are
# building for. Normally, the architecture is hardcoded into the makefile,
# like you can see in Makefile.x64Darwin12clang4.1. In stead, this makefile
# tries to figure out what your installed architecture is by scanning your
# DYLD_LIBRARY_PATH.

# - To use this Makefile, you must have the 'NDDSHOME' environment variable
# set to the location of RTI Connext and DYLD_LIBRARY_PATH must contain
# the RTI DDS libraries. An easy way to achieve this is by sourcing the
# RTI-provided environment script found in $NDDSHOME/resource/srcipts,
# for example
# . $NDDSHOME/resource/scripts/rtisetenv_x64Darwin12clang4.1.bash
#
# - You need to invoke the make command from the root directory of this example.
#
# - To enable debugging information, set the Makefile variable 'DEBUG' to '1'.
#
# Example:
# make -f make/Makefile.Darwin

# Defines required Make variables. They will be used in the Makefile.common
# to define the rules to define the build process for this application.
ifndef ARCH
NDDS_LIBNAME := libnddsc.dylib
LDLP := $(subst :, ,$(DYLD_LIBRARY_PATH))
NDDSC := $(wildcard $(addsuffix /$(NDDS_LIBNAME),$(LDLP)))
ARCH := $(subst /,,$(subst $(abspath $(dir $(NDDSC))/..),,$(dir $(NDDSC))))
$(info Found architecture: $(ARCH))
endif

CXX = clang++
CXXFLAGS = -DRTI_UNIX -DRTI_DARWIN -DRTI_DARWIN10 -DRTI_64BIT -m64 -Wno-return-type-c-linkage
CXXLD = clang++
CXXLDFLAGS = -m64
SYSLIBS = -ldl -lm -lpthread

# The rest of the rules are in the 'Makefile.common'
include make/Makefile.common
55 changes: 55 additions & 0 deletions VideoData/ExampleCode/make/Makefile.Linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
###############################################################################
## (c) Copyright, Real-Time Innovations, All rights reserved. ##
## ##
## Permission to modify and use for internal purposes granted. ##
## This software is provided "as is", without warranty, express or implied. ##
## ##
###############################################################################

# Note:
# - This is a convenience makefile that you can use in the case that you build
# on Linux but there is no specific makefile for the architecture that you are
# building for. Normally, the architecture is hardcoded into the makefile,
# like you can see in Makefile.i86Linux2.6gcc4.4.5. In stead, this makefile
# tries to figure out what your installed architecture is by scanning your
# LD_LIBRARY_PATH.

# - To use this Makefile, you must have the 'NDDSHOME' environment variable
# set to the location of RTI Connext and LD_LIBRARY_PATH must contain
# the RTI DDS libraries. An easy way to achieve this is by sourcing the
# RTI-provided environment script found in $NDDSHOME/resource/srcipts,
# for example
# . $NDDSHOME/resource/scripts/rtisetenv_i86Linux3.xgcc4.6.3.bash
#
# - You need to invoke the make command from the root directory of this example.
#
# - To enable debugging information, set the Makefile variable 'DEBUG' to '1'.
#
# Example:
# make -f make/Makefile.Linux


# Defines required Make variables. They will be used in the Makefile.common
# to define the rules to define the build process for this application.
NDDS_LIBNAME := libnddsc.so
LDLP := $(subst :, ,$(LD_LIBRARY_PATH))
NDDSC := $(wildcard $(addsuffix /$(NDDS_LIBNAME),$(LDLP)))
ARCH := $(subst /,,$(subst $(abspath $(dir $(NDDSC))/..),,$(dir $(NDDSC))))

CXX := g++
CXXFLAGS := -DRTI_UNIX -DRTI_LINUX
CXXLD := g++
CXXLDFLAGS := -static-libgcc
SYSLIBS := -ldl -lnsl -lm -lpthread -lrt

ifeq ($(ARCH),$(filter i86%,$(ARCH)))
CXXFLAGS += -m32
CXXLDFLAGS += -m32
endif
ifeq ($(ARCH),$(filter x64%,$(ARCH)))
CXXFLAGS += -DRTI_64BIT -m64
CXXLDFLAGS += -m64
endif

# The rest of the rules are in the 'Makefile.common'
include make/Makefile.common
Loading