Difficulties following toolchain tutorial

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
Daikath
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue Jan 01, 2002 3:56 pm
Has thanked: 0
Been thanked: 0

Difficulties following toolchain tutorial

Post by Daikath »

Im not a hardcore programmer, but I did succesfully make one game using as3 and flixel a few years ago.

However just setting up the development tools is stumping me, thankfully I found http://dcemulation.org/?title=Compiling_KOS_on_Windows thanks to BlueCrab on irc.. but I still got stuck.

I follow it along until I get to

Code: Select all

$ git clone git://git.code.sf.net/p/cadcdev/kallistios /opt/toolchains/dc/kos
I insert it using shift+insert and then try to go to the newly created directory... but it isn't there.
Image

I'm quite stumped. It's not like you're using a valuable programmer. But I'm still a huge sega fanboy and would at least like a little about programming for it. If any of you could tell me what I'm doing wrong I'd like to do better and your help would be appreciated.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab »

You need to include the / on it, otherwise you're trying to change to subdirectory of whatever directory you're in (so, what you're trying to do is effectively go to /c/opt, which is non-existent). Try doing "cd /opt/toolchains/dc/kos" (without the quotes) instead.
Daikath
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jan 01, 2002 3:56 pm
Has thanked: 0
Been thanked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath »

Thanks for the reply.. but the entire opt folder just isnt there in my c drive, despite me doing.

Code: Select all

$ git clone git://git.code.sf.net/p/cadcdev/kallistios /opt/toolchains/dc/kos
Image

It just isn't making the folders at the end of the clone command :-s.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab »

Oh... wait, it doesn't look like git clone did anything, because there should be output from that command... Try doing this:

Code: Select all

mkdir -p /opt/toolchains/dc
cd /opt/toolchains/dc
git clone git://git.code.sf.net/p/cadcdev/kallistios kos
If the "git clone" still doesn't do anything, then I'm guessing somehow you don't have git installed? Did you run the "pacman" command that is on that page first? If not, run that and try again from there. You need that command to be run successfully in order to install the things you'll need for building KOS and making it work.

Also, the /opt directory will not be directly in your C:\ drive, but rather will be a subdirectory of wherever you installed MSYS, I believe. So, if MSYS was installed in C:\MSYS, then the actual path to /opt would be C:\MSYS\opt, assuming things still work as they did the last time I messed around with MSYS (more than 10 years ago, probably).
Daikath
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jan 01, 2002 3:56 pm
Has thanked: 0
Been thanked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath »

I'm still not getting a output from the git clone command :(.

Image

subsequent directories such as /kos/ arent made either.

Sorry for being such a bother. I might know a bit about programming but all this unix stuff is very foriegn to me. I appreciate the help a lot.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab »

Try just running "git --help" (without the quotes) and see if it does anything.
Daikath
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jan 01, 2002 3:56 pm
Has thanked: 0
Been thanked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath »

Image

nothing happens with i go git --help....

Does this mean there is something wrong with my ming unix thingy?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab »

The "pacman" command, when you ran it, did it report any errors or anything? Also, did you make sure to copy/paste the whole thing as one long line (it probably appears as two lines in your browser, but it really should be all done as one line)?

My best guess is that git isn't installed, so try doing this first and then try "git --help" again:

Code: Select all

pacman -Sy git
Daikath
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jan 01, 2002 3:56 pm
Has thanked: 0
Been thanked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath »

There are some warnings for specific files trying to get using that command... is it that the place where git is loaded isn't complete?

Code: Select all

Win@Win-PC MINGW32 /opt/toolchains/dc
$ pacman -Sy git
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 msys is up to date
warning: git-2.11.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) git-2.11.0-1

Total Installed Size:  24.92 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [#####################] 100%
(1/1) checking package integrity                   [#####################] 100%
(1/1) loading package files                        [#####################] 100%
(1/1) checking for file conflicts                  [#####################] 100%
(1/1) checking available disk space                [#####################] 100%
warning: could not get file information for usr/share/man/man3/Git::I18N.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Editor.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Fetcher.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Memoize::YAML.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Prompt.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Ra.3pm.gz
warning: could not get file information for usr/share/man/man3/Git::SVN::Utils.3pm.gz
:: Processing package changes...
(1/1) reinstalling git                             [#####################] 100%

Win@Win-PC MINGW32 /opt/toolchains/dc
$ git clone git://git.code.sf.net/p/cadcdev/kallistios kos

Win@Win-PC MINGW32 /opt/toolchains/dc
$
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab »

Those warnings don't look important, at least I don't think they do...

Hrm... That would indicate to me that it is installed... Weird... :?
User avatar
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 96
Joined: Fri May 23, 2008 5:57 am
Has thanked: 0
Been thanked: 2 times

Re: Difficulties following toolchain tutorial

Post by AtariOwl »

I had problems at this stage too.

First question is are you on C: drive. When i tried to install msys and KOS to D for space reasons, it didnt work... specifically, git didnt work correctly, much as you are seeing.
Second question.. are you looking in the right place for opt? Can you do a quick pwd to check?

I attempted using github to clone and copy kos but in the end that was less successful than just installing everything on c and following the wiki.
User avatar
Bouz
DCEmu Junior
DCEmu Junior
Posts: 46
Joined: Mon May 10, 2010 3:42 pm
Location: St. Bauzille de Putois (France)
Has thanked: 0
Been thanked: 0

Re: Difficulties following toolchain tutorial

Post by Bouz »

Maybe try disabling your antivirus? Maybe also try to see if your git executable is stuck somewhere... (running ps or your windows Task manager)
Chilly Willy
DC Developer
DC Developer
Posts: 414
Joined: Thu Aug 20, 2009 11:00 am
Has thanked: 0
Been thanked: 2 times

Re: Difficulties following toolchain tutorial

Post by Chilly Willy »

Not sure if it applies to Windows, but in linux, if you can't make a directory in /opt, it's usually because you don't have permission. I usually change the mode permissions for /opt to 777 to allow any user to do anything in /opt... which is how it should be. The default for most distros, including Ubuntu, it to restrict most operations to root only.

If I had to guess how this applies to you, maybe you're running in a user account that doesn't have permission to create directories where mingw is running.
Post Reply