Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake can not find mosquitto #7009

Closed
zlinwei opened this issue Jun 24, 2019 · 5 comments · Fixed by #12536
Closed

cmake can not find mosquitto #7009

zlinwei opened this issue Jun 24, 2019 · 5 comments · Fixed by #12536
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@zlinwei
Copy link

zlinwei commented Jun 24, 2019

cmake can not find mosquitto

@LilyWangL LilyWangL added the requires:more-information This Issue requires more information to solve label Jun 24, 2019
@LilyWangL
Copy link
Contributor

Hi @zlinwei, can you provide more information? How did you use this port? And what information did you get?

@zlinwei
Copy link
Author

zlinwei commented Jun 25, 2019

find_package(mosquitto CONFIG REQUIRED)

then I got

CMake Error at /home/locate/vcpkg/scripts/buildsystems/vcpkg.cmake:266 (_find_package):
  Could not find a package configuration file provided by "mosquitto" with
  any of the following names:

    mosquittoConfig.cmake
    mosquitto-config.cmake

  Add the installation prefix of "mosquitto" to CMAKE_PREFIX_PATH or set
  "mosquitto_DIR" to a directory containing one of the above files.  If
  "mosquitto" provides a separate development package or SDK, be sure it has
  been installed.

So I had to specify the location of libmosquitto.so like this:

target_link_libraries(target path_to/vcpkg/installed/x64-linux/lib/libmosquitto.so)

@MVoz
Copy link
Contributor

MVoz commented Jun 25, 2019

ln -S path_to/vcpkg/installed/x64-linux/lib/libmosquitto.so path_to/vcpkg/installed/x64-linux/lib/mosquitto.so
?

@zlinwei
Copy link
Author

zlinwei commented Feb 3, 2020

ln -S path_to/vcpkg/installed/x64-linux/lib/libmosquitto.so path_to/vcpkg/installed/x64-linux/lib/mosquitto.so
?

If I use it on Windows, How should I do?

@MVoz
Copy link
Contributor

MVoz commented Feb 3, 2020

@zlinwei

mklink /?

@LilyWangL LilyWangL changed the title mosquitto [mosquitto] New port request Feb 3, 2020
@LilyWangL LilyWangL changed the title [mosquitto] New port request mosquitto Feb 3, 2020
@LilyWangL LilyWangL changed the title mosquitto cmake can not find mosquitto Feb 3, 2020
@LilyWangL LilyWangL added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist and removed requires:more-information This Issue requires more information to solve labels Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants