25 May '13 - 15:48 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Can't compile Tempo project. What am I doing wrong?  (Read 3238 times)
talius
Posts: 6


« on: 8 May '06 - 17:20 »
Reply with quoteQuote

I have difficulties with bass_fx22.

When I try to open prjTempo.dpr (with my Delphi 6) I get the ERROR telling me: Cannot fond resource file: C:\Program Files\...\prjTempo.res. I have been trying to locate this file by my self but no file with that name is present on my PC.
However when I click OK and try to compile and run the Tempo project I get a lot of compile errors which look like this:

[Error] tempo.pas(65): Undeclared identifier: 'BASS_CHANNELINFO'
[Warning] tempo.pas(96): Comparing signed and unsigned types - widened both operands
[Error] tempo.pas(102): Too many actual parameters
[Error] tempo.pas(130): Undeclared identifier: 'BASS_STREAM_DECODE'
[Error] tempo.pas(133): Undeclared identifier: 'BASS_MUSIC_PRESCAN'
[Warning] tempo.pas(133): Combining signed and unsigned types - widened both operands
[Error] tempo.pas(133): Too many actual parameters
[Error] tempo.pas(142): Undeclared identifier: 'BASS_ChannelGetInfo'
[Error] tempo.pas(144): Missing operator or semicolon
[Error] tempo.pas(147): Undeclared identifier: 'BASS_ChannelBytes2Seconds'
[Error] tempo.pas(147): Undeclared identifier: 'BASS_ChannelGetLength'
[Error] tempo.pas(185): Undeclared identifier: 'BASS_ChannelPlay'
[Error] tempo.pas(261): Undeclared identifier: 'BASS_ChannelSeconds2Bytes'
[Fatal Error] prjTempo.dpr(7): Could not compile used unit 'tempo.pas'

I have the latest bass.dll placed on the right place (I think).

I get similar errors when trying Reverse, DSP and BPM projects.
I have tried all this with Delphi 7 which gave the same result.
What am I doing wrong?
Can somebody please guide me step by step on what should be done and how it should be done in order to successfully compile and run these projects?

I would appreciate any help.

regards
talius
Logged
Chris
Posts: 1507


« Reply #1 on: 8 May '06 - 17:32 »
Reply with quoteQuote

Hi
The simplest way is to put the the bass.pas and the bass_fx.pas in your Project Dir
Quote
I have the latest bass.dll placed on the right place (I think).
The dll`s must be in your Project Dir

Greets Chris
« Last Edit: 8 May '06 - 17:37 by Chris » Logged
Chris
Posts: 1507


« Reply #2 on: 8 May '06 - 17:35 »
Reply with quoteQuote

oops Please delete this
Logged
talius
Posts: 6


« Reply #3 on: 8 May '06 - 17:46 »
Reply with quoteQuote

Hi Chris.

Thanks for answering me :-)

I have all that in the project dir but no joy  Sad
bass_fx.dll is also there.

I've tried to put these files in to several places but noting helps.
What file is this prjTempo.res which I get message about right from the start?
What did you people do from the moment when this project was downloaded til the moment you succesfully compiled it?

thanks
talius
Logged
Chris
Posts: 1507


« Reply #4 on: 8 May '06 - 17:53 »
Reply with quoteQuote

Hi
There are 2 ways

1.) put the bass.pas,bass_fx.pas in the projectdir and
just change the prjTemo to the follwing
program prjTempo;

uses
  Forms,
  tempo in 'tempo.pas' {frmTempo};


begin
  Application.Initialize;
  Application.CreateForm(TfrmTempo, frmTempo);
  Application.Run;
end. 

2.) way

put the bass.pas / bass_fx.pas in the subdirectory delphi (bass_fx22\delphi)

About the resFile this will be automatic generate if you will compile

Greets Chris
« Last Edit: 8 May '06 - 17:57 by Chris » Logged
talius
Posts: 6


« Reply #5 on: 8 May '06 - 18:04 »
Reply with quoteQuote

Hi Chris.


thanks for trying to help me.
That code modification didn't work.
I am sure I am doing it wrong already from the beginning.
I have tried this on another PC with Delphi 7 installed with same problems - no luck.
What is the step by step procedure for getting this project compiled?

regards
talius


talius
Logged
Chris
Posts: 1507


« Reply #6 on: 8 May '06 - 18:16 »
Reply with quoteQuote

hi
about the res File this is not a error only a Information
(delphi will generate it after the first compile)

after extracting the Zip File
Example you have extract the Files to
C:\DelphiProjects\bass_fx22

just copy the bass.pas into C:\DelphiProjects\bass_fx22\delphi

copy bass.dll,bass_fx.dll to C:\DelphiProjects\bass_fx22\delphi\tempo

open the C:\DelphiProjects\bass_fx22\delphi\tempo\prjTempo.dpr
and compile it

Greets Chris
Logged
talius
Posts: 6


« Reply #7 on: 8 May '06 - 18:28 »
Reply with quoteQuote

Hi Chris.

Obviously this is what I do every time but it just would not compile.
I don’t understand what is going on but I get the same compile error every time.

[Error] tempo.pas(65): Undeclared identifier: 'BASS_CHANNELINFO'
[Warning] tempo.pas(96): Comparing signed and unsigned types - widened both operands
[Error] tempo.pas(102): Too many actual parameters
[Error] tempo.pas(130): Undeclared identifier: 'BASS_STREAM_DECODE'
[Error] tempo.pas(133): Undeclared identifier: 'BASS_MUSIC_PRESCAN'
[Warning] tempo.pas(133): Combining signed and unsigned types - widened both operands
[Error] tempo.pas(133): Too many actual parameters
[Error] tempo.pas(142): Undeclared identifier: 'BASS_ChannelGetInfo'
[Error] tempo.pas(144): Missing operator or semicolon
[Error] tempo.pas(147): Undeclared identifier: 'BASS_ChannelBytes2Seconds'
[Error] tempo.pas(147): Undeclared identifier: 'BASS_ChannelGetLength'
[Error] tempo.pas(185): Undeclared identifier: 'BASS_ChannelPlay'
[Error] tempo.pas(261): Undeclared identifier: 'BASS_ChannelSeconds2Bytes'
[Fatal Error] prjTempo.dpr(7): Could not compile used unit 'tempo.pas'

Strange.
More suggestions please.

talius
Logged
talius
Posts: 6


« Reply #8 on: 8 May '06 - 18:42 »
Reply with quoteQuote

Hi.

There is a variable info: BASS_CHANNELINFO; in the private section.
This variable is reported by the compiler as undeclared and this is only the first error followed by many others.
I have downloded bass_fx22.zip yesterday. Is there something corrupt in this files? Something missing in the uses clause.
I've been searching for occurrences of BASS_CHANNELINFO in all the files provided with bass_fx22.zip - nothing - except in the tempo.pas and bpm.pas which give the error.

talius
Logged
Chris
Posts: 1507


« Reply #9 on: 8 May '06 - 18:43 »
Reply with quoteQuote

Hi
BASS_CHANNELINFO is declare in the  bass.pas and not in the bass_fx.pas

All the errors looks like you have not copy the BASS.Pas in the directoy....
try this
http://www.cst-development.de/downloads/tempo.zip
Greets Chris
« Last Edit: 8 May '06 - 18:47 by Chris » Logged
talius
Posts: 6


« Reply #10 on: 8 May '06 - 19:23 »
Reply with quoteQuote

Thanks a lot for your patience.
This amazingly worked just perfect from the first try.

I researched a little bit on the files and found a lot of differences between them.
Fist of all the files which I down loaded from http://www.un4seen.com/ are older version than what I’ve got from your link (thanks).

My file Bass.pas:

{
  BASS 1.8a Multimedia Library
  ----------------------------
  (c) 1999-2003 Ian Luck.
  Please report bugs/suggestions/etc... to bass@un4seen.com

  See the BASS.CHM file for more complete documentation


Your file Bass.pas:

{
  BASS 2.2 Audio Library, (c) 1999-2005 Ian Luck.
  Please report bugs/suggestions/etc... to bass@un4seen.com

  See the BASS.CHM file for more complete documentation

Further there it is quite much differences in the code but I did not looked at everything but indeed a big difference I size:
My file is 69,9 KB in size while yours is 47,7KB

I'll be back with more but I think there is a problem with the file bass_fx22.zip available at http://www.un4seen.com/ download.

Could someone else try this file (do backup your current files before try) :-)

Thanks again Chris.
Grate forum

Best regards
Talius

Logged
Chris
Posts: 1507


« Reply #11 on: 8 May '06 - 20:25 »
Reply with quoteQuote

Hi
Quote
Thanks a lot for your patience.
You are welcome

Quote
I'll be back with more but I think there is a problem with the file bass_fx22.zip available at http://www.un4seen.com/ download.
The File from  un4seen.com are ensure the newest
Are you shure that you don´t mix that with an old Download ???
The newst downloads you will find on the mainside
http://www.un4seen.com/bass.html
and you will see there Current version: 2.2 (.0.4)....
And take a look into your searchpath and into YourProgammDir\Borland\Delphi6\Lib if there is NOT an old Bass.pas
Greets Chris
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines