LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems building fakenes from source (https://www.linuxquestions.org/questions/linux-software-2/problems-building-fakenes-from-source-828267/)

frieza 08-24-2010 04:31 PM

problems building fakenes from source
 
running ubuntu 10.4 x86_64

downloaded source tarball of fakenes-0.5.9-beta3

tried to compile with ./cbuild as per instructions and it gets to the following and provides quite a few errors

Code:

you're missing HawkNL
continuing on without it...
Compiling src/audio.cpp...
src/audio.cpp:85: error: expected initializer before ‘*’ token
src/audio.cpp: In function ‘void audio_exit()’:
src/audio.cpp:194: error: ‘wavFile’ was not declared in this scope
src/audio.cpp: In function ‘void audio_update()’:
src/audio.cpp:312: error: ‘wavFile’ was not declared in this scope
src/audio.cpp:318: error: ‘putc’ was not declared in this scope
src/audio.cpp:329: error: ‘wavFile’ was not declared in this scope
src/audio.cpp:335: error: ‘putc’ was not declared in this scope
src/audio.cpp: In function ‘int audio_open_wav(const UCHAR*)’:
src/audio.cpp:439: error: ‘wavFile’ was not declared in this scope
src/audio.cpp:439: error: ‘fopen’ was not declared in this scope
src/audio.cpp:444: error: ‘fseek’ was not declared in this scope
src/audio.cpp: In function ‘void audio_close_wav()’:
src/audio.cpp:455: error: ‘wavFile’ was not declared in this scope
src/audio.cpp:457: error: ‘fseek’ was not declared in this scope
src/audio.cpp:463: error: ‘fwrite’ was not declared in this scope
src/audio.cpp:482: error: ‘fclose’ was not declared in this scope

it appears i am missing either a library or a header file which would most likely be provided by a -dev package
what am i missing?
or is there a bug in the file audio.cpp

evo2 08-26-2010 05:55 AM

Hmm, I don't know what hawknl is but the build script should have bailed out if it was essential.

I checked the fakenes sourceforge site and it seems that the code you are trying to compile is more than two years old. I suspect the problem is that the source code is missing some "#include <cstdio>"s that older g++ did not explicitly need. That would probably explain the putc, fseek, fwrite and fclose errors, but I don't know about the wavFile errors.

What g++ version are you using?

Evo2.

knudfl 08-28-2010 04:02 PM

1 Attachment(s)
Downloading HawkNL1.68 : http://hawksoft.com/download/ : HawkNL168src.zip
Please edit HawkNL1.68/src/makefile.linux , line 8-9 to :
LIBDIR = /usr/lib
INCDIR = /usr/include
cd HawkNL1.68/ && make -f makefile.linux && sudo make install -f makefile.linux

Required : alleggl ..
http://sourceforge.net/projects/alle...ar.gz/download
> alleggl-0.4.3.tar.gz
cd alleggl/ && ./configure --prefix=/usr && sudo make install

Reason for "prefix=usr/" , HawkNL1.68 and alleggl :
The executable 'fakenes' is hard coded to look in /usr/lib* only.

Also : '/usr/bin/openal-config' is required : sudo cp openal-config /usr/bin/



HawkNL is not causing your errors. 'g++' is : Already suggested by @evo2.
( The *.cpp files are dated 2007.)
This will do : sudo apt-get install g++-4.1

Please start from scratch with fakenes in a new directory :
cd fakenes-0.5.9-beta3/ && export CXX=g++-4.1 && make

The command ./fakenes will display the GUI.
..


All times are GMT -5. The time now is 10:06 AM.