Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
a8ebd281
Commit
a8ebd281
authored
Oct 10, 2018
by
Nigel Stewart
Browse files
Linux info for EGL, OSMesa and Mingw-64 builds
parent
d73ad7ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a8ebd281
...
...
@@ -39,7 +39,7 @@ For most end-users of GLEW the official releases are the best choice, with first
##### Install build tools
Debian/Ubuntu/Mint:
`$ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev
libosmesa-dev
`
Debian/Ubuntu/Mint:
`$ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev`
RedHat/CentOS/Fedora:
`$ sudo yum install libXmu-devel libXi-devel libGL-devel`
...
...
@@ -55,6 +55,22 @@ Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`
_Note: may need to make **auto** folder_
##### Linux EGL
$ sudo apt install libegl1-mesa-dev
$ make SYSTEM=linux-egl
##### Linux OSMesa
$ sudo apt install libosmesa-dev
$ make SYSTEM=linux-osmesa
##### Linux OSMesa
$ sudo apt install mingw-w64
$ make SYSTEM=linux-mingw32
$ make SYSTEM=linux-mingw64
#### Using cmake
*CMake 2.8.12 or higher is required.*
...
...
config/Makefile.linux-mingw-w64
deleted
100644 → 0
View file @
d73ad7ee
# For cross-compiling from Linux to Windows x86 using mingw-w64
# http://mingw-w64.sourceforge.net/
#
# $ make SYSTEM=linux-mingw-w64
#
NAME
:=
glew32
CC
:=
i686-w64-mingw32-gcc
LD
:=
i686-w64-mingw32-ld
LN
:=
STRIP
:=
LDFLAGS.GL
=
-lopengl32
-lgdi32
-luser32
-lkernel32
CFLAGS.EXTRA
+=
-fno-builtin
-fno-stack-protector
LDFLAGS.EXTRA
+=
-nostdlib
WARN
=
-Wall
-W
POPT
=
-O2
BIN.SUFFIX
=
.exe
LIB.SONAME
=
lib
$(NAME)
.dll
LIB.DEVLNK
=
lib
$(NAME)
.dll.a
# for mingw this is the dll import lib
LIB.SHARED
=
$(NAME)
.dll
LIB.STATIC
=
lib
$(NAME)
.a
# the static lib will be broken
LDFLAGS.SO
=
-shared
-soname
$(LIB.SONAME)
--out-implib
lib/
$(LIB.DEVLNK)
config/Makefile.linux-mingw32
View file @
a8ebd281
# For cross-compiling from Linux to Windows
x86
using mingw32
# http://
www.
mingw.org/
# For cross-compiling from Linux to Windows
32-bit
using mingw32
# http://mingw
-w64
.org/
#
# $ sudo apt install mingw-w64
# $ make SYSTEM=linux-mingw32
NAME
:=
glew32
HOST
:=
i
5
86-mingw32
msvc
HOST
:=
i
6
86-
w64-
mingw32
CC
:=
$(HOST)
-gcc
LD
:=
$(HOST)
-ld
LN
:=
STRIP
:=
LDFLAGS.GL
=
-lopengl32
-lgdi32
-luser32
-lkernel32
LDFLAGS.GL
=
-L
/usr/
$(HOST)
/lib
-lopengl32
-lgdi32
-luser32
-lkernel32
CFLAGS.EXTRA
+=
-fno-builtin
-fno-stack-protector
#LDFLAGS.EXTRA += -nostdlib
WARN
=
-Wall
-W
POPT
=
-O2
BIN.SUFFIX
=
.exe
...
...
@@ -19,4 +19,4 @@ LIB.SONAME = lib$(NAME).dll
LIB.DEVLNK
=
lib
$(NAME)
.dll.a
# for mingw this is the dll import lib
LIB.SHARED
=
$(NAME)
.dll
LIB.STATIC
=
lib
$(NAME)
.a
# the static lib will be broken
LDFLAGS.SO
=
-shared
-soname
$(LIB.SONAME)
--out-implib
lib/
$(LIB.DEVLNK)
LDFLAGS.SO
=
-nostdlib
-shared
-soname
$(LIB.SONAME)
--out-implib
lib/
$(LIB.DEVLNK)
config/Makefile.linux-mingw64
View file @
a8ebd281
# For cross-compiling from Linux to Windows
amd64
using mingw
32
# http://
www.
mingw.org/
# For cross-compiling from Linux to Windows
64-bit
using mingw
64
# http://mingw
-w64
.org/
#
# $ sudo apt install mingw-w64
# $ make SYSTEM=linux-mingw64
NAME
:=
glew32
HOST
:=
i686
-w64-mingw32
HOST
:=
x86_64
-w64-mingw32
CC
:=
$(HOST)
-gcc
LD
:=
$(HOST)
-ld
LN
:=
STRIP
:=
LDFLAGS.GL
=
-lopengl32
-lgdi32
-luser32
-lkernel32
LDFLAGS.GL
=
-L
/usr/
$(HOST)
/lib
-lopengl32
-lgdi32
-luser32
-lkernel32
CFLAGS.EXTRA
+=
-fno-builtin
-fno-stack-protector
#LDFLAGS.EXTRA += -nostdlib
WARN
=
-Wall
-W
POPT
=
-O2
BIN.SUFFIX
=
.exe
...
...
@@ -19,4 +19,4 @@ LIB.SONAME = lib$(NAME).dll
LIB.DEVLNK
=
lib
$(NAME)
.dll.a
# for mingw this is the dll import lib
LIB.SHARED
=
$(NAME)
.dll
LIB.STATIC
=
lib
$(NAME)
.a
# the static lib will be broken
LDFLAGS.SO
=
-shared
-soname
$(LIB.SONAME)
--out-implib
lib/
$(LIB.DEVLNK)
LDFLAGS.SO
=
-nostdlib
-shared
-soname
$(LIB.SONAME)
--out-implib
lib/
$(LIB.DEVLNK)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment