Como faço para instalar o i8086emu no fedora

1. Como faço para instalar o i8086emu no fedora

Marcelo Andrade de Sousa
marcelobc548

(usa Fedora)

Enviado em 21/04/2015 - 12:51h

Utilizo o Fedora linux e não estou conseguindo instalar o i8086emu.

1 -Baixei o arquivo i8086emu-src-0.9.2.tar.gz e desconpactei em uma pasta.
2 - Entrei na pasta onde foi descompactado e digitei sudo ./configure e obtive a seguinte saída.

[[email protected] i8086emu-src-0.9.2]$ sudo ./configure
[sudo] senha para bc548:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for a BSD-compatible install... /bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for dlsym in -ldl... yes
checking for wrefresh in -lncurses... yes
checking for pthread_create in -lpthread... yes
checking for g_signal_emit in -lgtk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for XkbGetMap in -lgdk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for g_malloc in -latk-1.0... no
configure: WARNING: Without ATK there will be no GTK-GUI of i8086emu!
checking for g_log in -lgdk_pixbuf-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for cpowf in -lm... yes
checking for pango_xft_picture_render in -lpangoxft-1.0... yes
checking for g_module_open in -lpangox-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_module_open in -lpango-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_free in -lgobject-2.0... no
configure: WARNING: Without gobject there will be no GTK-GUI of i8086emu!
checking for g_free in -lgmodule-2.0... no
checking for g_free in -lglib-2.0... yes
configure: creating ./config.status
config.status: creating ./src/Makefile
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.cfg
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.cfg
config.status: creating ./Makefile


3 - Em seguida digitei sudo make e obtive

[[email protected] i8086emu-src-0.9.2]$ sudo make
[sudo] senha para bc548:
make[1]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
if [ "0" != "0" ]; then make i8086gui;else echo "GTK GUI is disabled - may be you lack of gtk!";fi;
GTK GUI is disabled - may be you lack of gtk!
if [ 1 -eq 1 ]; then make i8086text;fi;
make[2]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
gcc -g -O2 -shared -fPIC devices/i8086pic.c i8086error.o i8086messages.o i8086util.o -o devices/i8086pic.so
/bin/ld: i8086error.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
i8086error.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:119: recipe for target 'devices/i8086pic.so' failed
make[2]: *** [devices/i8086pic.so] Error 1
make[2]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:34: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2


Por isso está acontecendo ?


  


2. Re: Como faço para instalar o i8086emu no fedora

Eris Ribeiro Junior
erisrjr

(usa Arch Linux)

Enviado em 21/04/2015 - 14:08h

Não querendo ser pessimista, mas o ultimo download dele é de 2004, acho que não vai compilar ou rodar direito em uma distro moderna(Posso estar errado, mas...).

Diga para que exatamente precisa dele, que caso alguém já use uma ferramenta para o que quer, poderá indicar.

------------------------------------------------------
¿? -> keyboard Error: No Keyboard Present, PRESS F1 to continue.



3. Re: Como faço para instalar o i8086emu no fedora

Ruan
ru4n

(usa Linux Mint)

Enviado em 21/04/2015 - 15:18h

Antes de rodar o configure, adicione o parâmetro "-fPIC" na variável CFLAGS e CXXFLAGS;

CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" ./configure


Dica: não precisa executar com sudo o ./configure e o make, somente no make install.
______________________________________________________________
Slackware 14.1 x86_64 - Core2Duo, 8GB RAM - NVIDIA GeForce 9500GT


4. Re: Como faço para instalar o i8086emu no fedora

Eris Ribeiro Junior
erisrjr

(usa Arch Linux)

Enviado em 21/04/2015 - 15:26h

ru4n escreveu:

Antes de rodar o configure, adicione o parâmetro "-fPIC" na variável CFLAGS e CXXFLAGS;

CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" ./configure


Dica: não precisa executar com sudo o ./configure e o make, somente no make install.
______________________________________________________________
Slackware 14.1 x86_64 - Core2Duo, 8GB RAM - NVIDIA GeForce 9500GT


Teste ai, aqui com o que o ru4n passou, compilou sem erros.

------------------------------------------------------
¿? -> keyboard Error: No Keyboard Present, PRESS F1 to continue.



5. Re: Como faço para instalar o i8086emu no fedora

Ruan
ru4n

(usa Linux Mint)

Enviado em 21/04/2015 - 16:01h

Teste ai, aqui com o que o ru4n passou, compilou sem erros.


Testei aqui também, compilou sem erros. A indicação da solução esta na própria mensagem de erro:

/bin/ld: i8086error.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

______________________________________________________________
Slackware 14.1 x86_64 - Core2Duo, 8GB RAM - NVIDIA GeForce 9500GT


6. Re: Como faço para instalar o i8086emu no fedora

Marcelo Andrade de Sousa
marcelobc548

(usa Fedora)

Enviado em 21/04/2015 - 16:18h

1 - Utilizei o comando abaixo no terminal (o que não me retornou nada).

CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC"

2 - Executei sudo ./configure e retornou

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for a BSD-compatible install... /bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for dlsym in -ldl... yes
checking for wrefresh in -lncurses... yes
checking for pthread_create in -lpthread... yes
checking for g_signal_emit in -lgtk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for XkbGetMap in -lgdk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for g_malloc in -latk-1.0... no
configure: WARNING: Without ATK there will be no GTK-GUI of i8086emu!
checking for g_log in -lgdk_pixbuf-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for cpowf in -lm... yes
checking for pango_xft_picture_render in -lpangoxft-1.0... yes
checking for g_module_open in -lpangox-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_module_open in -lpango-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_free in -lgobject-2.0... no
configure: WARNING: Without gobject there will be no GTK-GUI of i8086emu!
checking for g_free in -lgmodule-2.0... no
checking for g_free in -lglib-2.0... yes
configure: creating ./config.status
config.status: creating ./src/Makefile
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.cfg
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.cfg
config.status: creating ./Makefile

3 - Em executei sudo make, o que me retornou

make[1]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
if [ "0" != "0" ]; then make i8086gui;else echo "GTK GUI is disabled - may be you lack of gtk!";fi;
GTK GUI is disabled - may be you lack of gtk!
if [ 1 -eq 1 ]; then make i8086text;fi;
make[2]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
gcc -g -O2 -shared -fPIC devices/i8086pic.c i8086error.o i8086messages.o i8086util.o -o devices/i8086pic.so
/bin/ld: i8086error.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
i8086error.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:119: recipe for target 'devices/i8086pic.so' failed
make[2]: *** [devices/i8086pic.so] Error 1
make[2]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:34: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2


O erro continua ...


7. Re: Como faço para instalar o i8086emu no fedora

Ruan
ru4n

(usa Linux Mint)

Enviado em 21/04/2015 - 16:21h

É porque você fez de forma errada. Veja meu post, o ./configure vem após as duas variáveis. Se for executado depois, o CFLAGS/CXXFLAGS perdem o seu valor.
______________________________________________________________
Slackware 14.1 x86_64 - Core2Duo, 8GB RAM - NVIDIA GeForce 9500GT


8. Re: Como faço para instalar o i8086emu no fedora

Marcelo Andrade de Sousa
marcelobc548

(usa Fedora)

Enviado em 21/04/2015 - 16:29h

1- Executei no terminal o camndo abaixo

CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" ./configure

... e retornou

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for dlsym in -ldl... yes
checking for wrefresh in -lncurses... yes
checking for pthread_create in -lpthread... yes
checking for g_signal_emit in -lgtk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for XkbGetMap in -lgdk-x11-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for g_malloc in -latk-1.0... no
configure: WARNING: Without ATK there will be no GTK-GUI of i8086emu!
checking for g_log in -lgdk_pixbuf-2.0... no
configure: WARNING: Without GTK there will be no GTK-GUI of i8086emu!
checking for cpowf in -lm... yes
checking for pango_xft_picture_render in -lpangoxft-1.0... yes
checking for g_module_open in -lpangox-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_module_open in -lpango-1.0... no
configure: WARNING: Without Pango there will be no GTK-GUI of i8086emu!
checking for g_free in -lgobject-2.0... no
configure: WARNING: Without gobject there will be no GTK-GUI of i8086emu!
checking for g_free in -lgmodule-2.0... no
checking for g_free in -lglib-2.0... yes
configure: creating ./config.status
config.status: creating ./src/Makefile
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.cfg
configure: creating ./config.status
config.status: creating ./src/Makefile
config.status: creating ./src/emu.c

2 - Em seguida executei o comando make e me retornou

make[1]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
if [ "0" != "0" ]; then make i8086gui;else echo "GTK GUI is disabled - may be you lack of gtk!";fi;
GTK GUI is disabled - may be you lack of gtk!
if [ 1 -eq 1 ]; then make i8086text;fi;
make[2]: Entering directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
gcc -O2 -fPIC -DVERSION_NUMBER=\"0.9.2\" -c i8086text.c
gcc -O2 -fPIC -DVERSION_NUMBER=\"0.9.2\" -c i8086proc.c
i8086proc.c: In function ‘WBMemSignalHandler’:
i8086proc.c:72:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
r_mem = (char*)lParam;
^
gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -c i8086error.c
gcc -O2 -fPIC -c i8086datatrans.c
gcc -O2 -fPIC -c i8086emufuncs.c
gcc -O2 -fPIC -c i8086arithmetic.c
gcc -O2 -fPIC -c i8086control.c
gcc -O2 -fPIC -c i8086logic.c
gcc -O2 -fPIC -c i8086util.c
gcc -O2 -fPIC -c i8086controltrans.c
gcc -O2 -fPIC -c i8086wrapper.c
gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -c i8086messages.c
gcc -O2 -fPIC -c i8086strings.c
gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -DDATADIR=\"/usr/local/etc/i8086emu\" -c i8086config.c
gcc -O2 -fPIC -c disasm/disasm.c -o disasm/disasm.o
gcc -O2 -fPIC -c disasm/insnsa.c -o disasm/insnsa.o
gcc -O2 -fPIC -c disasm/insnsd.c -o disasm/insnsd.o
gcc -O2 -fPIC -c disasm/regs.c -o disasm/regs.o
gcc -O2 -fPIC -c disasm/regvals.c -o disasm/regvals.o
gcc -O2 -fPIC -c disasm/sync.c -o disasm/sync.o
gcc -O2 -fPIC -c -DVERSION_NUMBER=\"0.9.2\" i8086devices.c
gcc -O2 -fPIC -shared -fPIC devices/i8086pic.c i8086error.o i8086messages.o i8086util.o -o devices/i8086pic.so
gcc -O2 -fPIC -shared -fPIC devices/i8086pit.c i8086error.o i8086messages.o i8086util.o -o devices/i8086pit.so -lpthread
if [ "0" != "0" ]; then gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -shared -fPIC devices/i8086sic.c i8086error.o i8086messages.o -o devices/i8086sic.so `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`;fi;
gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -shared -fPIC devices/i8086beep.c i8086error.o i8086messages.o i8086util.o -o devices/i8086beep.so
if [ 1 -eq 1 ]; then gcc -O2 -fPIC `if [ "xterm-256color" = "cygwin" ]; then echo "-D _WIN32"; fi;` -shared -fPIC devices/i8086vga.c i8086error.o i8086messages.o -o devices/i8086vga.so -lpthread `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`;fi;
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
devices/i8086vga.c:24:28: fatal error: gdk/gdkkeysyms.h: Arquivo ou diretório não encontrado
#include <gdk/gdkkeysyms.h>
^
compilation terminated.
Makefile:131: recipe for target 'devices/i8086vga.so' failed
make[2]: *** [devices/i8086vga.so] Error 1
make[2]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:34: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/bc548/Downloads/i8086emu-src-0.9.2/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2


Ainda não funciona ...

Marcelo Sousa


9. Re: Como faço para instalar o i8086emu no fedora

Marcelo Andrade de Sousa
marcelobc548

(usa Fedora)

Enviado em 21/04/2015 - 16:42h

Após instalar o gtk2-devel.x86_64 via yum,consegui instalar o i8086emu.
Entretanto o terminal do linux apenas me disponibiliza o comando i8086text.

Como faço para iniciar o emulador em modo gráfico ?

Marcelo Sousa


10. Re: Como faço para instalar o i8086emu no fedora

Ruan
ru4n

(usa Linux Mint)

Enviado em 21/04/2015 - 17:32h

Após instalar o gtk2-devel.x86_64 via yum,consegui instalar o i8086emu.
Entretanto o terminal do linux apenas me disponibiliza o comando i8086text.


Instalou o gtk2-devel após ou antes de compilar o emulador? Se você instalou depois, tente refazer todo o processo desde o ./configure, com as dicas já passadas.

EDIT: antes de rodar o ./configure, dessa vez execute o make clean para limpar os restos da compilação anterior e suas configurações.
______________________________________________________________
Slackware 14.1 x86_64 - Core2Duo, 8GB RAM - NVIDIA GeForce 9500GT






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts