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

Linker Error when building for QNX #1506

Open
Contilehpat opened this issue Aug 13, 2024 · 0 comments
Open

Linker Error when building for QNX #1506

Contilehpat opened this issue Aug 13, 2024 · 0 comments

Comments

@Contilehpat
Copy link

Describe the bug
When building for QNX, a linker error appears, which states that libpthread was not found. In QNX, there is no explicit pthread library. However, pthreads are supported.

To Reproduce
Compile the package with the following cmake calls:
cmake -DPAHO_BUILD_SAMPLES=OFF -DPAHO_BUILD_EXAMPLES=OFF -DPAHO_BUILD_SHARED=ON -DPAHO_BUILD_STATIC=OFF -DPAHO_BUILD_TESTS=OFF

Expected behavior
Compiles as inteded

Screenshots

Log files

** Environment (please complete the following information):**

  • OS: Ubuntu Linux 20.04
  • Version [e.g. 22]
  • QNX 7.0 environment

Additional context
Compilation works with these modifications in src\CMakeLists.txt:
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "QNX") SET(LIBS_SYSTEM c )

@icraggs icraggs added this to the 1.3.14 milestone Sep 3, 2024
icraggs added a commit that referenced this issue Sep 3, 2024
icraggs added a commit that referenced this issue Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants