[SOLVED] Need help installing / compiling from source on Fedora


#1

edit: I solved the problem. So for the protocol: Compiling The Axoloti Patcher on Fedora works.
The patcher has to be cloned using the git command (downloading does not work).
Also during the build there is some file (chibiOS) not downloaded due to the server location having been changed (apparently). This can be solved by downloading the correct version manually and placing it in the right folder (platform_linux/src/ ).

Hi, the day before yesterday my Axoloti arrived, but I am still not able to install the patcher programm.
I have Fedora (Linux) 26. I tried the GUIX install, but I cannot install this guix thing. There is only some third party implementations apparently on copr.
I tried to install it using the website of guix, but this didn't work either. What contributes to the problem is, that I have no idea what guix really is and why i have to run so many commands. some of these commands just don't end in anything.

So i tried to compile axoloti patcher from source which works well until i get some error that has to do with chibiOS.zip. apparently this chibios.zip file isn't an archive or something.
In the build.sh there is some mentioning of Fedora, so the build should (at least theoretically) work on fedora, right?

Are there some alternative things i could try?

Any help would be appreaciated!


#2

which branch are you using?
you should try to use the 1.0.12 tag

you need to run platform_linux/build.sh... and it should go collect everything it needs.

I only ever build on Ubuntu, (which is why I list it as 'supported')

but someone from the community has added fedora to the build.sh, so I assume they tested it and got it working... but I dont know, hence cant support it (I dont have a fedora dist installed) .
Im sure if it needs fixing , its probably small..
(build.sh is actually a very simple script, that just downloads and unzips everything it needs)

first thing I would check is that its 'detecting fedora correctly.

as for errors, you need to be specific, what is the exact error message you get?
also we'd need to see the entire output from build.sh (e.g. so we can see if its detecting Fedora or not)

... so perhaps redirect the output to a file, and then post it somewhere where it can be downloaded

btw: also make sure you have java working , and that its Java 1.8... as discussed in install guides.


#3

it did detect fedora correctly. (that's why i checked out the build.sh script, to see what it does).
It did collect all needed parts exept when it came to this chibiOS.zip. I don't really understand the error message actually.

`[lukipuki@caravan platform_linux]$ ./build.sh

Axoloti Install script for Linux
This will install Axoloti
Use at your own risk

Some packages will be installed with apt-get,
and all users will be granted permission to access some USB devices
For this you'll require sudo rights and need to enter your password...
`
detected Fedora
[sudo] password for lukipuki:
Last metadata expiration check: 2:39:00 ago on Thu 14 Dec 2017 03:02:38 PM CET.
Group 'Development Tools' is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 2:39:03 ago on Thu 14 Dec 2017 03:02:38 PM CET.
Package libusb-1:0.1.5-8.fc26.x86_64 is already installed, skipping.
Package dfu-util-0.9-2.fc26.x86_64 is already installed, skipping.
Package libtool-2.4.6-17.fc26.x86_64 is already installed, skipping.
Package systemd-devel-233-7.fc26.x86_64 is already installed, skipping.
Package automake-1.15-9.fc26.noarch is already installed, skipping.
Package autoconf-2.69-24.fc26.noarch is already installed, skipping.
Package ant-1.10.1-4.fc26.noarch is already installed, skipping.
Package curl-7.53.1-12.fc26.x86_64 is already installed, skipping.
Package ncurses-libs-6.0-8.20170212.fc26.x86_64 is already installed, skipping.
Package ncurses-libs-6.0-8.20170212.fc26.i686 is already installed, skipping.
Package bzip2-1.0.6-22.fc26.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

udev rules already present, skipping

DONE

ChibiOS_2.6.9.zip already downloaded

[ChibiOS_2.6.9.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ChibiOS_2.6.9.zip or
ChibiOS_2.6.9.zip.zip, and cannot find ChibiOS_2.6.9.zip.ZIP, period.
`

I don't get the problem. I searched for this chibiOS.zip but there is some kind of error when i want to go to the folder it is supposed to be in. I cannot unzip it manually.
Is there some way I can get it from somewhere else? (btw the copypasted console log is just one part apparently " #### " breaks the code-formatting.

EDIT:
I looked into the build.sh file and tried to download the chibiOS myself. Which failed multiple time - maybe that had something to do with it. I finally gut this old chibiOS version and just put it into the foder, which works.
So the build.sh can go on :smiley:
wish me luck !


#4

looks like Chibios have changed the location of the download

its now at
curl -L http://sourceforge.net/projects/chibios/files/ChibiOS%20GPL3/Version%202.6.9/ChibiOS_2.6.9.zip

so download this file, and put it in platform_linux/src
and delete the chibios directory if it exists, to make sure it unzips this file

@johannes , Im assuming this has changed... so we should update build.sh on experimental too.


#5

Ok the chibiOS error seems to be solved (at least for me),
But now i get some other errors in some java-context.
Is Java installed automatically in the build?

in this post: https://sebiik.github.io/community.axoloti.com.backup/t/installing-on-linux/56
there is in the "Recommended Platform" part the mention of OpenJDK1.7. My OS says it is already installed (in fact 1.8 is installed).

somewhere below there is this:
Note: to create the bundles you will need to install the oracle java 8 Jdk

Is that the same as openjdk ? Or do I have to instlal some Oracle-Software then?

edit: Just for completion, this is the error i get when compiling:
-do-compile:
[javac] Compiling 405 source files to /home/lukipuki/Programs/axoloti-1.0.12/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:3: error: unclosed string literal
[javac] public final static String AXOLOTI_VERSION = "fatal: Not a git repository (or any parent up to mount point /)
[javac] ^
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:4: error: ';' expected
[javac] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).";
[javac] ^
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:4: error: ')' expected
[javac] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).";
[javac] ^
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:4: error: illegal start of type
[javac] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).";
[javac] ^
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:4: error: expected
[javac] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).";
[javac] ^
[javac] /home/lukipuki/Programs/axoloti-1.0.12/src/main/java/axoloti/Version.java:4: error: unclosed string literal
[javac] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).";
[javac] ^
[javac] 6 errors
[javac] 1 warning

BUILD FAILED
/home/lukipuki/Programs/axoloti-1.0.12/nbproject/build-impl.xml:911: The following error occurred while executing this line:
/home/lukipuki/Programs/axoloti-1.0.12/nbproject/build-impl.xml:261: Compile failed; see the compiler error output for details.

Total time: 1 second

#6

you should use git clone to download the repository, not just download the source.
eg.

git clone https://github.com/axoloti/axoloti
git checkout 1.0.12

(its important to checkout 1.0.12 , otherwise the versions for the community and factory library will be wrong)

JDK, if you have 1.8 installed thats fine.
the Oracle JDK is only needed if you want to build the application, which in your case you dont need.

I dont know if there are any issues with OpenJDK 1.8 (or 1.7) , as far as my testing went it seemed to be fine.
but I will say most users are using Windows/MacOS and these both use the Oracle Java.

anyway for now, Id say try with the JDK you have, it should be fine


#7

THANKS!!!
the build was successfull :smiley: :smiley: :smiley:

IT WORKS! Thank you guys!

Now I'll go to bed and think about what I'll build tomorrow with it.
Also in retrospect I was just a little stupid. For the protocol the build on Fedora works, just the chibliOS has to be downloaded manually and placed in the platform_linux/src folder.
Also don't copy the repo, clone it using the git command.
Maybe I'll update my post with that info?


#8

Hello, I'm having issues installing on ArchLinux using https://aur.archlinux.org/packages/axoloti/ because it depends on the ChibiOS .zip file, whose URL is no longer valid. I can't find it anywhere on the internet either. Any suggestions of where to find it or an alternative way to install this in Arch?


Cant download ChibiOs for linux 32bits instalation