Error when compiling source code

Post Reply
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Error when compiling source code

Post by yaroslav »

Hi JOHANNES! I compiled the libopencm3 library, then started compiling the source code, and it throws compilation errors
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Error when compiling source code

Post by yaroslav »

These are the errors
Attachments
error.jpg
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Error when compiling source code

Post by dima »

I put together a script for Windows.

You will need:
1) Python3 to compile libopencm3 library (and use Johannes version)
2) GCC 4.8 for Windows
3) ARM Embedded compiler
4) MinGW
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Error when compiling source code

Post by yaroslav »

You can write how to run the script?
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Error when compiling source code

Post by dima »

yaroslav wrote: Mon Jun 15, 2020 6:55 am You can write how to run the script?
It is a Windows PowerShell

1) Open PowerShell console (Start -> search for powershell)
2) Navigate to directory -> cd C:\...\...\
2) Run script (normally with .\ just like linux) -> .\script.ps1
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Error when compiling source code

Post by yaroslav »

Issued these errors:

You cannot call a method on a null-valued expression.
At D:\test\source.ps1:24 char:23
+ foreach($item in $zip.items())
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Error when compiling source code

Post by yaroslav »

Что я делаю не так?
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Error when compiling source code

Post by cloudy »

It's a million times easier to just use a gitpod environment in your browser:

viewtopic.php?f=7&t=267#p3179
Post Reply