dc compiler in linux

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.
dospro
Insane DCEmu
Insane DCEmu
Posts: 147
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Dec 30, 2004 7:12 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by dospro »

Ok. I did yhis in linux.
I have the sh-elf and arm-elf in the usr/local/dc directory
I put KOS there too. I modified the environ.sh as the tutorial sais, the paths a re correct and i have added the commands that were missing.
I go to KOS dir and then type "source environ.sh"
No meesages appear.
THen i wrtie make, and this is a summary of the errors.
.
.
.
make[2]: Entering directory `/usr/local/dc/kos-1.2.0/utils/vqenc'
cc -O2 -Wall -DINLINE=inline -c -o get_image_jpg.o get_image_jpg.c
get_image_jpg.c:6:21: jpeglib.h: No such file or directory
get_image_jpg.c: In function `get_image_jpg':
get_image_jpg.c:18: error: storage size of 'cinfo' isn't known
get_image_jpg.c:20: error: storage size of 'jerr' isn't known
get_image_jpg.c:23: error: `JSAMPARRAY' undeclared (first use in this function)
get_image_jpg.c:23: error: (Each undeclared identifier is reported only once
get_image_jpg.c:23: error: for each function it appears in.)
.
.
.
get_image_jpg.c:20: warning: unused variable `jerr'
make[2]: *** [get_image_jpg.o] Error 1
make[2]: Leaving directory `/usr/local/dc/kos-1.2.0/utils/vqenc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/dc/kos-1.2.0/utils'
make: *** [build-utils] Error 2
.
.

What could it be?
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

You don't have the libjpeg development libraries installed. I don't know the procedure for installing these things on Mandrake, but you need to install them. They're usually called something like libjpeg-dev, or similar.
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

BlackAura wrote:SH-4 (GCC 3.4.3) - 14MB compressed, 59MB uncompressed
ARM7 (GCC 3.0.4) - 2.5MB compressed, 7.2MB uncompressed

Still needs testing though. It works on my machine (Ubuntu 5.04), but that's no guarantee that it'll work on another machine.
I've downloades those files and uncompressed to /usr/local/dc

but now I want to install KOS and SDL, how can I do it?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

Try this site. It has instructions for downloading and installing everything. SDL will be in KOS_PORTS, which you'll probably need anyway if you're going to be doing much of anything. It's got your OpenGL-type stuff (ie, KGL, which is similar to OpenGL), your MP3 and OggVorbis stuff, some other graphics and sound stuff...
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Thanks a lot :wink:
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Does anybody can tellme something about this error?

Code: Select all

sh-elf-gcc: installation problem, cannot exec `cc1': No such file or directory
make: *** [aliens.o] Error 1
Thanks in advance
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

Something in your installation is broken. Either your GCC installation, or your environment setting, or your makefiles. Can you compile the KOS examples correctly?
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

I've downloaded

SH-4 (GCC 3.4.3) - 14MB compressed, 59MB uncompressed
ARM7 (GCC 3.0.4) - 2.5MB compressed, 7.2MB uncompressed

From http://www.dcemulation.org/phpBB/viewto ... 007#710794

And tried a compiled KOS, but I think that the KOS I've used don't work correctly.

Could you tellme how to install KOS?

Thanks in advance.
website: http:///ltk.dciberia.net
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

http://www.dcemulation.org/phpBB/viewtopic.php?t=65237

Read that thread. The first post I made in that thread has instructions for building a complete DC toolchain and KOS. Ignore the bits about the DC toolchain (they aren't needed) and follow the instructions to build KOS.
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Many thanks, sorry about newbie questions. In cygwin i can compile quite well, but in linux....

I?m gonna try it, again thank you
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

I've obtained this error trying to compile KOS:

Code: Select all

kos-c++   -c mem.cc -o mem.o
sh-elf-g++: installation problem, cannot exec `cc1plus': No such file or directory
make[1]: *** [mem.o] Error 1
make[1]: Leaving directory `/usr/local/dc/kos1.3/kos/libk++'
make: *** [all] Error 255
Any ideas?
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Solved !!!

Unfinished compilation, Now my Archlinux also compiles Dreamcast :lol:

Many thanks BlackAura :wink:
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Opps a problem !!!

Code: Select all

gameloop.c:20:27: SDL/SDL_image.h: No such file or directory
gameloop.c:23:27: SDL/SDL_mixer.h: No such file or directory
SDL/SDL.h it?s ok but mixer and image no, they arent included in KOS? :roll:
website: http:///ltk.dciberia.net
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

No, SDL_image and SDL_mixer aren't included in KOS. They're extra libraries for SDL. I'm sure somebody will correct me if I'm wrong, but I'm pretty sure that neither one requires any extensive changes to compile for DC, other than making a new makefile. I had downloaded them all set up to compile for DC from Bluecrab's old site, but I don't think that's up anymore. You can get the sourcecode for both libraries at http://www.libsdl.org if you want to try to get them working on your own.
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7499
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Has thanked: 4 times
Been thanked: 10 times
Contact:

Post by Quzar »

also, you may simply need to change the dir. Maybe its SDL/SDL_image/SDLimage.h or something like that.
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Ok many thanks, they're not included, :? more compiling )()(
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

Where can I download the last versions of SDL_image, SDL_mixer, SDL_ttf for Dreamcast - KOS?
website: http:///ltk.dciberia.net
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

I found these http://wave.prohosting.com/imrtec/examples.htm Does anybody can tellme if they are the last Dc Release?
website: http:///ltk.dciberia.net
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

LTK666 wrote:I found these http://wave.prohosting.com/imrtec/examples.htm Does anybody can tellme if they are the last Dc Release?
Those things are quite old. I think they are the last versions of those particular things that Reaper did, if that's what you're asking. You might be better off to try porting some simple SDL-based things on your own. There are plenty of SDL tutorials on the internet, and MetaFox posted a tutorial on porting SDL games In This Topic at DCEmu.co.uk, which should get you off and running. You should be able to find a simple demo or something to start off with if you look around at http://www.libsdl.org for example code or simple games.
User avatar
LTK666
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Tue Jun 22, 2004 5:41 pm
Has thanked: 0
Been thanked: 0

Post by LTK666 »

thanks for you answer, but I think that I've expresed wrong,

In this page http://sourceforge.net/project/showfile ... e_id=16340 Cryptic Allusion DCDev I can download:

KOS13x-sdl_mixer.tar.gz and KOS13x-sdl_ttf.tar.gz

My question, where can I download KOS13x-sdl_image.tar.gz ?
Post Reply