-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Build: protobuf fixes for docker, cross-compilation, monero-gui #4945
Conversation
Waiting how the tests end up... @TheCharlatan could you pls test this one then? I recall you had some issues with protobuf deps so I am wondering if this can fix it. Thanks! |
... still testing and fixing |
f819d65
to
a69f258
Compare
a69f258
to
7beef91
Compare
@TheCharlatan I was wondering, can we make libusb compile also with mingw? It could work with |
Hmm same error here as described in protocolbuffers/protobuf#5358 |
You can add plattform specific rules like this:
|
aaf8264
to
9e881e5
Compare
@TheCharlatan fix to the |
Great! Can you comment it on the issue, I'll close it then. Can you also add a line in the readme about selecting the posix alternative? |
I will adopt the PR later today/tomorrow but it seems I have fully working compilation for all platforms with protobuf and libusb (still struggling with osx+libusb a bit but I will fix it soon) |
The key point is probably to set both gcc and g++ to posix versions and to regenerate docker dependencies & clean rebuild. |
9e881e5
to
3ea03a0
Compare
OK The build works, but Travis failed as it didn't make it under 50 minutes time limit for Win64. I am done on this from my side. |
3ea03a0
to
7c410fb
Compare
@TheCharlatan thanks for the approval! I had to do one small fix in the cmake now 😞 |
7c410fb
to
fede76f
Compare
@TheCharlatan I've rebased on master. Could I ask you for the review? :) |
@danrmiller could you pls check
|
1f4e654
to
25e0553
Compare
OK another cmake improvements. Now I've added stuff for GUI compilation. |
@ph4r05 - For the GUI compilation, have you also looked at necessary changes in the GUI repository? Specifically, the |
@dEBRUYNE-1 it's only required to add:
This is the simplest way I could think of. Trezor has variable dependencies, e.g. if there is a compatible libusb library present, it uses it. The file I am also having issues with
I had to switch it to To get the GUI working with the Trezor I need a few more modifications (key image sync), which I will add as a separate PR. |
Thanks for the clarification. I am, alas, not sufficiently knowledgeable to assist / help you with your building issues. |
@ph4r05 Thanks, it builds now, just looks like I still need to look at something with a temp file in use during the tests. |
@dEBRUYNE-1 thanks. I have it building OK now. Now I just need to connect Trezor features to the GUI :) |
@danrmiller thanks for fixing the build. This test failure is quite common. It is present also on other architectures and I think quite old. |
I've created corresponding PR in monero-gui: monero-project/monero-gui#1838 |
25e0553
to
f7715a8
Compare
- docker protobuf dependencies, cross-compilation - device/trezor protobuf build fixes, try_compile - libusb built under all platforms, used by trezor for direct connect
f7715a8
to
e37154a
Compare
e37154a build: protobuf dependency fixes, libusb build (ph4r05)
Fixes
/contrib/depends
for protobuf so it works also in cross-compilation under docker.Two packages are needed,
native_protobuf
andprotobuf
.native_protobuf
buildsprotoc
under host so it can use it to generate trezor messages. Nativeprotoc
is also used during build of the target hostprotobuf
dependency.Adds dependencies for GUI compilation. Changes to the
monero-wallet-gui.pro
file: