Skip to content

Commit

Permalink
gcc -o inex-glinfo glinfo.c -O2 -lX11 -O2
Browse files Browse the repository at this point in the history
/tmp/ccXNE0wK.o: In function `main':
glinfo.c:(.text.startup+0x3c): undefined reference to
`glXChooseFBConfig'
glinfo.c:(.text.startup+0x4a): undefined reference to
`glXGetVisualFromFBConfig'
glinfo.c:(.text.startup+0x86): undefined reference to `glXCreatePixmap'
glinfo.c:(.text.startup+0xa2): undefined reference to
`glXCreateNewContext'
glinfo.c:(.text.startup+0xb0): undefined reference to `glXMakeCurrent'
glinfo.c:(.text.startup+0xc4): undefined reference to `glGetString'
glinfo.c:(.text.startup+0xe2): undefined reference to `glGetString'
glinfo.c:(.text.startup+0x100): undefined reference to `glGetString'
collect2: error: ld returned 1 exit status
make[1]: *** [make] Error 1
make[1]: Leaving directory `/build/buildd/i-nex-0.6.2'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
  • Loading branch information
eloaders committed Jan 27, 2014
1 parent c8f0029 commit 64aed65
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LSB_CS = $(shell lsb_release -cs)
CC_OPTS_LIBCPUID = $(shell pkg-config libcpuid --cflags --libs)
libgl = $(shell pkg-config gl --cflags --libs)
libx11 = $(shell pkg-config x11 --cflags --libs)
libxext = $(shell pkg-config xext --cflags --libs)
GBC = /usr/bin/gbc3
GBCOPTS = -eagtpmv
GBA = gba3
Expand Down Expand Up @@ -68,7 +69,7 @@ make:
$(CC) -o inex-cpuid cpu.c -static $(CC_OPTS_LIBCPUID) $(additional_confflags)
$(CC) -o inex-usage free.c -static $(CC_OPTS_LIBPROCPS) $(additional_confflags)
$(CC) -o inex-cpusage cpusage.c $(additional_confflags)
$(CC) -o inex-glinfo glinfo.c -O2 $(libx11) $(libgl) $(additional_confflags)
$(CC) -o inex-glinfo glinfo.c -O2 $(libx11) $(libgl) $(libxext) $(additional_confflags)
@printf "\033[1;31mCompile src/i-nex stage 1 \033[0m$1\n"
$(GBC) $(GBCOPTS) src/i-nex
@printf "\033[1;31mCompile src/i-nex stage 2 \033[0m$1\n"
Expand Down
37 changes: 14 additions & 23 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,22 @@ Build-Depends: debhelper (>= 7),
python | python-all | python-dev | python-all-dev,
pkg-config, dpkg-dev (>= 1.14.17),
debhelper (>= 5.0.0),
libcpuid11,
libcpuid11, procps,
libprocps0-dev|libprocps3-dev|libproc-dev,
mesa-common-dev,
gambas3-dev (>= 3.0.90),
gambas3-dev (<< 3.99.0),
gambas3-gb-image (>= 3.0.90),
gambas3-gb-image (<< 3.99.0),
gambas3-gb-qt4 (>= 3.0.90),
gambas3-gb-qt4 (<< 3.99.0),
gambas3-gb-form (>= 3.0.90),
gambas3-gb-form (<< 3.99.0),
gambas3-gb-desktop (>= 3.0.90),
gambas3-gb-desktop (<< 3.99.0),
libx11-dev,
libxext-dev,
libgl1-mesa-dev,
libglew-dev,
libglu1-mesa-dev,
libegl1-mesa-dev [linux-any kfreebsd-any],
libgles1-mesa-dev [linux-any kfreebsd-any],
libgles2-mesa-dev [linux-any kfreebsd-any],
gambas3-dev (>= 3.0.90),
gambas3-gb-image (>= 3.0.90),
gambas3-gb-qt4 (>= 3.0.90),
gambas3-gb-form (>= 3.0.90),
gambas3-gb-desktop (>= 3.0.90),
gambas3-gb-form-stock (>= 3.4.0),
dpkg (>= 1.15), grep (>= 2.5),
mount (>= 2.17),
procps,
x11-xserver-utils (>= 7.5),
lsb-release (>= 4.0),
bash (>= 4.1),
coreutils (>= 7.4),
sed (>= 4.2),
pciutils,
x11-utils (>= 7.5),
mesa-utils (>= 7.6),
imagemagick
Standards-Version: 3.9.4
Vcs-Browser: https://github.com/eloaders/I-Nex
Expand Down

0 comments on commit 64aed65

Please sign in to comment.