OSDK and DOSBOX

Since we do not have native C compilers on the Oric, this forum will be mostly be used by people using CC65 or the OSDK. But any general C related post will be welcome !
Post Reply
User avatar
coco.oric
Flight Lieutenant
Posts: 426
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

OSDK and DOSBOX

Post by coco.oric » Tue Sep 08, 2009 2:35 am

Hi,

I'm looking to put OSDK on a portable environnement.
So i've launch DOSBOX Portable, and simply define a new drive C: with the x:\OSDK directory, then define SET OSDK=C:\

:? but the compilation of the HELLO package doesn't work.


Does anybody have an idea for this :?:

User avatar
Chema
Game master
Posts: 2069
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: OSDK and DOSBOX

Post by Chema » Tue Sep 08, 2009 4:42 pm

Dbug is the one who can help here, but could you please provide any error messages that may appear?

That would really help.

User avatar
Dbug
Site Admin
Posts: 2370
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Tue Sep 08, 2009 6:15 pm

Try with Wine instead of DosBox.
The OSDK has been compiled as Win32 console applications, not DOS applications.

You can find more about how to use the OSDK with Wine in the documentation folder:
osdk/documentation/doc_installation.htm#LinuxInstall

I've been using it myself on my eeePc under Ubuntu Linux, so I know it is doable.

You can then create two shell files:

build.sh
wineconsole osdk_build.bat
cp build/*.tap /home/.wine/drive_c/osdk/Euphoric/osdk.tap
run.sh
cd /home/.wine/drive_c/osdk/Euphoric
sh tape.sh

User avatar
coco.oric
Flight Lieutenant
Posts: 426
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Post by coco.oric » Tue Sep 08, 2009 9:01 pm

Thanks Dbug, but i'm working on a WinXP PC.
Do you have a solution with this OS ?
coco.oric as DidierV, CEO Member
Image Image

User avatar
Dbug
Site Admin
Posts: 2370
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Tue Sep 08, 2009 9:06 pm

Well, the only suggestion I could do is to not use dosbox at all since the Osdk main system is Windows XP.

When you say 'portable environnement', what do you mean exactly, could you describe what you are trying to do?

You can connect on the Oric chat if you want, we are currently online.
http://www.defence-force.org/computing/ ... /index.htm

User avatar
coco.oric
Flight Lieutenant
Posts: 426
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Post by coco.oric » Wed Sep 09, 2009 3:15 am

By portable i mean that i can't install any software on the PC laptop (of my job).
So i'm using an USB Key to put my software.

I'm out of my house from monday to thusday for my job and i wanted to go back on coding ORIC within the end of this year.
That's the reason of my searching a way of using the OSDK on a portable way.
coco.oric as DidierV, CEO Member
Image Image

User avatar
coco.oric
Flight Lieutenant
Posts: 426
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Post by coco.oric » Wed Sep 09, 2009 4:51 am

... :(

ok, i'm not so good on my pc
i hope i'll be a better coder with the OSDK.

i've done the
SET OSDK=
cd xxx/xxx to go to the hello directory
launch BUILD_.BAT

then tested it on my Euphoric.
I works :)

Next step will be changing the notepad to make the code.
(thanks for the messages in the cross dev platform forum)

I'll test CRIMSON EDITOR (Portable)
CONTEXT (Portable edition V0.86)
and an C IDE like Dev-C++ Portable

Dev-C++ Portable description

Dev-C++ gives you a full-featured Integrated Development Environment (IDE) for the C/C++ programming language

Dev-C++ gives you a full-featured Integrated Development Environment (IDE) for the C/C++ programming language.
It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.

Here are some key features of "DEV C":

· Support GCC-based compilers
· Integrated debugging (using GDB)
· Support for multiple languages (localization)
· Class Browser
· Code Completion
· Debug variable Browser
· Project Manager
· Customizable syntax highlighting editor
· Quickly create Windows, console, static libraries and DLLs
· Support of templates for creating your own project types
· Makefile creation
· Edit and compile Resource files
· Tool Manager
· Print support
· Find and replace facilities
· Package manager, for easy installation of add-on libraries
· CVS Support
· To-Do List
· CPU Window


Requirements:

· 32 MB of RAM
· The executables compiled by Dev-C++ will need MSVCRT.DLL (comes with Windows 95 OSR 2 or higher)
coco.oric as DidierV, CEO Member
Image Image

User avatar
Dbug
Site Admin
Posts: 2370
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Wed Sep 09, 2009 5:20 pm

Don't bother with a full featured IDE, any simple text editor that supports external makefiles/tools would work fine.

If you can find a text editor with:
- Syntax coloring for C
- Syntax coloring for assembler
- Keyboard shortcut to run "osdk_build.bat" (with the output messages correctly displayed in an output window in the text editor so you can "double click" on the error messages)
- Keyboard shortcut to run "osdk_run.bat"

Then you get about everything you need.

Personally I'm using Crimson Editor, and I don't even bother running the batch file from it, I just double click in windows explorer :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest