Compiling "Advice" - functions.h missing

paolone · 4173

paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
on: November 21, 2018, 03:23:25 AM
Hello, I am trying to compile "Advice" (a freeware RequestChoice alternative which allows using txt files as BODY) I found here:
http://aminet.net/package/util/batch/Advice

I entered the src directory and gave this command
gcc -o advice advice.c


It stops almost immediately due to this missing "functions.h" include. I wonder: where should I take this .h file from? i've noticed there is a file with same name in develompent:lib/gcc/i386-aros/4.6.4/include/c++/debug, but I guess it's not the needed one. I've tried copying it in development:include/ but building stops with an error.

Can someone please help me?


BTW: I perfectly know I can use requestchoice and the ${filename} value as BODY parameter, problem here is that I would need to add *N to every line feed in the txt file, and this is not something I'd really want to do... :-)


paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #1 on: November 21, 2018, 03:36:57 AM
I answer to myself: I found it in a include subdirectory, libxlt.


Since other files from the same directory were needed, I copied them all in development:Include/, they didn't overwrite anything.


Still, gcc gives me errors, and this time they're not due to mising files, but to "invalid operands to binary something". Here my few skills completely stop.


Can someone please help me with this? Thank you so much.


paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #2 on: November 21, 2018, 04:45:15 AM
Hi. I've found a different way to do what I wanted, so advice is less urgent to me. :-)


Neverthless, it would still be good to have. So, if anybody would be so kind to compile it for AROS, I would be really grateful anyway.

Thanks and kind regards


wawa

  • Senior Member
  • ****
    • Posts: 265
    • Karma: +55/-0
Reply #3 on: November 21, 2018, 06:35:06 AM
if the includes are exclusive to a particular program they are best left in the local dir. you can adjust the include paths in the makefile.



paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #4 on: November 21, 2018, 06:58:21 AM
if the includes are exclusive to a particular program they are best left in the local dir. you can adjust the include paths in the makefile.

In the /src directory there's just this .c file. No makefile nor headers provided. But thanks for the hint, I will modify the .c source file when needed.
« Last Edit: November 21, 2018, 07:04:52 AM by paolone »



wawa

  • Senior Member
  • ****
    • Posts: 265
    • Karma: +55/-0
Reply #5 on: November 21, 2018, 12:02:05 PM
you can make a simple mmakefile. to compile just ths source. but probably you compile outside aros toolchain, so then it would be more complicated.



ncafferkey

  • Junior Member
  • **
    • Posts: 84
    • Karma: +34/-0
Reply #6 on: November 21, 2018, 05:06:16 PM
My best guess is that the functions.h file is specific to this program and was accidentally left out of the archive. If you found another file of that name in generic includes dirs, it's probably a coincidence, and the wrong file.



cavemann

  • Junior Member
  • **
    • Posts: 78
    • Karma: +86/-0
Reply #7 on: November 21, 2018, 06:27:54 PM

Neverthless, it would still be good to have.

My advice to build Advice  :)

First edit advice.c

line:12: comment line,
//#include <functions.h>

line:88: replace LIBRARY_MINIMUM with zero,
0L /*LIBRARY_MINIMUM*/

line:181: and line:182: replace NULL with,
(int)NULL

then compile,
gcc src/advice.c -o Advice -lreqtools -lreqtoolsstubs

to test enter,
execute advice.demo.scp

works for me  ;)





paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #8 on: November 22, 2018, 03:29:29 AM
Neil, caveman
I owe you a coffee! Thank you so much, now I will play with my new toy!
kind regards



sabbate

  • Guest
Reply #9 on: November 23, 2018, 09:49:30 AM
@cavemann

would you be able to compile without pretentious soundfx, the code is available, is a very good program, like audacity, but was born before on amiga is written in c, I think it is an important resource, I can donate something to compile if you do not offend yourself

hi

Salvatore



cavemann

  • Junior Member
  • **
    • Posts: 78
    • Karma: +86/-0
Reply #10 on: November 23, 2018, 06:20:32 PM
@sabbate,

Wow, that's much more complicated than Advice.

Anyway thanks for the offer, but my todo list is quite long. I would help but iirc, that program has functions with assembly code. Better to ask someone who is familiar with assembly and ahi.

Ciao :)




sabbate

  • Guest
Reply #11 on: November 23, 2018, 11:08:05 PM
thank you so much

however on sourceforge it is written that it is written in c with arexx functions, maybe you know it better than me  :)

hi

Salvatore



cavemann

  • Junior Member
  • **
    • Posts: 78
    • Karma: +86/-0
Reply #12 on: November 24, 2018, 03:10:37 PM
It seems I can't find a tarball for the SoundFX code at sourceforge, the SoundFX website, or Aminet  :(



sabbate

  • Guest
Reply #13 on: November 25, 2018, 05:04:15 AM
on sourceforge there is written this regarding the source code

About CVS

CVS is an old system for managing code. In order to access a CVS repository, you must install a CVS client.
Readonly Access Only

SourceForge only supports readonly access to CVS now. For more information see our blog post about decommissioning CVS commit support. If you are a project admin, you can convert your repository to SVN or Git with these instructions.
CVS Access

This CVS repository can be checked out through anonymous (pserver) CVS with the following commands. The module you wish to check out must be specified as the modulename. See the names of the modules in this repository.

cvs -z3 -d:pserver:anonymous@soundfx.cvs.sourceforge.net:/cvsroot/soundfx co -P modulename

I put the link on the page, I did not understand how to access the source code

https://sourceforge.net/p/soundfx/

hi

Salvatore

ps. I had opened a discussion here

https://ae.amigalife.org/index.php?topic=43.0
« Last Edit: November 25, 2018, 05:11:42 AM by sabbate »



cavemann

  • Junior Member
  • **
    • Posts: 78
    • Karma: +86/-0
Reply #14 on: November 25, 2018, 03:44:33 PM

I did not understand how to access the source code


Me too. I just wanted to confirm that it was written for the paula chip, and not easily portable to x86. Thanks for the info.

Ciao  :)