Skip to content

Commit

Permalink
gcc -o inex-glinfo glinfo.c -O2 -lX11 -lGL -lXext
Browse files Browse the repository at this point in the history
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lXext
collect2: error: ld returned 1 exit status
make[1]: *** [make] Error 1
make[1]: Leaving directory
`/build/buildd/i-nex-0.6.2+bzr531+20140127~ubuntu14.04.1'
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 df2131d commit c8f0029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ AS_ROOT = sudo
CFLAGS = -g -Wall
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)
GBC = /usr/bin/gbc3
GBCOPTS = -eagtpmv
GBA = gba3
Expand Down Expand Up @@ -66,7 +68,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 -lX11 -lGL -lXext
$(CC) -o inex-glinfo glinfo.c -O2 $(libx11) $(libgl) $(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

0 comments on commit c8f0029

Please sign in to comment.