Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
68 user(s) are online (54 user(s) are browsing Forums)

Members: 3
Guests: 65

daveyw, Futaura, VooDoo, more...

Headlines

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

Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Just popping in
Just popping in


See User information
@SinanSam460
vanillatd master repository isnt 100% big endian fix, you need check on arczi repository ou use it directly

You can delete all file from REDALERT.. not bigendian.... i test it in my makefile

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@rjd324
Quote:

Just for my own education. Why does it matter to use the clib2 versions if openal and sdl2 were statically made?


Linkining statically only deal with "no use shared objects"


Quote:

Would this not work otherwise? Of course, a mess to be using two different c impls. Guess you could get conflicting definitions for the same c symbols if pulling in newlib too!


It may works (and sometime is) but offten will create incompatible mess. For example some of us use clib2 version of libdebug.a and/or libauto.a coming with clib2, but with newlib projects, and it works. But when thing is more complicated (usage of varargs stuff for example , or something else like name calling or ABI or passing of stuff to/from functions to/from assembler, etc ,etc) things can go bad.

At least for my lame understanding it's enough to know that you should not mix clib2 and newlib in one project to avoid random/strange issues.

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@Sinan
And yeah, to have working os4 port you need to port Amimaniac's Amigaos version, where he deal with all endian issues, there is:

https://github.com/arczi84/Vanilla-Conquer

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@beworld

Ok now I have switched to arczi sources once again.
Let's try..


Edited by SinanSam460 on 2022/7/7 13:40:01
Edited by SinanSam460 on 2022/7/7 14:01:37
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@all
How can I solve this ? Anyone experienced it before ?

In file included from tiberiandawn/conquer.cpp:86:
/
usr/local/amiga/ppc-amigaos/SDK/local/clib2/include/pthread.h:38:8errorredefinition of ‘struct timespec’
   38 
struct timespec
      
|        ^~~~~~~~
In file included from /usr/local/amiga/ppc-amigaos/SDK/clib2/include/wchar.h:16,
                 
from /usr/local/amiga/ppc-amigaos/SDK/clib2/include/stdlib.h:11,
                 
from /usr/local/amiga/ppc-amigaos/include/c++/11.1.0/cstdlib:75,
                 
from /usr/local/amiga/ppc-amigaos/include/c++/11.1.0/stdlib.h:36,
                 
from ./common/rawfile.h:45,
                 
from tiberiandawn/function.h:118,
                 
from tiberiandawn/conquer.cpp:61:
/
usr/local/amiga/ppc-amigaos/SDK/clib2/include/time.h:71:8noteprevious definition of ‘struct timespec’
   71 
struct timespec

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Anonymous
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Comment out
#include <pthread.h>
in conquer.cpp

Audio thread here is for Vampire only.

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@arczi

Removing pthread causes other errors related to audio thread.
Are there any other Apollo specific parts to be removed ?

It's strange I can compile LE original port without problems via cross-compiler.

But I get lots of errors while compiling Amiga Big Endian fork...

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@Sinan
Quote:

It's strange I can compile LE original port without problems via cross-compiler.

But I get lots of errors while compiling Amiga Big Endian fork...


Of course you will have errors, because it is not only Endian fixes, but also specific amigaos3.x and vampire (probabaly) code, which need to be deal with.

If you do not want to boredom with, i can port arczi's version to os4.

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@Sinan
Btw, if arczi add all the endian changes via BIG_ENDIAN in his fork, then you will be easy to just grab the original one (which already compiles for you), and just search in arczi's code on BIG_ENDIAN words in all .cpp and .h files, and add the same changes to original.

So by this way you will not have low-level os3/vampire code, and can build sdl2 version with no issues.

Through it will works only if all the endian changes which arczi did in his fork are ifdefs with BIG_ENDIAN.

EDIT: I was able to build arczi code, it was matter of build it for SDL1, and undef AMIGA parts in some places (like audio, video, etc, so to use default SDL stuff). But sadly it crashes on running when should load up title pic, need to check wtf.


Edited by kas1e on 2022/7/8 10:46:23
Edited by kas1e on 2022/7/8 10:56:34
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I will try like this..I am trying to make it work with SDL2.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Just popping in
Just popping in


See User information
It would be great to get a port Vanilla Conquer.

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I was also able to compile arzci's sources.. However it crashes after running the exe.

Symbol info:
Instruction pointer 0x7EF1E41C belongs to module "vanillatd3" (PowerPC
Symbol_ZNSt6localeaSERKS_ 0x150 in section 1 offset 0x002F2AD0

Stack trace
:
    
vanillatd3:_ZNSt6localeaSERKS_()+0x150 (section 1 0x2F2AD0)
    
vanillatd3:_ZNSt6localeaSERKS_()+0xd0 (section 1 0x2F2A50)
    
vanillatd3:_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E()+0x20 (section 1 0x35C73C)
    
vanillatd3:_Z12ReadALConfigv()+0x198 (section 1 0x1D4C60)
    
vanillatd3:_ZN12_GLOBAL__N_114alc_initconfigEv()+0x254 (section 1 0x1CBEC0)
    
vanillatd3:__once_proxy()+0x12c (section 1 0x38AAD4)
    
vanillatd3:__gthread_once()+0xac (section 1 0xB64)
    
vanillatd3:alcOpenDevice()+0x1c8 (section 1 0x1CE590)
    
vanillatd3:_Z10Audio_Initibib()+0x3c (section 1 0x4FF38)
    
vanillatd3:main()+0x300 (section 1 0x178D48)
    
vanillatd3:call_main()+0x3c (section 1 0x3EFC14)
    
vanillatd3:_main()+0x1e0 (section 1 0x3F0184)
    
native kernel module dos.library.kmod+0x00029e18
    native kernel module kernel
+0x00060b00
    native kernel module kernel
+0x00060b78

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@Sinan
Seems fail on openal initialisation. Are you sure you use clib2 version of openal if you build for clib2, and if it newlib build, then openal of newlib version ?

Also, be sure that you uncomment amiga parts related to music/sounds, as original ones are fine enough (by adding #undef AMIGA on top of those files).

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Yes I am using clib2 version of OpenAL, that I compiled thanks to your instructions.

Now I have disabled OpenAL from makefile and compiled again..
Now it seems to crash with ccfile.ccp cdfile.cpp buffer.cpp which must be related to file i/o.

I will try to check with gdb.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Just popping in
Just popping in


See User information
@SinanSam460

I truly hope you will be able to find time and figure out how to compile and release binaries for Conquer! I would love to help, but I do not know anything about coding, compiling and such, so I can only hope you will not get bored or annoyed with this project and abandont it. Thank you for doing this and if you finish this eventually, I promise I'll buy you pizza and beer, that is something I can do, at least.

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
Quote:

I will try to check with gdb.


How did this work out for you? There is no working GDB, right?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
@rjd324

Like Kas1e, I am able to compile an executable from Arczi (Big Endian OS3/Apollo) sources (with sound disable and using SDL2 with clib2 versions+includes), however it crashes after opening a window.

This is the crashlog
ymbol info:
Instruction pointer 0x7F7127A4 belongs to module "vanillatd" (PowerPC
Symbol_Z8Prog_EndPKcb 0x38 in section 1 offset 0x001767A0

Stack trace
:
    
vanillatd:_Z8Prog_EndPKcb()+0x38 (section 1 0x1767A0)
    
vanillatd:_ZN11CCFileClass5ErrorEiiPKc()+0x58 (section 1 0x8CF8)
    
vanillatd:_ZN12RawFileClass4OpenEi()+0x1c4 (section 1 0x34A44)
    
vanillatd:_ZN17BufferIOFileClass4OpenEi()+0x1b8 (section 1 0x580C)
    
vanillatd:_ZN11CDFileClass4OpenEi()+0x26c (section 1 0xBCD8)
    
vanillatd:_ZN11CCFileClass4OpenEi()+0x370 (section 1 0x9904)
    
vanillatd:_ZN11CCFileClass4ReadEPvl()+0x7c (section 1 0x8E84)
    
vanillatd:_Z9Init_GameiPPc()+0xa64 (section 1 0xFF25C)
    
vanillatd:_Z9Main_GameiPPc()+0x30 (section 1 0x986D8)
    
vanillatd:main()+0x800 (section 1 0x1764F0)
    
vanillatd:call_main()+0x3c (section 1 0x3612A0)
    
vanillatd:_main()+0x1e0 (section 1 0x361810)
    
native kernel module dos.library.kmod+0x00029e18
    native kernel module kernel
.debug+0x00081474
    native kernel module kernel
.debug+0x000814ec


I tried GBD, but is not working.

Please note that I am beginner for this kind of a large project (I was able to compile smaller projects), since the port is working on MorphOS / Apollo, I think we can make work it on OS4 too..

Probably I am lacking the required knowledge and doing something wrong

Looking forward to help and suggestions..

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Quite a regular
Quite a regular


See User information
@SinanSam460

Maybe adding to CXXFLAGS "-gstabs" option and to linker CXXLIBS "-lauto" option helps somehow (if not already there)

Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Not too shy to talk
Not too shy to talk


See User information
I don't think gdb works for us at the moment. There is "spotless" debugger.

Two things

1. I wouldn't expect the need to explicitly pass in the include flags to the compiler since -mcrt clib2 should do that anyway behind the scenes?

2. Maybe you can recompile with SDL SOFTWARE rendering flag instead of HARDWARE ACCELERATED.

Just some thoughts.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Home away from home
Home away from home


See User information
@SinanSam460

first crash:

crashes pretty early in Audio_Init
can be that you need to open ahi, maybe or openal was initialized correct.

2en crash

crashed in some sub function of Init_Game,
again its pritty early it crashes, some library is most likely not opened as it should, maybe...

I don't normaly just look at the stack trace, i also look at disasm, and ISI or DSI error.

look at PowerPC register tells me if its a NULL pointer bug.
ISI is some issue with API call, (typicaly not opened library)
DSI is some issue with memory or allocation, most often.

You can also try running snoopy, can also give useful info.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top

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

 




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




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project