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

How to compile for windows #441

Open
maruncz opened this issue Nov 12, 2021 · 4 comments
Open

How to compile for windows #441

maruncz opened this issue Nov 12, 2021 · 4 comments

Comments

@maruncz
Copy link

maruncz commented Nov 12, 2021

hi, i would like to run modified DSView on windows, but i struggle with compilation.
i tried script from sigrok-utils, but it doesn't work, it cannot find some libraries even if i installed them
does anybody know how to compile it?

@maruncz
Copy link
Author

maruncz commented Dec 23, 2021

no

@christianeisendle
Copy link

Hi @maruncz,

i'm struggling with the same issue. I tried to compile using the cross compilation scripts in sigrok-utils (which works perfectly fine for pulseview). I had to tweak it a bit because the Cmake script doesnt work out of the box:

  • project(DSView) in CMakeLists.txt needs to come first, at least before include(FindPkgConfig) on line 24
  • for some reason pkg-conf failed to find libsigrok4DSL and libsigrokdecode4DSL (which compiled fine on my end and also .pc files were created). I had to fix it by defining PKG_CONFIG_EXECUTABLE variable in CMakeLists.txt and let it point to the x-compiled version of pkg-config (strangely enough, this is not needed when building pulseview)
  • DSView.rc (the windows icon) is missing in the repository even though CMakeLists.txt refers to it

So finally it started to compile but it then fails in main.cpp where it uses some LPWSTR types which are a MS c compiler specific thing. So in other words: I feel that compilation for windows only works natively under windows with Visual Studio installed. Sadly enough, there is no documentation or recipe available on how to do that. Would be nice if the guys from @DreamSourceLab could update the Readme to add instructions on how to compile for windows.

This was referenced Jan 4, 2022
@bvernoux
Copy link

bvernoux commented Mar 23, 2022

Does anyone have found a way to build DSView for Windows with MSYS2/mingw64 ?

@andrei7c4
Copy link

I have the same question as others in this thread. Could @dreamsource-tai please provide at least some kind of guide for building Windows executable? Native or cross-compile, doesn't matter to me.

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