LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 23 views)

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration