Compiling libnoise on windows with mingw

前端 未结 1 449
小蘑菇
小蘑菇 2021-01-19 10:45

This is my first post here so forgive me if I\'ve done something wrong.

I\'ve been struggling with this for a few days and I\'ve finally decided to concede and ask f

相关标签:
1条回答
  • 2021-01-19 11:24
    1. Don't worry about No such file or directory. It's normal, see the bottom of src/Makefile for explanation.
    2. Don't ever use target clean. I couldn't recover from that.
    3. Remove all directions to build .so files. These are linux files and cannot be built by mingw. Open all the Makefiles and comment out lines containing .so, except the lines:

      libnoise: libnoise.so libnoise.a libnoise.la
      all: libnoise.a libnoise.la libnoise.so.0.3

      In the above lines only remove the words containing .so. This will prevent building .so targets.

    Find the static library in src/.libs/libnoise.a.

    Building DLL would be a bit harder, as the authors build it using Visual Studio. There are no makefile targets to build the dll. One would need to prepare a few more lines to process files in win32 directory and produce the library out of it.

    0 讨论(0)
提交回复
热议问题