Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
126 user(s) are online (110 user(s) are browsing Forums)

Members: 0
Guests: 126

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2) 3 4 5 »
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@djrikki

Off course I use this guide, read my first post
That is essential to me as i've to start learning from scratch, little step by little step ...

Go to top
Re: Making WarZone 2100 ..
Quite a regular
Quite a regular


See User information
@samo79

Did you finish the port yesterday?

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@samo79

Cross compiling is allot easier in Cygwin,
At least you get all shell commands you need for cmake, ccmake, autoconfig, automake etc.
Bison, flex, phython etc are all up to date.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@LiveForIt

Maybe but at the moment i don't have the time to setup a Cygwin environment, also when possible i prefer to work only with OS4 tools in OS4

Go to top
Re: Making WarZone 2100 ..
Just can't stay away
Just can't stay away


See User information
@samo79

http://www.a500.org/downloads/development/bison.7z

It seems bison-2.3 is easier to compile as it doesn't contain any of the crap that is in later versions. Unfortunately it does use fork though. I've gotten around this by linking it with libaos4util from AmiCygnix-SDK which has a dummy fork function (just returns an error) so it remains to be seen if this executable is usable or not.

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

But it is already usable for the compiler at this stage ?
We have just this bin, how can i use ?

Go to top
Re: Making WarZone 2100 ..
Just can't stay away
Just can't stay away


See User information
@samo79

Copy bison into SDK:local/C and the configure script should then be able find it.

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

Ok copied, later i will try to compile, no time this morning

Thanks a lot for your help !

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
Ok i didn't resist

I have another problem with zip, to solve i install zip lib from OS4Depot and put all deps in Local SDK folder ...

Processo: Shell 6
6.AmigaOS4:> Work:SDK/Progetti/warzone2100-2.3.4/
6.Work:SDK/Progetti/warzone2100-2.3.4> sh
/Work/SDK/Progetti/warzone2100-2.3.4> ./configure --disable-dependency-tracking --bindir=/SDK/Local/C --prefix=/SDK/Local --libdir=/SDK/Local/newlib/lib LIBS="-lauto -lunix"
configure: creating cache /dev/null
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether /SDK/C/gmake sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... powerpc-unknown-amigaos
checking host system type... powerpc-unknown-amigaos
checking for style of include used by /SDK/C/gmake... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for bison... bison -y
checking for bison >= 1.31... found 2.3, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex >= 2.5.33... configure[5120]: :CygnixPPC/bin/flex: unexpected `:'
configure[5120]: :CygnixPPC/bin/flex: unexpected `:'
found :CygnixPPC/bin/flex, ok
checking for flex != 2.5.34... configure[5120]: :CygnixPPC/bin/flex: unexpected `:'
not found, good
checking whether perl executable path has been provided... no
checking for perl... /bin/perl
checking for a sed that does not truncate output... /Cygnix/CygnixPPC/bin/sed
checking for grep that handles long lines and -e... /Cygnix/CygnixPPC/bin/grep
checking for perl version... 5.8.5
checking for gawk... (cached) nawk
checking for zip... no
configure: error: Zip not found!
/Work/SDK/Progetti/warzone2100-2.3.4>

Any idea ?

Go to top
Re: Making WarZone 2100 ..
Just can't stay away
Just can't stay away


See User information
@samo79

You need this:
zip-bin.lha

Put the zip binary in SDK:local/C, same as with bison.

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

Ok done (unzip was also required) now a new alert come

Quote:
configure: error: Package requirements (sdl >= 1.2) were not met:

Package sdl was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SDL_CFLAGS
and SDL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

/Work/SDK/Progetti/warzone2100-2.3.4>


I have latest SDL installed but i will look at it again ...

Go to top
Re: Making WarZone 2100 ..
Just can't stay away
Just can't stay away


See User information
@samo79

You need the sdl.pc file in SDK:Local/newlib/lib/pkgconfig. For some reason this file isn't included in the OS4 SDL SDK archive.

This is a modified version of SDL_Image.pc that should work assuming that you have the latest SDL-1.2.13 (just save as SDK:local/newlib/lib/pkgconfig/sdl.pc):
Quote:

prefix=/SDK/local/common
exec_prefix=/SDK/local/newlib
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: sdl
Description: Simple DirectMedia Layer
Version: 1.2.13
Requires:
Libs: -L${libdir} -lSDL
Cflags: -I${includedir}/SDL

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

Ok, i doing the same with Theora (same issue as sdl.pc) and it passed as well, but now i have:

checking for SDL... yes
checking for PNG... yes
checking for THEORA... yes
checking for OPENAL... yes
checking for OGGVORBIS... yes
checking for GLee... gnome-config: Comando sconosciuto
gnome-config fallito con codice 10
no
checking for GLee.h...
checking for GLee.h with -I/usr/local/include/GL... no
checking for GLee.h with -I/usr/include/GL... no
checking GLee.h usability... no
checking GLee.h presence... no
checking for GLee.h... no
configure: Using integrated GLee
checking for nearbyint in -lm... yes
checking for XSetSelectionOwner in -lX11... no
configure: error: X11 library not found
/Work/SDK/Progetti/warzone2100-2.3.4>

It ask for X11 !

Go to top
Re: Making WarZone 2100 ..
Just can't stay away
Just can't stay away


See User information
@samo79

Check with "./configure -h" if there is an option to disable x11 functions in code.

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

Looking at the config file. It says if nessecery,maybe just remove the whole checking?

But further down it checks for these files,not sure if we have these:

checking for Popt.h
checking for physfs.h
checking for SDL_opengl.h

X5000
Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@salass00

I type this command, it is correct ?

Quote:
./configure -h --disable-dependency-tracking --bindir=/SDK/Local/C --prefix=/SDK/Local --libdir=/SDK/Local/newlib/lib LIBS="-lauto -lunix"


Shell give me a long output with the environment variables but i didn't found any X11 reference

Conversely if usefull in "configure" file i found this function:

Quote:
# Look for X11 if required
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

int
main ()
{

#if (defined(__OS2__) && !defined(__EMX__))
# error Running OS2, not a Unix system.
#elif (!defined(SAG_COM) && (defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__WIN64__) || defined(__NT__))) || (defined(__MWERKS__) && defined(__INTEL__))
# error Running on Windows, not a Unix system.
#endif

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSetSelectionOwner in -lX11" >&5
$as_echo_n "checking for XSetSelectionOwner in -lX11... " >&6; }
if test "${ac_cv_lib_X11_XSetSelectionOwner+set}" = set; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@samo79

Just try and remove the whole X11 checking in configure file. Save it and try again,

X5000
Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@Antique

It could be work, infact after erasing that function it say:

Quote:
checking for GLee.h...
checking for GLee.h with -I/usr/local/include/GL... no
checking for GLee.h with -I/usr/include/GL... no
checking GLee.h usability... no
checking GLee.h presence... no
checking for GLee.h... no
configure: Using integrated GLee
checking for nearbyint in -lm... yes
configure[10080]: /AmigaOS4: cannot execute - Is a directory
configure[10081]: Use: not found
configure[10082]: builtin: and: not a builtin
/Work/SDK/Progetti/warzone2100-2.3.4>



Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@samo79

Seems like you haven't removed all the lines related to the X11.

Remove the lines from 10078 to 10143. That should do the trick. But if you look at my latest post to salass00. You'll encounter other problems aswell.....
Not sure if we have those files for the coming problems...

X5000
Go to top
Re: Making WarZone 2100 ..
Home away from home
Home away from home


See User information
@Antique

Quote:
Seems like you haven't removed all the lines related to the X11.


Ops ! you right

Done ...

Quote:
That should do the trick. But if you look at my latest post to salass00. You'll encounter other problems aswell.....


Now I have only a problem with popt header:

configure: error: Popt header not found.

physfs.h and opengl.h seems ok here but eventually i'll check them further

Go to top

  Register To Post
« 1 (2) 3 4 5 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project