AROS World Exec
Development => Development (General) => Topic started by: paolone 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... :-)
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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 ;)
-
Neil, caveman
I owe you a coffee! Thank you so much, now I will play with my new toy!
kind regards
-
@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
-
@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 :)
-
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
-
It seems I can't find a tarball for the SoundFX code at sourceforge, the SoundFX website, or Aminet :(
-
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
-
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 :)
-
thank you
ciao
salvatore