wisk / medusa

An open source interactive disassembler
Other
1.04k stars 92 forks source link

Problem building Docker #67

Open shuber1 opened 7 years ago

shuber1 commented 7 years ago

I used an Ubuntu 15.10 for building the docker image. While building I got the following error:

...
checking if /usr/bin/cc supports -Werror... yes
checking if /usr/bin/cc supports -Werror=attributes... yes
./configure: line 17571: --print-errors: command not found
checking whether ln -s works... yes
checking for XAU... configure: error: in `/home/developer/.hunter/_Base/8c538a0/a1b471c/d09ac7c/Build/xau/Source':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables XAU_CFLAGS
and XAU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
CMakeFiles/xau.dir/build.make:105: recipe for target 'xau-prefix/src/xau-stamp/xau-configure' failed
make[2]: *** [xau-prefix/src/xau-stamp/xau-configure] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/xau.dir/all' failed
Makefile:75: recipe for target 'all' failed
make[1]: *** [CMakeFiles/xau.dir/all] Error 2
make: *** [all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/developer/.hunter/_Base/8c538a0/a1b471c/d09ac7c/Build/xau
[hunter ** FATAL ERROR **] [Directory:/home/developer/.hunter/_Base/Download/Hunter/unknown/8c538a0/Unpacked/cmake/projects/xau]

apt-get install pkg-config sais: ...already newest version

w1gz commented 7 years ago

Hi, The Dockerfile is being a little bit «revamped» to follow future changes in Medusa. In the meantime, you can try the one on my fork (based on the upstream/dev branch).

I just tested it again, it's working, so you're probably good to go with this version.

wisk commented 7 years ago

Hi @shuber1,

It should work now (branch dev), however you might have to install the package pkg-config. Alternatively, you can install the qt5 package and use both -DMEDUSA_BUILD_WITH_QT=FALSE and -DCMAKE_MODULE_PATH=<qt5_cmake_path> variables (, plus you'll save time and resources :)). I'll try to update compilation instructions ASAP.