Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
151 user(s) are online (127 user(s) are browsing Forums)

Members: 1
Guests: 150

Skateman, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 18 19 20 (21) 22 »
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

I get (not severe) errors while configuring
Quote:

Checking for SDL... yes
gnome-config: Unknown command
gnome-config failed returncode 10

It seems to come from pkg-config.

Can i somehow silence those or get rid of them completely?

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

you should have a readme.md or something similar, but try --disable-gnome when invoking the configure scripts the help might be in the actual configure file.

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@trgswe

Thanks, will take a look

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

Question about warnings.

How to fix these or should they even be fixed wrt future compatibility?
Is it something as easy as adding another header?

gcc -O2 -Wall -I. -DSOUND_AHI -DWORDS_BIGENDIAN -o delay.-c delay.c
delay
.cIn function 'amiga_atexit':
delay.c:71:17warning'DeleteIORequest' is deprecated [-Wdeprecated-declarations]
   
71 |                 DeleteIORequest((struct IORequest *) timerio);
      |                 ^~~~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:148:35notedeclared here
  148 
|         DEPRECATED void APICALL (*DeleteIORequest)(struct ExecIFace *Self,
struct IORequest ioRequest);
      |                                   ^~~~~~~~~~~~~~~
delay.c:72:17warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
   
72 |                 DeleteMsgPort(timerport);
      |                 ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~
delay.cIn function 'amiga_inittimer':
delay.c:79:9warning'CreateMsgPort' is deprecated [-Wdeprecated-declarations]
   
79 |         timerport CreateMsgPort();
      |         ^~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:96:47notedeclared here
   96 
|         DEPRECATED struct MsgPort APICALL (*CreateMsgPort)(struct ExecIFace
*Self);
      |                                               ^~~~~~~~~~~~~
delay.c:82:35warning'CreateIORequest' is deprecated [-Wdeprecated-declarations]
   
82 |                 timerio = (struct TimeRequest *) CreateIORequest(timerport,
sizeof(struct TimeRequest));
      |                                   ^~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:147:49notedeclared here
  147 
|         DEPRECATED struct IORequest APICALL (*CreateIORequest)(struct
ExecIFace 
*Self, const struct MsgPort ioReplyPortULONG size);
      |                                                 ^~~~~~~~~~~~~~~
delay.c:90:50warningpassing argument 2 of 'IExec->GetInterface' from incompatible
pointer type 
[-Wincompatible-pointer-types]
   
90 |                                 ITimer = (struct TimerIFace *)
GetInterface(TimerBase"main"1NULL);
      |                                                  ^~~~~~~~~~
      |                                                  |
      |                                                  
struct Device *
delay.c:90:50noteexpected 'struct Library *' but argument is of type 'struct Device
*'
delay.c:97:33warning'DeleteIORequest' is deprecated [-Wdeprecated-declarations]
   
97 |                                 DeleteIORequest((struct IORequest *)timerio);
      |                                 ^~~~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:148:35notedeclared here
  148 
|         DEPRECATED void APICALL (*DeleteIORequest)(struct ExecIFace *Self,
struct IORequest ioRequest);
      |                                   ^~~~~~~~~~~~~~~
delay.c:98:33warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
   
98 |                                 DeleteMsgPort(timerport);
      |                                 ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~
delay.c:101:25warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
  
101 |                         DeleteMsgPort(timerport);
      |                         ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~


Thank you

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

In your case, you have to migrate the code to use the now official method to create an IORequest

timerio IExec->AllocSysObjectTags(ASOT_IOREQUEST,
  
ASOIOR_Sizesizeof(struct IORequest),
  
TAG_DONE);


and for freeing (deleting)

IExec->FreeSysObject(ASOT_LIST,(APTR)timerio );


For MsgPprt it's the same pattern, like ASOT_PORT.

The issue with the TimerIFace, i have no currently no clue

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@MigthyMax

argh, ok, so nothing i could do...thank you for checking

Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

It seems to me that you need to cast TimerBase like:

ITimer = (struct TimerIFace *)GetInterface((struct Library *)TimerBase, "main", 1, NULL);

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

Quote:
> In your case, you have to migrate the code to use the now official method to create an IORequest

argh, ok, so nothing i could do...thank you for checking

If you want to get rid of all the warnings, just use "-Wno-deprecated-declarations".

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Capehill

Quote:
It seems to me that you need to cast TimerBase like:

ITimer = (struct TimerIFace *)GetInterface((struct Library *)TimerBase, "main", 1, NULL);

Better to make TimerBase a library pointer, instead of a device pointer; that way no casting is required. It's also cleaner that way, since the purpose of obtaining the TimerBase from the device is to be able to treat it like a library.


Edited by msteed on 2022/9/29 3:44:48
Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

Did anyone test 1.4.2 of libFLAC on os4depot?

Since installing this release i get
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `process_subframe_.isra.14':
stream_encoder.c:(.text+0x54d4): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `write_bitbuffer_'
:
stream_encoder.c:(.text+0x5cd0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function 
`init_stream_internal_':
stream_encoder.c:(.text+0x6e34): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `process_frame_':
stream_encoder.c:(.text+0x826c): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `FLAC__stream_encoder_finish'
:
stream_encoder.c:(.text+0x90bc): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o):(.got2+0x9c): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder_framing.o): In function `FLAC__frame_add_header'
:
stream_encoder_framing.c:(.text+0x1284): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder_framing.o):(.got2+0xb4): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_encoder_aspect.o): In function `FLAC__ogg_encoder_aspect_write_callback_wrapper'
:
ogg_encoder_aspect.c:(.text+0x444): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_encoder_aspect.o):(.got2+0x4): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_helper.o): In function `simple_ogg_page__get_at'
:
ogg_helper.c:(.text+0x5b0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_helper.o):(.got2+0x0): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(lpc.o): In function `FLAC__lpc_compute_lp_coefficients'
:
lpc.c:(.text+0x20c0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(lpc.o): In function 
`FLAC__lpc_quantize_coefficients':
lpc.c:(.text+0x2654): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(lpc.o):(.got2+0x8): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function 
`file_length_callback_':
stream_decoder.c:(.text+0x214): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `read_residual_partitioned_rice_':
stream_decoder.c:(.text+0x790): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `write_audio_frame_to_client_'
:
stream_decoder.c:(.text+0xa30): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function 
`find_metadata_':
stream_decoder.c:(.text+0xf0c): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `read_frame_':
stream_decoder.c:(.text+0x32ac): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o):stream_decoder.c:(.text+0x5560): more undefined references to `__stack_chk_fail' 
follow
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o):(.got2+0x4): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_decoder_aspect.o): In function 
`FLAC__ogg_decoder_aspect_read_callback_wrapper':
ogg_decoder_aspect.c:(.text+0x504): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_decoder_aspect.o):(.got2+0x0): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function 
`bitreader_read_from_client_':
bitreader.c:(.text+0x29c): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_uint32.part.1':
bitreader.c:(.text+0x750): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_int32'
:
bitreader.c:(.text+0x1344): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function 
`FLAC__bitreader_read_raw_uint64':
bitreader.c:(.text+0x14ec): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_int64':
bitreader.c:(.text+0x16cc): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o):bitreader.c:(.text+0x18e4): more undefined references to `__stack_chk_fail' 
follow
/SDK/local/newlib/lib/libFLAC.a(bitreader.o):(.got2+0x0): undefined reference to `__stack_chk_guard'

and i don't know why?

Did the new release somehow skip something?
and where can i get the former release (1.3.2?) to roll back?

Thank you

Go to top
Re: Porting to AmigaOS4 thread
Amigans Defender
Amigans Defender


See User information
@Raziel

Have you downloaded the re-uploaded version? Because there was a problem with the one Fredrik uploaded originally.

Libflac 1.4.2 works for me perfectly.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

Add -lssp to get rid of those undefined references.

To test I just compiled and linked the FLAC C decode file example code using the gcc 8.4.0 from SDK 54.16 and it worked without any errors (libs used for linking were "-lFLAC -logg -lssp").

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@trixie

Yes, i did, i actually was late to the party and got the fixed one (just re-dl-ed to be absolutely sure)

@salass00

What does the switch do?

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

If there are some configure gurus out there, please help.
I can't figure out why this piece of configure script fails to find zlib

Quote:

checking for zlib... no
configure: error: Unable to find zlib.


All of the pkg-config lines that are found in the script work fine using them in a shell...
It also doesn't matter if i skip pkg-config and directly point to zlib with envvars

Help, please?

pkg_failed=no
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
printf 
%"checking for zlib... " >&6; }

if 
test -"$ZLIB_CFLAGS"then
    pkg_cv_ZLIB_CFLAGS
="$ZLIB_CFLAGS"
 
elif test -"$PKG_CONFIG"then
    
if test -"$PKG_CONFIG&& \
    
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
  
($PKG_CONFIG --exists --print-errors "zlib"2>&5
  ac_status
=$?
  
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status>&5
  test $ac_status 
0; }; then
  pkg_cv_ZLIB_CFLAGS
=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
              
test "x$?" != "x0" && pkg_failed=yes
else
  
pkg_failed=yes
fi
 
else
    
pkg_failed=untried
fi

if test -"$ZLIB_LIBS"then
    pkg_cv_ZLIB_LIBS
="$ZLIB_LIBS"
 
elif test -"$PKG_CONFIG"then
    
if test -"$PKG_CONFIG&& \
    
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
  
($PKG_CONFIG --exists --print-errors "zlib"2>&5
  ac_status
=$?
  
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status>&5
  test $ac_status 
0; }; then
  pkg_cv_ZLIB_LIBS
=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
              
test "x$?" != "x0" && pkg_failed=yes
else
  
pkg_failed=yes
fi
 
else
    
pkg_failed=untried
fi



if test $pkg_failed yesthen
        
printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf 
"%s\n" "no" >&6; }

if 
$PKG_CONFIG --atleast-pkgconfig-version 0.20then
        _pkg_short_errors_supported
=yes
else
        
_pkg_short_errors_supported=no
fi
        
if test $_pkg_short_errors_supported yesthen
                ZLIB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
        else
                
ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
        
fi
        
# Put the nasty error message in config.log where it belongs
        
echo "$ZLIB_PKG_ERRORS>&5

        as_fn_error 
$? "Unable to find zlib." "$LINENO5
elif test $pkg_failed 
untriedthen
        
printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf 
"%s\n" "no" >&6; }
        
as_fn_error $? "Unable to find zlib." "$LINENO5
else
        
ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
        ZLIB_LIBS
=$pkg_cv_ZLIB_LIBS
        
printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf 
"%s\n" "yes" >&6; }

    
ZLIB_PKG=zlib
    ZLIB_CFLAGS
="-DMPT_WITH_ZLIB $ZLIB_CFLAGS"

fi


fi


Thank you

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

Is there a way to tell Snoopy to immediately write to a file, instead of using the PD menu?

Go to top
Re: Porting to AmigaOS4 thread
Quite a regular
Quite a regular


See User information
@Raziel

Are you running this on the AmigaOne machine? I presume you are. Are you running "./configure" through SH?

I would have expected that if you set the CFLAGS and LIB variables then PKGCONFIG would not be needed.

You can hack that configure script and add something like
set -x

Above the first line that you posted above (do not add it at the top. Just the line _before_ the first line you posted. This will print out each line that is being executed by the interpreter with expansion of variables.

Quite difficult to help without some reproducible steps; i.e. can you tell me which project this is or provide it and then I can attempt to reproduce.

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: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@rjd324

Yes, normally using

Quote:

sh ./configure


The funny thing is that another project picks up zlib just fine, so im guessing that specific configure messes up the pathes or has them wrongly hardcoded.

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@rjd324

I forgot tothank you for the hint...will try whenever I get the chance

Is a wxwidgets port even possible?
Seems it needs a lot of dependencies we can't have

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
ZLIB_PKG=
test
test x != xno
+ :
pkg_failed=no
printf %s\n configure:21908checking for zlib
+ >&
printf %s checking for zlib... 
+ >&

checking 
for zlib... + test -
test -
pkg_failed=untried
test -
test -
pkg_failed=untried
test untried yes
test untried untried
printf %s\n configure:21968resultno
+ >&
printf %s\n no
+ >&
no
as_fn_error 0 Unable to find zlib21970 5
configure
errorUnable to find zlib.


This is what i get with set -x
It seems to not pick up pkg-config...which is there, and used by other configure scripts just fine...

Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

Quote:
Raziel wrote:@rjd324

Is a wxwidgets port even possible?


I don't know what is down there: https://sourceforge.net/projects/wxwidget-aos/

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top

  Register To Post
« 1 ... 18 19 20 (21) 22 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project