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

Current master fails to build (against Qt 5.6.2 with your unix_qtbase_src_corelib.patch) #2

Open
kkofler opened this issue Nov 14, 2017 · 1 comment

Comments

@kkofler
Copy link

kkofler commented Nov 14, 2017

     [make] ../../../src/cpp/qtjambi/qtjambi_functions.cpp: In constructor 'AdoptedThread::AdoptedThread()':
     [make] ../../../src/cpp/qtjambi/qtjambi_functions.cpp:94:48: error: invalid conversion from 'pthread_t {aka long unsigned int}' to 'Qt::HANDLE {aka void*}' [-fpermissive]
     [make]          d_func()->data->threadId = pthread_self();
     [make]                                     ~~~~~~~~~~~~^~
@ZanSara
Copy link

ZanSara commented Apr 29, 2018

I am not a C++ developer, but I got past the same issue by fixing the line in question in this way:
d_func()->data->threadId = reinterpret_cast<Qt::HANDLE>(pthread_self());
I got the suggestion from here: https://stackoverflow.com/questions/22744139/error-invalid-conversion-from-void-to-testapr-size-t-aka-long-unsigned

kkofler added a commit to kkofler/qtjambi5 that referenced this issue May 15, 2018
src/cpp/qtjambi/qtjambi_functions.cpp (AdoptedThread::AdoptedThread):
Add missing casts.

Fixes tilialabs#2.
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

2 participants