English Amiga Board

Go Back   English Amiga Board > Coders > Coders. General

Thread Tools
Old 21 July 2009, 16:10   #1
Registered User
Join Date: Dec 2007
Location: Dark Kingdom
Posts: 211
Question use SDL 1.2.13 with AmyDevCpp

Hi all

I am unable to compile an SDL program with the new m68k port of SDL (1.2.13)
and the m68k cross-compiler in AmyDevCpp 0.98. I am not very expert in installing
libraries in a gcc environment so I probably have made some mistake in the SDL
installation. To install SDL I just copied the contents of the include and the
lib libraries in the same directory under the gcc installation. I don't know
how to use the "m68k-amigaos-sdl-config" and the "sdl-config" files.

First problem (somewhat solved): the SDL configuration tries to load the standard
include intypes.h and stdint.h, but those are not provided by the m68k cross-compiler.
(they are provided for the other cross-compiler and for the win32 compiler).
This is a fault of the cross-compiler in my opinion. For now I solved by changing
"SDL_config_amigaos.h" to force not to load those includes, but I would prefer,
if possible, to add the missing include file to the cross-compiler install.

The second, fatal problem I have is a couple of Linker Error:
undefined reference to '_kprintf' and
undefined reference to '_ix_CreateChildData'

my linker parameters are:
-noixemul -lSDL -lgl_dummy

should I link some other library? Which one?

Please note that I successfully compiled the program with the following

1) gcc for windows provided by AmyDevCpp + SDL 1.2.13
2) gcc for Amiga m68k provided by AmyDevCpp + the old SDL 1.2.6
3) gcc for MacOSX provided by XCode + SDL 1.2.13

TheDarkCoder is offline  
Old 04 August 2009, 23:31   #2
Registered User

Join Date: Jul 2008
Location: Poland
Posts: 591
1) Copy sdl-config to m68k-amigaos/bin folder, change prefix to /usr/local/amiga/m68k-amigaos.
Intypes.h and stdint.h are supplied with Gcc 4.3.2 compiler which can be found on amiga.sourceforge.net .

2) Link with -ldebug for _kprintf.
Remove -noixemul for _ix_CreateChildData or change -lSDL to -lSDL_libnix.

What are you compiling?
arti is offline  
Old 13 August 2009, 11:24   #3
Registered User
Join Date: Dec 2007
Location: Dark Kingdom
Posts: 211
tnx arti!

is it posible to install gcc 4.xxx over the gcc 3.xx that comes with AmyDevCpp?

For now I am just compiling my own exercises
TheDarkCoder is offline  
Old 18 August 2009, 20:55   #4
Registered User

Join Date: Jul 2008
Location: Poland
Posts: 591
Yes, it works.

Simply copy all files to apropriate paths.
arti is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
SDL problem. tolkien Coders. C/C++ 10 24 March 2015 03:29
req details for sdl turrican3 request.Other 0 20 April 2008 22:06
WinUAE w/SDL mangamuscle request.UAE Wishlist 8 31 January 2007 11:41
sdl 68k on my amiga mrodfr support.Apps 0 19 November 2006 16:23
What do you know about Amiga SDL? Tolismlf Amiga scene 6 15 November 2004 18:54

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:40.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.08936 seconds with 15 queries