CuteMarkEd
CuteMarkEd copied to clipboard
duplicate symbol in: spellchecker_macx.o spellchecker_unix.o
MacOS 10.11.5
⇒ clang -v
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
QT 5.5.1 independence package from qt
**qt-opensource-mac-x64-clang-5.5.1.dmg**
⇒ /opt/local/qt5.5.1/5.5/clang_64/bin/qmake -v
QMake version 3.0
Using Qt version 5.5.1 in /opt/local/qt5.5.1/5.5/clang_64/lib
⇒ brew info hunspell
hunspell: stable 1.4.1 (bottled)
Spell checker and morphological analyzer
https://hunspell.github.io
Conflicts with: freeling
/usr/local/Cellar/hunspell/1.4.1 (618 files, 1.7M) *
Poured from bottle on 2016-07-01 at 23:17:54
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/hunspell.rb
==> Dependencies
Required: readline ✔
==> Caveats
Dictionary files (*.aff and *.dic) should be placed in
~/Library/Spelling/ or /Library/Spelling/. Homebrew itself
provides no dictionaries for Hunspell, but you can download
compatible dictionaries from other sources, such as
https://wiki.openoffice.org/wiki/Dictionaries .
the libhunspell installed in /usr/local/lib but we must make a link symbol from libhunspell-1.4.a to libhunspell.a to fix bellow issue according to https://github.com/cloose/CuteMarkEd/issues/196 :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -Wl,-rpath,/opt/local/qt5.5.1/5.5/clang_64/lib -o cutemarked.app/Contents/MacOS/cutemarked main.o mainwindow.o markdowneditor.o linenumberarea.o activelabel.o fileexplorerwidget.o findreplacewidget.o recentfilesmenu.o htmlpreviewgenerator.o markdownhighlighter.o highlightworkerthread.o markdownmanipulator.o exportpdfdialog.o exporthtmldialog.o htmlhighlighter.o options.o optionsdialog.o spellchecker.o languagemenu.o tabletooldialog.o imagetooldialog.o snippetcompleter.o snippetstablemodel.o aboutdialog.o statusbarwidget.o spellchecker_macx.o spellchecker_unix.o qrc_resources.o qrc_translations.o moc_mainwindow.o moc_markdowneditor.o moc_linenumberarea.o moc_activelabel.o moc_fileexplorerwidget.o moc_findreplacewidget.o moc_recentfilesmenu.o moc_htmlpreviewgenerator.o moc_markdownhighlighter.o moc_highlightworkerthread.o moc_exportpdfdialog.o moc_exporthtmldialog.o moc_options.o moc_optionsdialog.o moc_languagemenu.o moc_tabletooldialog.o moc_imagetooldialog.o moc_snippetcompleter.o moc_snippetstablemodel.o moc_aboutdialog.o moc_statusbarwidget.o -F/opt/local/qt5.5.1/5.5/clang_64/lib -L/usr/local/lib -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../app-static/ -lapp-static -L/usr/lib -lmarkdown -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../libs/peg-markdown-highlight/ -lpmh-adapter -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../3rdparty/peg-markdown-highlight/ -lpmh -lhunspell -framework QtWebKitWidgets -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtWebKit -framework QtNetwork -framework QtPrintSupport -framework OpenGL -framework AGL
**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
⇒ ll /usr/local/lib/libhunspell*
lrwxr-xr-x 1 laris wheel 52B Jul 1 23:17 /usr/local/lib/libhunspell-1.4.0.dylib -> ../Cellar/hunspell/1.4.1/lib/libhunspell-1.4.0.dylib
lrwxr-xr-x 1 laris wheel 46B Jul 1 23:17 /usr/local/lib/libhunspell-1.4.a -> ../Cellar/hunspell/1.4.1/lib/libhunspell-1.4.a
lrwxr-xr-x 1 laris wheel 50B Jul 1 23:17 /usr/local/lib/libhunspell-1.4.dylib -> ../Cellar/hunspell/1.4.1/lib/libhunspell-1.4.dylib
lrwxr-xr-x 1 laris wheel 32B Jul 17 09:28 /usr/local/lib/libhunspell.a -> /usr/local/lib/libhunspell-1.4.a
now looks like the spellchecker code didn't split the unix/macx:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -Wl,-rpath,/opt/local/qt5.5.1/5.5/clang_64/lib -o cutemarked.app/Contents/MacOS/cutemarked main.o mainwindow.o markdowneditor.o linenumberarea.o activelabel.o fileexplorerwidget.o findreplacewidget.o recentfilesmenu.o htmlpreviewgenerator.o markdownhighlighter.o highlightworkerthread.o markdownmanipulator.o exportpdfdialog.o exporthtmldialog.o htmlhighlighter.o options.o optionsdialog.o spellchecker.o languagemenu.o tabletooldialog.o imagetooldialog.o snippetcompleter.o snippetstablemodel.o aboutdialog.o statusbarwidget.o spellchecker_macx.o spellchecker_unix.o qrc_resources.o qrc_translations.o moc_mainwindow.o moc_markdowneditor.o moc_linenumberarea.o moc_activelabel.o moc_fileexplorerwidget.o moc_findreplacewidget.o moc_recentfilesmenu.o moc_htmlpreviewgenerator.o moc_markdownhighlighter.o moc_highlightworkerthread.o moc_exportpdfdialog.o moc_exporthtmldialog.o moc_options.o moc_optionsdialog.o moc_languagemenu.o moc_tabletooldialog.o moc_imagetooldialog.o moc_snippetcompleter.o moc_snippetstablemodel.o moc_aboutdialog.o moc_statusbarwidget.o -F/opt/local/qt5.5.1/5.5/clang_64/lib -L/usr/local/lib -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../app-static/ -lapp-static -L/usr/lib -lmarkdown -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../libs/peg-markdown-highlight/ -lpmh-adapter -L/Users/laris/Projects/github/CuteMarkEd_laris/app/../3rdparty/peg-markdown-highlight/ -lpmh -lhunspell -framework QtWebKitWidgets -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtWebKit -framework QtNetwork -framework QtPrintSupport -framework OpenGL -framework AGL
ld: warning: object file (/usr/local/lib/libhunspell.a(hunspell.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(csutil.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(suggestmgr.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(hashmgr.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(replist.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(affixmgr.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(resource.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(markdown.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(generate.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(mkdio.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(toc.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(Csio.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(phonet.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(filemgr.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(affentry.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(emmatch.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(xml.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(setup.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libmarkdown.a(tags.o)) was built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libhunspell.a(hunzip.o)) was built for newer OSX version (10.11) than being linked (10.7)
duplicate symbol __ZN8hunspell12SpellChecker21availableDictionariesEv in:
spellchecker_macx.o
spellchecker_unix.o
ld: 1 duplicate symbol for architecture x86_64
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