Installing SimpleIDE on Fedora 22
mindrobots
Posts: 6,506
I hope this doesn't detract anyone from bickering or complaining but hopefully, this will help at least a few forum users.
The following steps should result in a (mostly) working SimpleIDE installation on your Fedora 22 Linux distribution. These are the steps I followed and the only issue I have are related to the SimpleIDE Terminal and I just haven't pursued those further at this time.
1) Install propgcc - based on this thread, I downloaded the .tar file appropriate for my system by clicking on the proper link. In my case for Fedora 22, it was the GCC5 X86-64 Linux link. This gave me a .tar.gz file in my Downloads directory. At this point, I did the following steps:
<pre>
[rapost@toshi ~]$ sudo tar -xvf Downloads/propellergcc-alpha_v1_9_0-gcc5-linux-x64.tar.gz
.
. untarring happens
.
[rapost@toshi ~]$ sudo mv parallax /opt
[rapost@toshi ~]$ ls /opt/parallax
bin include lib libexec propeller-elf propeller-load share
</pre>
from the ls, you can see the fruits of your labors
Now, before you forget, update your .bashrc file so it has this line in it:
PATH=$PATH:/opt/parallax/bin
and the do:
$ source .bashrc
This should give you a working propgcc install. If you have a favorite editor you like to use, you can stop here and go off and program your Propellers in C.
2) Install QT5 (including QTCreator) - I'm not gogin to detail this step since it will change at the whim of the QT guys. Follow their instructions and you should end up with a working QT install and a QTCreator you can use to build SimpleIDE.
** You can't avoid installing QT and building SimpleIDE - there isn't a ready to install package for Fedora **
3) Download the source for SimpleIDE so you can build it on your system. (The latest SimpleIDE I found is here, hosted on Google code)
(You need mercurial on your system - type "hg" at a prompt - Fedora will offer to install it if it is not already installed)
$ hg clone https://code.google.com/p/propside/
This will create a propside directory on your system.
$ cd propside
$ hg update qt5side
That last command will fetch the latest updates to make SimpleIDE source compatible with QT5.
4) Build SimpleIDE with QTCreator
OK, this is the hardest part if you haven't done it before.
a) Start up QTCreator
b) from the file menu (or the main screen, I think gives you an "open project" option) you want to open a project - you need to navigate to propside/propside/propside.pro - the first propside directory is the one that was created when you did the "hg clone" command.
c) You should be presented with a screen that talks about configuring the project. I just hit "Configure Project" at this point and let QTCreator do its thing.
d) Now, on the left hand panel, there should be a terminal icon with "propside" above it and either "release" or "debug" below it. If it says "debug", click on the icon and then select "release" - after this, QTCreator will do some reconfiguration - you'llsee a box with green bars in the lower right corner for a short while.
e) Hit the hammer icon to build it (or you can hit the green arrow "play" icon to build and run if you want)! Hopefully, you'll get no more than one or two warning messages. Those are OK.
If you chose to run, SimpleIDE will start up and you will be ready to check its configuration and update the Learn library. (again, I'm using someone else's instructions so they hopefully keep updated - you will need to do this because there is no learn library at this point since you are doing all this from scratch instead of a package manager doing it for you)
Either way, at some point, you should put your newly built SimpleIDE some place safe.
f) The executable file shoudl be here if you built a "release" -> propside/build-propside-Desktop_Qt_5_4_2_GCC_64bit-Release where propside is the propside directory you created with the "hg clone" command. You want to copy the SimpleIDE file out of here and put it someplace safe. Mine went to /usr/local/bin where all my locally installed programs end up.
When I execute mine from /usr/local/bin, I get a message: "The SimpleIDE library package is not found. Please reinstall the software." but it still seems to work. I need to investigate that and correct it.
If you make it through all these steps, you'll be closer to having SimpleIDE on your Fedora system than you were an hour or so ago.
No guarantees and of course, your results may vary.
Post up any issues, I'm far from an expert but there are some on the forum that will hopefully chime in with some help and suggestions.
Rick
The following steps should result in a (mostly) working SimpleIDE installation on your Fedora 22 Linux distribution. These are the steps I followed and the only issue I have are related to the SimpleIDE Terminal and I just haven't pursued those further at this time.
1) Install propgcc - based on this thread, I downloaded the .tar file appropriate for my system by clicking on the proper link. In my case for Fedora 22, it was the GCC5 X86-64 Linux link. This gave me a .tar.gz file in my Downloads directory. At this point, I did the following steps:
<pre>
[rapost@toshi ~]$ sudo tar -xvf Downloads/propellergcc-alpha_v1_9_0-gcc5-linux-x64.tar.gz
.
. untarring happens
.
[rapost@toshi ~]$ sudo mv parallax /opt
[rapost@toshi ~]$ ls /opt/parallax
bin include lib libexec propeller-elf propeller-load share
</pre>
from the ls, you can see the fruits of your labors
Now, before you forget, update your .bashrc file so it has this line in it:
PATH=$PATH:/opt/parallax/bin
and the do:
$ source .bashrc
This should give you a working propgcc install. If you have a favorite editor you like to use, you can stop here and go off and program your Propellers in C.
2) Install QT5 (including QTCreator) - I'm not gogin to detail this step since it will change at the whim of the QT guys. Follow their instructions and you should end up with a working QT install and a QTCreator you can use to build SimpleIDE.
** You can't avoid installing QT and building SimpleIDE - there isn't a ready to install package for Fedora **
3) Download the source for SimpleIDE so you can build it on your system. (The latest SimpleIDE I found is here, hosted on Google code)
(You need mercurial on your system - type "hg" at a prompt - Fedora will offer to install it if it is not already installed)
$ hg clone https://code.google.com/p/propside/
This will create a propside directory on your system.
$ cd propside
$ hg update qt5side
That last command will fetch the latest updates to make SimpleIDE source compatible with QT5.
4) Build SimpleIDE with QTCreator
OK, this is the hardest part if you haven't done it before.
a) Start up QTCreator
b) from the file menu (or the main screen, I think gives you an "open project" option) you want to open a project - you need to navigate to propside/propside/propside.pro - the first propside directory is the one that was created when you did the "hg clone" command.
c) You should be presented with a screen that talks about configuring the project. I just hit "Configure Project" at this point and let QTCreator do its thing.
d) Now, on the left hand panel, there should be a terminal icon with "propside" above it and either "release" or "debug" below it. If it says "debug", click on the icon and then select "release" - after this, QTCreator will do some reconfiguration - you'llsee a box with green bars in the lower right corner for a short while.
e) Hit the hammer icon to build it (or you can hit the green arrow "play" icon to build and run if you want)! Hopefully, you'll get no more than one or two warning messages. Those are OK.
If you chose to run, SimpleIDE will start up and you will be ready to check its configuration and update the Learn library. (again, I'm using someone else's instructions so they hopefully keep updated - you will need to do this because there is no learn library at this point since you are doing all this from scratch instead of a package manager doing it for you)
Either way, at some point, you should put your newly built SimpleIDE some place safe.
f) The executable file shoudl be here if you built a "release" -> propside/build-propside-Desktop_Qt_5_4_2_GCC_64bit-Release where propside is the propside directory you created with the "hg clone" command. You want to copy the SimpleIDE file out of here and put it someplace safe. Mine went to /usr/local/bin where all my locally installed programs end up.
When I execute mine from /usr/local/bin, I get a message: "The SimpleIDE library package is not found. Please reinstall the software." but it still seems to work. I need to investigate that and correct it.
If you make it through all these steps, you'll be closer to having SimpleIDE on your Fedora system than you were an hour or so ago.
No guarantees and of course, your results may vary.
Post up any issues, I'm far from an expert but there are some on the forum that will hopefully chime in with some help and suggestions.
Rick
Comments
Easy as Pi !
I just tried to read through a tutorial about creating an RPM package. What I went through above seems much, much easier!!! I'm starting to think packages are over-rated.....especially if one waits for me to create it!! )
The hands-on experience of carving out your own little custom built piece of software is much more rewarding in this overloaded world of instant gratification!!!
Until that time a simple "make" or "qmake; make" should work. And apps should be usable without being integrated into the OS.
As it happens it turns out to be very hard to make this work across many operating systems. Despite the existence of make, qmake, autoconf and other build tools.
That is why I think hard before doing anything that cannot be done in JavaScript. The most widely available system for distributing working code the world has ever seen.