Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created May 27, 2020 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/ef4a5a7c18310c84d6c791969f7d6e0a to your computer and use it in GitHub Desktop.
Save btbytes/ef4a5a7c18310c84d6c791969f7d6e0a to your computer and use it in GitHub Desktop.
Installing and using NimQML(Nim binding for Qt5) on MacOSX

Installing DOtherside

Clone DOtherSide: git clone git@github.com:filcuc/dotherside.git

Compilation of DOtherside failed with:

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):                                                                                                                                                               
  The imported target "Qt5::Core" references the file                                                                                                                                                                                       
                                                                  ... snip ...

Fix according to this github issue

brew link --force qt5 && ln -s /usr/local/Cellar/qt/5.14.2/mkspecs /usr/local/mkspecs && ln -s /usr/local/Cellar/qt/5.14.2/plugins /usr/local/plugins
  1. qt5 might already be linked by brew.
  2. use sudo ln -s if required.

cmake .. works after the above.

make succeeded.

make install results in:

-- Install configuration: ""
-- Installing: /usr/local/include/DOtherSide/DOtherSide.h
-- Installing: /usr/local/include/DOtherSide/DOtherSideTypes.h
-- Installing: /usr/local/lib/libDOtherSide.0.6.4.dylib
-- Installing: /usr/local/lib/libDOtherSide.0.6.dylib
-- Installing: /usr/local/lib/libDOtherSide.dylib

Installing NimQML

nimble install nimqml

Testing examples

git@github.com:filcuc/nimqml.git

cd nimqml/examples/contactapp

nimble build

an app named main will be built. Run it with ./main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment