cloose / CuteMarkEd

Qt Markdown Editor
http://cloose.github.io/CuteMarkEd
Other
1.48k stars 319 forks source link

How do I build this project on macOS Sierra? #358

Closed raphaeltraviss closed 6 years ago

raphaeltraviss commented 7 years ago

Following the guide at https://github.com/cloose/CuteMarkEd/wiki/Build-Instructions, here are the steps I have performed:

  1. Install Qt 5.4, since WebKit has been removed from Qt starting in 5.6, and the project lists 5.4 as a dependency (I did see that some people were building with 5.5.1, which I haven't tried yet).
  2. brew install hunspell and discount, and verified that the libraries are installed in /usr/local/lib.
  3. run qmake using the binary from Qt 5.4.
  4. run make .

The output I get is the following:

ld: library not found for -lhunspell
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cutemarked.app/Contents/MacOS/cutemarked] Error 1
make: *** [sub-app-make_first] Error 2

It looks like clang can't find the hunspell library in /usr/local/lib. How do I point it to the correct location?

Has something changed in macOS Sierra or the homebrew package, so that the build instructions no longer work?

I'm using macOS Sierra 10.12.5.

MakeHui commented 7 years ago

Change CuteMarkEd/app/app.pro:

macx {
   # LIBS += -lhunspell
   # to
   LIBS += -lhunspell-1.6.0 # -version
}
raphaeltraviss commented 6 years ago

I tried including the library version in the app.pro file, but still received the same error. Closing this issue, as I am occupied with other concerns, but thank you for your help!