Hack Forums
Unable to install libgraph, error while using "make" & "sudo make install"command - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88)
+---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85)
+---- Thread: Unable to install libgraph, error while using "make" & "sudo make install"command (/showthread.php?tid=5517350)



Unable to install libgraph, error while using "make" & "sudo make install"command - skyte98 - Jan 7, 2017

Hey Guys,
I'm trying to install libgraph (to use graphics.h in c++) on my kali linux machine. When i run ./configure in the libgraph folder it runs just fine,
however i get an error while using the make command.
Here's the error :

root@nikhil:~/Downloads/lib# make
/bin/bash ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DXTHREADS -I/usr/include/directfb -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -o build/SDL_RLEaccel.lo
libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DXTHREADS -I/usr/include/directfb -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -fPIC -DPIC -o build/.libs/SDL_RLEaccel.o
./src/video/SDL_RLEaccel.c: Assembler messages:
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
build-deps:536: recipe for target 'build/SDL_RLEaccel.lo' failed
make: * [build/SDL_RLEaccel.lo] Error 1



Also I'm getting a similar error for sudo make install :

root@nikhil:~/Downloads/lib# sudo make install
/bin/bash ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DXTHREADS -I/usr/include/directfb -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -o build/SDL_RLEaccel.lo
libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DXTHREADS -I/usr/include/directfb -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -fPIC -DPIC -o build/.libs/SDL_RLEaccel.o
./src/video/SDL_RLEaccel.c: Assembler messages:
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
build-deps:536: recipe for target 'build/SDL_RLEaccel.lo' failed
make: * [build/SDL_RLEaccel.lo] Error 1




PLEASE HELP ME WITH THIS......


* - SuckySucky - Jan 8, 2017

Did you install build-essential ?

PHP Code

<?php 
sudo apt
-get install build-essential 



* - skyte98 - Jan 8, 2017

Did that, still not working...