| Author | Comment | ||
|---|---|---|---|
AaroneusTheGreat |
KTIGCC |
Lead | |
|
I just installed a dual boot system, I have Xubuntu and Windows Xp on the same system, and I wanted to know how to install TIGCC and TIEMU on my Xubuntu installation. It's confusing the crap out of me because I have very limited experience in linux. You should have seen me setting up the dual boot, it was a mess. Anywho any and all help would be greatly appreciated. Thanks
|
|||
Lionel Debroux |
Re: KTIGCC | ||
|
There are two ways of installing programs: compiling them from the sources, or installing precompiled packages (similar to installers in the Windows world, only they install at a predefined place and therefore, you usually don't have to edit your PATH).
Fortunately, Windows, MacOS X, most (GNU/)Linux distributions and (Open)Solaris favor the second way. Obviously, for you, the first way is hardly feasible, all the more you'd have to install at least the KDE/Qt development libraries for KTIGCC, and maybe something for TIGCC too. It would be a good way to learn, but it's a bit too much to chew in one chunk... and there are programs simpler than TIGCC to start with. (On a side note, it's even harder to compile from the sources on Windows, because you'd first have to install a C/C++ compiler + development libraries - none are provided out of the box - and for TIGCC, a Delphi compiler+development library to compile the IDE) So that leaves us with precompiled packages. There are more than 20000 precompiled packages for Debian and the Ubuntu family, in the official repositories... but TIGCC and KTIGCC are not among them. Of course, there are many unofficial repositories. The one for TIGCC and KTIGCC is repo.calcforge.org/ , which provides packages for Debian, Fedora and CentOS. However, given that the Ubuntu family has mild compatibility with Debian, I'm definitely not sure that the precompiled Debian packages would work on a distro of the Ubuntu family. Try it, but if that doesn't work (missing dependencies, etc.), then one of us will have to compile the program for you, on the same Xubuntu as you have (version 8.04 ?)... (oh, and BTW, we need to contact Romain: the KTIGCC deb has disappeared from the Calcforge Debian repository !) |
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
I was wondering about that I know about how to install Debian packages, and I have the compiler installed. (the path is /usr/local/tigcc) and for some reason I have to change the path each time I want to use it using the export thing.
export TIGCC=/usr/local/tigcc export PATH=$PATH:$TIGCC/bin And it works fine when I compile my tpr projects and stuff. Only issue is is using the command line will take forever. I like to have the interface to be able to edit stuff with. I'm catching the hang of Linux finally, it's not to bad with Xubuntu (it is 8.04) I'll try and do a google search for the Debian package for ktigcc it could be somewhere else as well. Thanks alot for your help. |
|||
Lionel Debroux |
Re: KTIGCC | ||
|
Yes, you have to edit the PATH because TIGCC installs itself in a non-standard location, and doesn't put a symbolic link (roughly, shortcut in the Windows world) in /usr/local/bin.
Put " export TIGCC=/usr/local/tigcc export PATH=$PATH:$TIGCC/bin " in your ~/.bashrc ( /home/[whateverusernameyouchose]/.bashrc) file, so that these lines are automatically executed > I like to have the interface to be able to edit stuff with. For editing, there are plenty of syntax-coloring text editors. I don't know what Xubuntu provides by default (maybe the limited Gedit ?), but I use SciTE and KWrite/Kate. But syntax-coloring text editors won't build a project or transfer the file to the calculator in a single click / keypress... In the package manager (or whatever its name in the XFCE menus), which is usually Synaptic (at least, that's what the Ubuntu 7.10 users at work use), you have to enable the repo.calcforge.org repository. I've put a screenshot for Synaptic (the most user-friendly one, IMO) at img126.imageshack.us/my.p...ccovb2.png : * the URI is a base in the filesystem of the repo.calcforge.org repository; * the distribution is "stable", i.e. the packages are intended to be used with Debian stable (Debian 4.0 currently); * the categories are main and non-free, to indicate different licensing schemes (the packages in non-free have less permissive licenses than the packages in main). [EDIT: forgot the link] |
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
That's very useful, I'll keep that in mind if I can't get ktigcc up and running.
I just got tilp to work in Linux. This starting of programs from the terminal is interesting, something I'm definitely not used to at least. I do have synaptic but I don't understand a lot about it other than searching and installing. I'm getting the hang of it slowly but surely. Thanks for all your help so far. I haven't booted windows in 2 days! |
|||
Lionel Debroux |
Re: KTIGCC | ||
|
Compiling KTIGCC requires a number of KDE/Qt development packages (and their transitive dependencies). qt3-dev-tools, libqt3-headers, libqt3-mt-dev are a good list to start with, but probably incomplete.
In any case, having the build-essential package won't hurt. > This starting of programs from the terminal is interesting, something I'm definitely not used to at least. Although it's (perhaps counter-intuitively) often faster starting the program from a terminal than going through the menus, you definitely don't _have to_ start programs from the terminal. If the packages don't provide menu entries (many do), you should send feature requests to the developers For more than a year, I've been used to starting, in the same Konsole window, as many terminals as can fit on the screen without scrolling the terminal list - that is, 9 on my older computer and 10 on this one. I don't use all of them everyday, but most of them point to the folders I'm currently using for a longer period of time. The couple spare sessions are used for temporary work in other folders. > I don't understand a lot about it other than searching and installing Well, most of the time, there's little else you need to worry about |
|||
Kevin Kofler |
Re: KTIGCC | ||
|
I recommend using Fedora rather than (X)Ubuntu, that way you'll get my repo.calcforge.org packages, which also install working menu entries. While I personally recommend KDE, there is also an XFCE spin of Fedora.
Fedora 9 is going to come out in a few days (currently scheduled for May 13), there is a preview release already, but repo.calcforge.org is not ready for it yet. Expect an announcement here when it is (which should be somewhere around the official release day). Right now you're probably best off waiting. |
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
Fedora is better supported then? I really like the feel of xubuntu and I finally got used to it. I tried PCLinuxOS once and it was neat (it used kde) but it was a nightmare to install the wireless network card I'm using.
Is Fedora easy with these things? Do RPM's work like Debian packages? Is it as easy as the apt-get install thing? |
|||
Kevin Kofler |
Re: KTIGCC | ||
Quote: By the CalcForge packages, yes, definitely, given that there's actually a Fedora packager (me Quote: Well, sorta. Fedora includes always the latest Free drivers (so no problems there), but it doesn't include proprietary drivers like MadWiFi (there's the experimental ath5k, but that one is not really working yet for most people). (Most proprietary stuff can be obtained from rpm.livna.org.) Firmware (for the cards which need it) is included though, as long as it's freely redistributable (which is the case for everything except Broadcom, where there's a special procedure to follow to extract the firmware). Quote: Mostly yes. Quote: You can even use apt on Fedora (apt-rpm), but the default yum is just as easy to use. (The GUIs are not as advanced as Synaptic though, so I use Synaptic with apt-rpm.) |
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
Dude you guys are awesome I have KTIGCC working now. I google searched and found a debian package set all zipped up in one file it's pretty sweet. Although I couldn't tell you where I got it now. It's got all the dependancies and everything
I think I'm good now [edit] a new problem has sprung apon me. It appears the debian package for KTIGCC I found was an old version. It works but it uses libticables2 and libticalcs2 and just plain old libticonv It appears that TIEMU 3.02 is wanting to use libticables3 or 4 or something and the two aren't compatible. Is there a version of TIEMU that works with the libs I have? I don't feel like hunting down the debian for the current ktigcc because I have one that works now and if all else fails I can just boot windows (it's been 3 days since I did that now Or I could test on a real calc, but tilp requires newer libs as well so I'm kind of stuck. I can write and compile code, I just can't test it or send it to my calc. lol so it's near pointless to even work on my linux distro until I get some testing and linking stuff working. Any suggestions? |
|||
Lionel Debroux |
Re: KTIGCC | ||
|
It's very common to fetch outdated versions of packages, Windows executables and whatnot, when searching with a search engine...
Why not trying to compile KTIGCC ? The procedure for compiling KTIGCC is definitely easier than that for compiling TIGCC. You may be missing several development packages (I posted some of them above), but after you've installed them, you'll be OK. Off-topic: I wondered how long it would take for Kevin's to post a push for his favorite distro Using Synaptic on Fedora is definitely a good idea. Synaptic is indeed an advanced package manager, and it's fast, unlike some of Fedora's GUI package managers. The one in the install procedure used to take dozens of seconds (on a fairly modern computer) to compute dependencies (does it still ?), which is irritatingly slow. |
|||
Kevin Kofler |
Re: KTIGCC | ||
|
There's no KTIGCC in Romain's Debian repository because the current version doesn't build on Debian stable, the KDE in Debian stable is too old. Reverting one KTIGCC change (in a patch for the Debian package only, I see no reason to support such ancient versions of KDE in my official releases) can get it to build with the obsolete KDE in Debian stable, but both Romain and me have been too busy to take care of that. There's a newer KDE available for Debian stable from backports.org, but Romain says he couldn't get it to work.
|
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
Well I installed TIEMU 2.81 and it worked for some reason.
Thanks for your help guys, I'm glad that I finally got something working on here. You're the best! I'll just hang on the the KTIGCC 1.05 version that I have, it's new enough and it works, besides it's only the front end for the TIGCC .96b anyways so my compilations should be the same when I use it. Thanks again. [edit] I agree, Synaptic is in fact a great thing. I'm using the xfce version of it and it's fast and very easy. It's only slightly different in it's feel than the one you are talking about. I think when I get my laptop I'll setup a dual boot with fedora and try that out. For now it took me too long to get this working exactly how I want it. So I'm going to stick with it. I'm really liking xubuntu it's much easier than my previous distro's that I've messed with Suse was okay but I found the interface and it's internet connections thing to be a little squirly if you didn't have it on a wired connection. This one takes care of both things without a whole lot of fuss. |
|||
Kevin Kofler |
Re: KTIGCC | ||
|
Both TiEmu 2.81 and KTIGCC 1.05 are completely obsolete versions which have lots of bugs which have long be fixed, I absolutely don't recommend using these versions!
|
|||
Lionel Debroux |
Re: KTIGCC | ||
|
Yeah, trust us, you shouldn't use these versions. TIEmu 2.81 is more polished than the 2.80-pre versions were, but it has its share of bugs.
Spending some time compiling the programs yourself may be boring, but you learn a lot. Actually, the only real roadblock you'd probably stumble upon is that not all development headers & libraries are installed out of the box on your machine (there's not enough room on the CD-ROM to do that). This can be fixed in a matter of minutes (depending on the strength of your Internet connexion and a bit on the power of your computer) by installing the appropriate packages, once for all, through Synaptic. [EDIT: Kevin, please send me the patch to revert on KTIGCC to make it compile on Debian stable, or the revision number if it's the only change in that revision. As you know, I'm using SimplyMEPIS 7, which, unlike Ubuntu, has excellent compatibility with Debian stable.] |
|||
Kevin Kofler |
Re: KTIGCC | ||
|
I've finally made the patch and sent it to Romain and you.
It's really ridiculous that with KDE 3.5.9 being current, Debian stable is still stuck with the 1.5 year old 3.5.5, and that even backports.org only offers the almost a year old 3.5.7 (which would be barely sufficient, it's exactly the minimum required version, but Romain couldn't get the backports.org packages to work for some reason). Meanwhile, Fedora 8 has 3.5.9 and forward-compat libs from 4.0.2 (upgrade to 4.0.3 pending), Fedora 9 Preview has 4.0.3 and compat libs from 3.5.9. |
|||
Lionel Debroux |
Re: KTIGCC | ||
|
OK, thanks for the patch.
SimplyMEPIS offers KDE 3.5.8, this explains why I didn't experience any problem when compiling KTIGCC... The Debian files for making a KTIGCC package aren't in the repository, are they ? (it's easy to make a package with checkinstall, but the resulting packages are not "good") |
|||
Kevin Kofler |
Re: KTIGCC | ||
|
There's an outdated debian/ directory in the CVS Attic, I removed it because Romain wasn't keeping it up to date in the repository. "Native packages", i.e. packages which directly include the debian/ directory, only work well if it gets updated before the release. In any case, the debian/ directory in the attic needs updating if you want to use it.
|
|||
AaroneusTheGreat |
Re: KTIGCC | ||
|
I have no idea what that means. I've been trying to compile and install from sources I have qt 3 and g++ installed, but the ./configure command is saying that I have got an error in the configure file and that's quite strange. Idk what's going on. I may end up switching to Fedora after all so I can use the RPM repositiory instead. I'm actually in the process of creating a live cd right now (I have no dvd burner, if I did I'd do that in a heart beat)
(I'm just going ahead and getting Fedora 8 because I want to get this working soon) Wish me luck |
|||
Lionel Debroux |
Re: KTIGCC | ||
|
> the ./configure command is saying that I have got an error in the configure file and that's quite strange
You should post the error, we could help you more easily this way |
|||
AaroneusTheGreat |
Error | ||
|
It says something about [: :9: ==] unexpected operator or something to that effect. I think it meant on line 9 it didn't like the == there.
I've got fedora 8 dual booting now, I'm going to try the RPMs for the new stuff momentarily. [edit] best decision evar! Thanks for recommending Fedora it rocks, I have both new versions of ktigcc and tiemu running and it took me like 20 minutes, no muss no fuss. Thanks again guys |
|||