Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
10 user(s) are online (9 user(s) are browsing Forum)

Members: 0
Guests: 10

more...


Browsing this Thread:   1 Anonymous Users




(1) 2 3 »


Re: Promblems compiling SDL program
#21
Just can't stay away
Just can't stay away


See User information
Quote:

fishy_fis wrote:
If memory serves me correctly -lsdl_ttf is dependant on -lfreetype2 as well.
Also are there other undefined symbols youve not listed? Often software using -lsdl_image also requires -lpng and/or -ljpeg (which itself requires -lz).


I get the save error.

Posted on: 2012/3/2 13:27
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Anonymous
Re: Promblems compiling SDL program
#20
If memory serves me correctly -lsdl_ttf is dependant on -lfreetype2 as well.
Also are there other undefined symbols youve not listed? Often software using -lsdl_image also requires -lpng and/or -ljpeg (which itself requires -lz).

 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#19
Home away from home
Home away from home


See User information
The linking order is very important. In this case I would try the ttf and mixer libs at the very end of the command line, and hope for the best. Generally if I have the right lib, but still get errors, I usually shuffle the problem libs closer to the tail until it links.

Posted on: 2012/3/2 5:15
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#18
Just can't stay away
Just can't stay away


See User information
libqbx.cpp version 0.90 for Linux compiles under AROS using the using the following:

g++ -c -w -Wall -IDevelopment:include/SDL libqbx.cpp -o libqbx_lnx.o

When compiling qbx.cpp version 0.90 using the following:

g++ -lDevelopment:include/SDL -lSDL_mixer -lSDL_ttf -lSDL_net -lSDL_image libqbx_lnx.o qbx.cpp -o AROS:MyWorkspace/qb64/qb64

generates the following errors:

There are undefined symbols in 'AROS:MyWorkspace/qb64/qb64':
TTF_OpenFonto
Mix_PlayingMusic
Mix_FreeChunkcv
Mix_GetMusicType
....

Posted on: 2012/3/2 4:16
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#17
Just can't stay away
Just can't stay away


See User information
<p>Only the GUI requires X11, and even then only the Linux and Mac version requires X11 however the Windows version does not, so if I can figure out how to get this program to compiler while ignoring the GUI related code like early version of this program, then it should compile.</p>

Posted on: 2012/3/2 2:13
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Anonymous
Re: Promblems compiling SDL program
#16
Does the code actually require X11, or have you just not specified a better (ie. more appropriate for aros) codepath to use? As for what you need to do, your error msgs are the biggest clues (ie. check libqbx.cpp). I suspect it's not going to be as simple as a straight recompile though. Also, Mui/Zune has no need to be used judging by what youve posted.

 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#15
Home away from home
Home away from home


See User information
Quote:

fatman2021 wrote:
<p>What would be the best way to replace the linux x11 functionality with the aros mui equivlent?</p>


It sounds like you could do with trying out Zune before porting what you're looking to port. That way your understanding of Zune will be at a high enough level to see what to do. Making a simple Zune program should do the trick, a desktop calculator is a good candidate for a first project. Start your education here:
http://en.wikibooks.org/wiki/Aros/Developer/Zune

Feel free to ask questions about Zune on these forums if you get stuck.

Posted on: 2012/3/1 19:58
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#14
Just can't stay away
Just can't stay away


See User information
<p>What would be the best way to replace the linux x11 functionality with the aros mui equivlent?</p>

Posted on: 2012/3/1 19:30
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#13
Home away from home
Home away from home


See User information
Quote:

fatman2021 wrote:
any recommendations?


fatman2021, not all source code is universal, if you want a chance of compiling this you need to modify the parts that depend on features found in other operating systems. There's a whole bunch of stuff at the top of the source code you posted that gives you clues about what to modify. Look here for example, tell me what this code does:

//OS/compiler detection
#ifdef WIN32
#include "stdafx2.h"
#include <winbase.h>
#include <float.h>
#define QB64_WINDOWS
#ifdef _MSC_VER
#define QB64_MICROSOFT
#else
#define QB64_GCC
#define QB64_MINGW
#endif
#else
#define QB64_LINUX
#define QB64_GCC
#ifdef __APPLE__
#define QB64_MACOSX
#endif
#endif

Posted on: 2012/3/1 19:21
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Promblems compiling SDL program
#12
Home away from home
Home away from home


See User information
Ugh, what kind of recomendations are you looking for?

Posted on: 2012/3/1 18:58
Krzysztof

"There is no such thing as software for free. If it is not the user who covers the cost of software creation with money, it is the developer who covers this cost with his own free time."

www.aros3d.org
www.twitter.com/ddeadwood
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project