Taknok / NadekoBot

Raspberry NadekoBot : General purpose discord chat bot written in C# using Discord.net library.
MIT License
4 stars 0 forks source link

Compiling problems #9

Closed 4maself closed 6 years ago

4maself commented 6 years ago

Hey, I'm having trouble with compiling the current code. Any idea what could be the problem?

Expected Behavior

Succesfull compilation

Actual Behavior

57fc23b75388e450b097a6b475acfeef

Steps to Reproduce the Problem

  1. Download the repo
  2. Download dotnet SDK
  3. Open powershell in the repo folder
  4. dotnet restore
  5. dotnet publish -r ubuntu.16.04-arm -c Release

Specifications

Taknok commented 6 years ago

Are you using the sources from this repository ? I tested on a fresh install and the code from this repo is working :/

capture

4maself commented 6 years ago

I am, yes. Even tried the 1.9 version from Kwoth. It compiled, but was useless on the Pi. I will try it on my laptop. Maybe it makes any difference, since my pc is running an AMD processor.

4maself commented 6 years ago

Getting the same error on my laptop, unfortunately :|

Taknok commented 6 years ago

Try to clean the package downloaded by dotnet to do a clean install again.

4maself commented 6 years ago

I tried dotnet clean if that's what you meant, but I got the same errors after dotnet restore and dotnet publish -r ubuntu.16.04-arm -c Release

Taknok commented 6 years ago

Did you tried first with the repository of kwoth ? Or mine ?

When you run dotnet restore packages are downloaded locally. If you tried Kwoth repo 1st, there may be conflic version for my repo. The code on this repo is quite old (but working). The new code of Kwoth ask a lot of cpu, which rasp hasn't. I have to work on it, but I haven't time for it recently. Search a hidden folder .dotnet or so which should has this packages. Or try a fresh install on a VM.

4maself commented 6 years ago

I tried your repo first. I found the .dotnet folder in my user folder, but after deleting the content the problem still persists. I'm going to try a fresh Win10 in VMWare. Hope that helps. I'm already glad that you're putting time into helping me.

4maself commented 6 years ago

I just tried it on a freshly downloaded VM and It still errors :/

4maself commented 6 years ago

I also asked some friends to try compile it, but they had the same issues.

Taknok commented 6 years ago

I will take a closer look tomorrow :/

4maself commented 6 years ago

Oh before i forget. Your screenshot just shows the restore process but not the cross-compiling part. It's there where it starts to error.

Taknok commented 6 years ago

I compiled a version, but I have lost my SD card adapter... If you want you can try my compiled version : https://www12.zippyshare.com/v/HVAjgnoT/file.html ⚠️ You still need to install dependencies on rasp and create the credentials file !

You can try to solve the warnings, maybe it will fix the error messages. I suggest you to edit NadekoBot\src\NadekoBot\NadekoBot.csproj and replace <PackageReference Include="Discord.Net" Version="2.0.0-alpha-build-00824" /> by <PackageReference Include="Discord.Net" Version="1.0.2" />

4maself commented 6 years ago

Your compiled version worked like a charm, thanks!

I also changed the Discord.Net version to 1.0.2 and that worked aswell. Thanks for your time man!