Author Topic: Compiling "Advice" - functions.h missing  (Read 390 times)

paolone

  • Junior Member
  • **
  • Posts: 68
    • View Profile
Compiling "Advice" - functions.h missing
« on: November 21, 2018, 10: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

  • Junior Member
  • **
  • Posts: 68
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #1 on: November 21, 2018, 10: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

  • Junior Member
  • **
  • Posts: 68
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #2 on: November 21, 2018, 11: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

  • Junior Member
  • **
  • Posts: 69
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #3 on: November 21, 2018, 01:35:06 PM »
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

  • Junior Member
  • **
  • Posts: 68
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #4 on: November 21, 2018, 01:58:21 PM »
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, 02:04:52 PM by paolone »

wawa

  • Junior Member
  • **
  • Posts: 69
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #5 on: November 21, 2018, 07: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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #6 on: November 22, 2018, 12:06:16 AM »
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

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #7 on: November 22, 2018, 01:27:54 AM »

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

  • Junior Member
  • **
  • Posts: 68
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #8 on: November 22, 2018, 10: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

  • Junior Member
  • **
  • Posts: 54
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #9 on: November 23, 2018, 04:49:30 PM »
@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

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #10 on: November 24, 2018, 01:20:32 AM »
@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

  • Junior Member
  • **
  • Posts: 54
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #11 on: November 24, 2018, 06:08:05 AM »
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

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #12 on: November 24, 2018, 10:10:37 PM »
It seems I can't find a tarball for the SoundFX code at sourceforge, the SoundFX website, or Aminet  :(

sabbate

  • Junior Member
  • **
  • Posts: 54
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #13 on: November 25, 2018, 12:04:15 PM »
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, 12:11:42 PM by sabbate »

cavemann

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Compiling "Advice" - functions.h missing
« Reply #14 on: November 25, 2018, 10: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  :)