Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
7cc2c309
Commit
7cc2c309
authored
10 years ago
by
vjpai
Browse files
Options
Downloads
Patches
Plain Diff
Mac-specific Makefile inclusions and installation instructions
Not yet fully building due to some gtest anomalies on Mac.
parent
26e2e8f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
INSTALL
+38
-0
38 additions, 0 deletions
INSTALL
Makefile
+2
-0
2 additions, 0 deletions
Makefile
templates/Makefile.template
+2
-0
2 additions, 0 deletions
templates/Makefile.template
with
42 additions
and
0 deletions
INSTALL
+
38
−
0
View file @
7cc2c309
...
@@ -95,6 +95,44 @@ will need clang and its instrumented libc++:
...
@@ -95,6 +95,44 @@ will need clang and its instrumented libc++:
# apt-get install clang libc++-dev
# apt-get install clang libc++-dev
Mac-specific notes:
-------------------
For a Mac system, git is not available by default. You will first need to
install Xcode from the Mac AppStore and then run the following command from a
terminal:
$ sudo xcode-select --install
You should also install "port" following the instructions at
https://www.macports.org . This will reside in /opt/local/bin/port for
most Mac installations. Do the "git submodule" command listed above.
Then execute the following for all the needed build dependencies
$ sudo /opt/local/bin/port install autoconf automake libtool gflags cmake
$ mkdir ~/gtest
$ svn checkout http://googletest.googlecode.com/svn/trunk/ gtest-svn
$ mkdir mybuild
$ cd mybuild
$ cmake ../gtest-svn
$ make
$ make gtest.a gtest_main.a
$ sudo cp libgtest.a libgtest_main.a /opt/local/lib
$ sudo mkdir /opt/local/include/gtest
$ sudo cp -pr ../gtest-svn/include/gtest /opt/local/include/gtest
We will also need to make openssl and install it appropriately
$ cd <git directory>
$ cd third_party/openssl
$ sudo make install
$ cd ../../
If you are going to make changes and need to regenerate the projects file,
you will need to install certain modules for python.
$ sudo easy_install simplejson mako
A word on OpenSSL
A word on OpenSSL
-----------------
-----------------
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
0
View file @
7cc2c309
...
@@ -177,7 +177,9 @@ LDFLAGS += -g -fPIC
...
@@ -177,7 +177,9 @@ LDFLAGS += -g -fPIC
INCLUDES = . include $(GENDIR)
INCLUDES = . include $(GENDIR)
ifeq ($(SYSTEM),Darwin)
ifeq ($(SYSTEM),Darwin)
INCLUDES += /usr/local/ssl/include /opt/local/include
LIBS = m z
LIBS = m z
LDFLAGS += -L/usr/local/ssl/lib -L/opt/local/lib
else
else
LIBS = rt m z pthread
LIBS = rt m z pthread
LDFLAGS += -pthread
LDFLAGS += -pthread
This diff is collapsed.
Click to expand it.
templates/Makefile.template
+
2
−
0
View file @
7cc2c309
...
@@ -194,7 +194,9 @@ LDFLAGS += -g -fPIC
...
@@ -194,7 +194,9 @@ LDFLAGS += -g -fPIC
INCLUDES
=
.
include
$(
GENDIR
)
INCLUDES
=
.
include
$(
GENDIR
)
ifeq
($(SYSTEM),Darwin)
ifeq
($(SYSTEM),Darwin)
INCLUDES
+=
/usr/local/ssl/include /opt/local/include
LIBS
=
m z
LIBS
=
m z
LDFLAGS
+=
-L
/usr/local/ssl/lib
-L
/opt/local/lib
else
else
LIBS
=
rt m z pthread
LIBS
=
rt m z pthread
LDFLAGS
+=
-pthread
LDFLAGS
+=
-pthread
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment