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

Error when building #7

Closed
jeremysong1106 opened this issue Sep 29, 2023 · 2 comments
Closed

Error when building #7

jeremysong1106 opened this issue Sep 29, 2023 · 2 comments

Comments

@jeremysong1106
Copy link

Hi,
I tried to build the code on my Ubuntu vm, and it said that the third party library doesn't exist, and I checked the folder again, the googletest and libjpeg-turbo is not pull from git.
I tried to manually pull the third party library and build it , then the error shows up :

undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status

am I building the code correctly? I'm looking forward to you helps,

Bests

@ram-mohan
Copy link
Contributor

target_link_libraries(ultrahdr_unit_test
${SRC_DIR}/third_party/build/googletest/src/googletest-build/lib/libgmock.a
${SRC_DIR}/third_party/build/googletest/src/googletest-build/lib/libgtest.a
${SRC_DIR}/third_party/build/googletest/src/googletest-build/lib/libgtest_main.a
pthread
)

can you add pthread to the list of libraries and see if it resolves the issue

@harishdm
Copy link
Contributor

harishdm commented Oct 3, 2023

Hi @jeremysong1106,
Thank you for reporting this issue.
pthread dependency has been added in the latest commit. Can you please try with the latest commit?

Also, for the issue with googletest and libjpeg-turbo not getting cloned in your VM setup, can you please confirm if your VM has git (version 1.6.5 or later) installed on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants