[OGo-Users] Re: click-to-dial & Asterisk (Adam Tauno WIlliams)
Mark Pavlichuk
users@opengroupware.org
Tue, 04 Dec 2007 09:30:47 +1000
> You don't need a build environment in the vein of building OGo; if you
> have a normal development environment installed and the OGo packages all
> you need is Obj-C support for GCC. In openSUSE the packages libobjc42
> and gcc-objc-4.2 cover this, I assume Debian has similar packages.
>
> That should be all you need to build the CTI bundle.
>
> All the patch seems to do is create the
> opengroupware.org/WebUI/CTI/AsteriskDialer directory and contents.
> http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=515&action=view <http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=515&action=view>
>
> "gmake debug=yes strip=no" should build it as described in the plone.
I have "objc" and "libobjc" installed, as well as a number of packages I
installed which were apparently useful to compiling OGo as a whole
(which can't hurt I guess), though I still couldn't find "gmake". Google
tells me gmake is simply GNU make, and is simply called "make" in a
Linux environment... but after after getting :
make -f GNUmakefile
GNUmakefile:3: /common.make: No such file or directory
GNUmakefile:22: /bundle.make: No such file or directory
GNUmakefile:23: /tool.make: No such file or directory
make: *** No rule to make target `/tool.make'. Stop.
...I looked some more and apparently there's such a beast as "GNUstep
make"(???). Could this be "gmake"? There are two GNUstep-make
packages... gnustep-make and gnustep-make-ogo bundled with debian.
From reading docs and seeing what gnustep-make-ogo provides (ie. NOT
documentation) and from reading the plone docs I thought executiong
GNUstep.sh might help....
find -name GNUstep.sh
./usr/share/GNUstep/Makefiles/GNUstep.sh
./usr/lib/opengroupware.org/System/Library/Makefiles/GNUstep.sh
./usr/lib/GNUstep/System/Tools/GNUstep.sh
./usr/src/gnustep-make-1.13.0/GNUstep.sh
Hmmm... which one?
. /usr/lib/opengroupware.org/System/Library/Makefiles/GNUstep.sh
Lets try a make :
make debug=yes strip=no
Making all for bundle AsteriskDialer...
Creating AsteriskDialer.cti/....
Compiling file AsteriskDialer.m ...
In file included from AsteriskDialer.m:22:
common.h:22:34: warning: Foundation/Foundation.h: No such file or directory
AsteriskDialer.m:25: error: cannot find interface declaration for
‘NSObject’, superclass of ‘AsteriskDialer’
In file included from AsteriskDialer.m:27:
AsteriskConnection.h:25:32: warning: Foundation/NSObject.h: No such file
or directory
In file included from AsteriskDialer.m:27:
AsteriskConnection.h:31: error: cannot find interface declaration for
‘NSObject’, superclass of ‘AsteriskConnection’
AsteriskConnection.h:54: error: expected ‘)’ before ‘BOOL’
AsteriskConnection.h:67: error: expected ‘)’ before ‘BOOL’
AsteriskConnection.h:68: error: expected ‘)’ before ‘BOOL’
AsteriskConnection.h:69: error: expected ‘)’ before ‘BOOL’
AsteriskDialer.m: In function ‘-[AsteriskDialer cleanupNumber:]’:
AsteriskDialer.m:33: error: ‘NSEnumerator’ undeclared (first use in this
function)
AsteriskDialer.m:33: error: (Each undeclared identifier is reported only
once
AsteriskDialer.m:33: error: for each function it appears in.)
AsteriskDialer.m:33: error: ‘prefixes’ undeclared (first use in this
function)
AsteriskDialer.m:39: error: ‘NSUserDefaults’ undeclared (first use in
this function)
AsteriskDialer.m:40: error: cannot find interface declaration for
‘NXConstantString’
AsteriskDialer.m:44: warning: no ‘-stringByReplacingString:withString:’
method found
AsteriskDialer.m:44: warning: (Messages without a matching method signature
AsteriskDialer.m:44: warning: will be assumed to return ‘id’ and accept
AsteriskDialer.m:44: warning: ‘...’ as arguments.)
AsteriskDialer.m:45: warning: no ‘-stringByReplacingString:withString:’
method found
AsteriskDialer.m:46: warning: no ‘-length’ method found
AsteriskDialer.m:46: warning: comparison between pointer and integer
AsteriskDialer.m:47: warning: no ‘-isNotEmpty’ method found
AsteriskDialer.m:48: warning: no ‘-stringByAppendingString:’ method found
AsteriskDialer.m:54: warning: no ‘-keyEnumerator’ method found
AsteriskDialer.m:56: warning: no ‘-hasPrefix:’ method found
AsteriskDialer.m:57: warning: no ‘-length’ method found
AsteriskDialer.m:57: warning: no ‘-substringFromIndex:’ method found
AsteriskDialer.m:58: warning: no ‘-objectForKey:’ method found
AsteriskDialer.m:59: warning: no ‘-stringByAppendingString:’ method found
AsteriskDialer.m: At top level:
AsteriskDialer.m:77: error: expected ‘)’ before ‘BOOL’
AsteriskDialer.m: In function ‘-[AsteriskDialer canDialNumber:]’:
AsteriskDialer.m:79: warning: no ‘-length’ method found
AsteriskDialer.m:79: error: ‘YES’ undeclared (first use in this function)
AsteriskDialer.m:79: error: ‘NO’ undeclared (first use in this function)
AsteriskDialer.m:80: warning: control reaches end of non-void function
AsteriskDialer.m: At top level:
AsteriskDialer.m:83: error: expected ‘)’ before ‘BOOL’
AsteriskDialer.m: In function ‘-[AsteriskDialer dialNumber:fromDevice:]’:
AsteriskDialer.m:86: warning: implicit declaration of function ‘NSLog’
AsteriskDialer.m:87: error: ‘BOOL’ undeclared (first use in this function)
AsteriskDialer.m:87: error: expected ‘;’ before ‘ok’
AsteriskDialer.m:88: error: ‘ok’ undeclared (first use in this function)
AsteriskDialer.m:88: error: ‘YES’ undeclared (first use in this function)
AsteriskDialer.m:91: warning: no ‘-length’ method found
AsteriskDialer.m:92: error: ‘NO’ undeclared (first use in this function)
AsteriskDialer.m:94: warning: ‘AsteriskConnection’ may not respond to
‘+alloc’
AsteriskDialer.m:94: warning: no ‘-init’ method found
AsteriskDialer.m:100: warning: implicit declaration of function ‘RELEASE’
AsteriskDialer.m:121: warning: control reaches end of non-void function
make[1]: *** [shared_debug_obj/AsteriskDialer.o] Error 1
make: *** [AsteriskDialer.all.bundle.variables] Error 2
Questions questions :
* Is this because I should install a libfoundation development package?
* Is it because my OGo sources should be in a different place?
* Am I even using the right make program?
That's at least eight possibilities in a decision matrix (not counting
hidden variables)... perhaps it's time to ask for more help.
-Mark