help with environ.sh and cygwin
-
- DCEmu Newbie
- Posts: 1
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Jun 21, 2018 4:36 pm
- Has thanked: 0
- Been thanked: 0
help with environ.sh and cygwin
No matter what i try i keep getting the same two errors when i try to run the environ.sh script. I'll type in chmod u+x environ.sh,then i type in source environ.sh and once i do that it gives me these same two errors which are -bash: environ.sh: line 76: unexpected EOF while looking for matching `"'
and -bash: environ.sh: line 81: syntax error: unexpected end of file. Line 76 in question is # export KOS_CFLAGS="-O2 -DFRAME_POINTERS -fno-omit-frame-pointer". Im at a complete loss and google hasent been one bit of help. I would be very thankful for any advice on how to finally get this going.
and -bash: environ.sh: line 81: syntax error: unexpected end of file. Line 76 in question is # export KOS_CFLAGS="-O2 -DFRAME_POINTERS -fno-omit-frame-pointer". Im at a complete loss and google hasent been one bit of help. I would be very thankful for any advice on how to finally get this going.
-
- DCEmu Cool Newbie
- Posts: 11
- Joined: Thu Nov 01, 2018 1:11 am
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: help with environ.sh and cygwin
I was having this problem in the beginning and I solved it by changing "\" slashes to "/" slashes when I declare the value of the KOS_BASE variable in the shell script.
Also it's worth noting that the kos folder is relative to the directory cygwin is located. my cygwin is installed in C:\cygwin86. When you change KOS_BASE during setup it should just be the path continuing from where you have yours installed. for example it should look something like
export KOS_BASE="/home/dreamcast/kos"
and not
export KOS_BASE="cygdrive/c/cygwin86/home/dreamcast/kos"
and definitely not
export KOS_BASE="C:\program files\...\..."
Make sure you don't add an extra "/" at the end. I'm not sure but I think it would probably conflict with line 80 which is
. ${KOS_BASE}/environ_base.sh
I'm actually having an issue with source environ.sh. when i use the command in cygwin I get a bunch of r$ command not founds and then finally a no such file or directory exists. I tried
dos2unix environ.sh
and got somewhere but I think then Id have to convert everything the script depends on to unix as well.
So would it just be easier to do this in linux is really my question? I'm starting to believe it would
Also it's worth noting that the kos folder is relative to the directory cygwin is located. my cygwin is installed in C:\cygwin86. When you change KOS_BASE during setup it should just be the path continuing from where you have yours installed. for example it should look something like
export KOS_BASE="/home/dreamcast/kos"
and not
export KOS_BASE="cygdrive/c/cygwin86/home/dreamcast/kos"
and definitely not
export KOS_BASE="C:\program files\...\..."
Make sure you don't add an extra "/" at the end. I'm not sure but I think it would probably conflict with line 80 which is
. ${KOS_BASE}/environ_base.sh
I'm actually having an issue with source environ.sh. when i use the command in cygwin I get a bunch of r$ command not founds and then finally a no such file or directory exists. I tried
dos2unix environ.sh
and got somewhere but I think then Id have to convert everything the script depends on to unix as well.
So would it just be easier to do this in linux is really my question? I'm starting to believe it would
-
- DCEmu Freak
- Posts: 86
- Joined: Wed Mar 14, 2018 12:22 am
- Has thanked: 16 times
- Been thanked: 19 times
Re: help with environ.sh and cygwin
Look at this
https://assemblergames.com/threads/drea ... sed.70159/
Also yes, in Linux is much simpler
https://assemblergames.com/threads/drea ... sed.70159/
Also yes, in Linux is much simpler
-
- DCEmu Cool Newbie
- Posts: 11
- Joined: Thu Nov 01, 2018 1:11 am
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: help with environ.sh and cygwin
Thank you. I have been having more luck with linux and will probably continue there and i'd also like to build my environment from scratch to learn, but that SDK does looks intriguing and I appreciate the value in your answer.mrneo240 wrote: ↑Sun Dec 02, 2018 11:34 am Look at this
https://assemblergames.com/threads/drea ... sed.70159/
Also yes, in Linux is much simpler
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: help with environ.sh and cygwin
It's also linked to literally three posts below this one (right now): viewtopic.php?f=29&t=104813 ...
-
- DCEmu Cool Newbie
- Posts: 11
- Joined: Thu Nov 01, 2018 1:11 am
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: help with environ.sh and cygwin
I do appreciate that but as I said I'm not exactly look for a SDK I wanted to build this from ground zero so I can slightly understand what's going on which is what I'm trying to do by following other links and threads here and I thought I'd maybe offer some information that helped me and just simply asked if building the environment would be easier on linux that SDK is bad @$$ don't get me wrong but if I used it I wouldn't be learning, which is what I'm here to doBlueCrab wrote: ↑Mon Dec 03, 2018 11:03 am It's also linked to literally three posts below this one (right now): viewtopic.php?f=29&t=104813 ...
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: help with environ.sh and cygwin
That wasn't directed at you, but rather to the person above who linked to it on a different forum. My apologies if that was confusing.radgegames wrote: ↑Tue Dec 04, 2018 1:16 pmI do appreciate that but as I said I'm not exactly look for a SDK I wanted to build this from ground zero so I can slightly understand what's going on which is what I'm trying to do by following other links and threads here and I thought I'd maybe offer some information that helped me and just simply asked if building the environment would be easier on linux that SDK is bad @$$ don't get me wrong but if I used it I wouldn't be learning, which is what I'm here to doBlueCrab wrote: ↑Mon Dec 03, 2018 11:03 am It's also linked to literally three posts below this one (right now): viewtopic.php?f=29&t=104813 ...
If you're used to using Windows, you might find SiZiOUS' DreamSDK easier to work with than if you're used to using a more UNIX environment. I don't actually know, as I don't do Dreamcast development work on Windows myself (if I am doing any Dreamcast dev work on a Windows box, I'd personally use the Windows Subsystem For Linux in Windows 10, over using MSYS as SiZiOUS' stuff does -- but that's just personal preference). If you've used Linux before and you are comfortable with it (and have a machine set up with Linux already), then there's probably no reason to prefer DreamSDK over building the tools on Linux and using them.
In the end, it's all a matter of personal preference. No offense meant to SiZiOUS (because what he's put together is definitely quite cool for Windows users), but as I said, I'd much rather use a real UNIX-like environment for my work rather than using something based on MSYS, unless I didn't have access to a Linux machine or one running Windows 10 to take advantage of WSL.
-
- DCEmu Cool Newbie
- Posts: 11
- Joined: Thu Nov 01, 2018 1:11 am
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: help with environ.sh and cygwin
Lol cool glad you cleared that up I was kinda like what the heck did I do wrong but I totally understand. I have multiple computers and flew through this on my linux build thanks for the feedback and help