LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-24-2010, 04:31 PM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,062

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
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
 
Old 08-26-2010, 05:55 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,081

Rep: Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095
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.
 
Old 08-28-2010, 04:02 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
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.
..
Attached Files
File Type: txt openal-config.txt (3.5 KB, 8 views)

Last edited by knudfl; 08-28-2010 at 04:13 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help building subversion from source hedpe Linux - Software 1 04-15-2009 11:03 AM
Compiling Fakenes Kilahchris Linux - Software 3 06-27-2005 11:59 PM
Building compiler from source corbis_demon Programming 2 06-08-2005 08:34 AM
building from source Protex Slackware 2 02-24-2004 08:26 PM
FakeNES won't install GT_Onizuka Linux - Software 5 10-18-2003 12:48 PM


All times are GMT -5. The time now is 03:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration