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

Building on Windows with MinGW64 #465

Closed
ivankravets opened this issue Sep 15, 2016 · 10 comments
Closed

Building on Windows with MinGW64 #465

ivankravets opened this issue Sep 15, 2016 · 10 comments

Comments

@ivankravets
Copy link

Hi,

According this PR #434 the MinGW should work. However, it doesn't work for me :(

Could someone help? Thanks!

I've tried to use mman from this repo https://github.com/witwall/mman-win32 but it didn't help :(

@xor-gate
Copy link
Member

I will enable appveyor builds for my fork. As @texane hasn't enabled this (yet). Probably I have broken something with this test: 57cf59a

@ivankravets
Copy link
Author

Thanks, will wait for the updates.

@xor-gate
Copy link
Member

Which version are you building?

@xor-gate
Copy link
Member

xor-gate commented Sep 15, 2016

It seems almost to work now, there was a bug in the cmake file.
https://ci.appveyor.com/project/xor-gate/stlink/build/4/job/farxcgt4j3mbwajq

@xor-gate
Copy link
Member

xor-gate commented Sep 15, 2016

Wohoo it seems to work:

C:\Users\Jerry\Downloads\stlink\build (master)
λ st-info.exe --probe
Found 1 stlink programmers
 serial: 503f6b06506752554231033f
openocd: "\x50\x3f\x6b\x06\x50\x67\x52\x55\x42\x31\x03\x3f"
  flash: 262144 (pagesize: 256)
   sram: 32768
 chipid: 0x0427
  descr: L1 Medium-Plus-density device

@xor-gate
Copy link
Member

Here is the build output: https://ci.appveyor.com/project/xor-gate/stlink/build/10.

@ivankravets
Copy link
Author

  1. My Win7 in VM is clean
  2. I use MinGW64 the same as you specified in here
  3. mkdir build && cd build
  4. cmake .. -G"MinGW Makefiles"

See logs:

What I'm doing wrong? Thanks!

@xor-gate
Copy link
Member

I'm not sure, the output you have pasted has nothing todo with your problem. CMake tried to check compiler options by compiling a dummy file with those options. This is why you see some fails. You should provide the output of the cmake -G run.

https://github.com/texane/stlink/blob/master/scripts/mingw64-build.bat

@ivankravets
Copy link
Author

  1. Removed totally all files with which I've played today
  2. Cloned repo from the scratch.
  3. Build and Success!!!

Thank you!

@xor-gate
Copy link
Member

I am so happy you have it working! Thanks for your patience and reporting.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants