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
Joined: Tue Jan 01, 2002 3:56 pm
Has liked: 0
Been liked: 0

Difficulties following toolchain tutorial

Post by Daikath » Mon Jan 30, 2017 12:14 pm

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: 5384
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 11 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab » Mon Jan 30, 2017 12:28 pm

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 liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath » Mon Jan 30, 2017 12:37 pm

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: 5384
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 11 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab » Mon Jan 30, 2017 12:43 pm

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 liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath » Mon Jan 30, 2017 1:02 pm

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: 5384
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 11 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab » Mon Jan 30, 2017 3:03 pm

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 liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath » Mon Jan 30, 2017 3:14 pm

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: 5384
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 11 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab » Mon Jan 30, 2017 3:59 pm

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 liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by Daikath » Tue Jan 31, 2017 2:17 am

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: 5384
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 11 times
Contact:

Re: Difficulties following toolchain tutorial

Post by BlueCrab » Tue Jan 31, 2017 6:57 am

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... :?
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am
Has liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by AtariOwl » Tue Jan 31, 2017 7:24 am

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 liked: 0
Been liked: 0

Re: Difficulties following toolchain tutorial

Post by Bouz » Tue Jan 31, 2017 2:38 pm

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 liked: 0
Been liked: 2 times

Re: Difficulties following toolchain tutorial

Post by Chilly Willy » Tue Jan 31, 2017 3:14 pm

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