nemerle / dcc

This is a heavily updated version of the old DOS executable decompiler DCC
GNU General Public License v2.0
146 stars 27 forks source link

can't get this to build #34

Closed Strugglemeat closed 2 years ago

Strugglemeat commented 2 years ago

I've tried with several different borland compilers in dosbox. can anyone provide a step-by-step guide on how to compile this?

nemerle commented 2 years ago

Ahh, I think the original readme I've added is a bit misleading.

The project should be built using CMake and a modern compiler ( MSVC/gcc/clang ).

Strugglemeat commented 2 years ago

ok, I used "cmake ." and then "make" and got an error about adding #include <cstddef> to idioms/idiom1.h just got a successful compile, testing

Strugglemeat commented 2 years ago

./dcc_original MAIN.EXE Model: m Borland v3 detected Signature file: dccb3m.sig Wanted to start interactive disasassembler for "proc_010eaa_51" : 29 dcc_original: /home/username/Downloads/dcc-qt5/src/scanner.cpp:579: eErrorId scan(uint32_t, ICODE&): Assertion `p.ll()->numBytes == p.insn.size' failed. Aborted (core dumped)

another try, different executable:

./dcc_original T2B.EXE Model: l Borland v3 detected Signature file: dccb3l.sig Warning: cannot open signature file /home/username/Downloads/dcc-qt5/sigs/dccb3l.sig Wanted to start interactive disasassembler for "proc_013e6c_27" : 87 Wanted to start interactive disasassembler for "proc_002739_45" : 0 Segmentation fault (core dumped)

nemerle commented 2 years ago

This tool was created a long, long time ago, and needs some serious amount of work to be something that can be used on 'random' 16-bit executables

My suggestion would be to see if ghidra or reko will not work better for You :smile:

Strugglemeat commented 2 years ago

ok, thanks