00:02:11 photex: that doesn't ring a bell. I don't know what dylib is involved or how to reproduce this, but don't remember having heard of this behavior. 00:04:09 it wasn't a clean test anyway. I'm just getting my feet wet here trying to get a lay of the land 00:04:36 my goal is to actually be able to load the Canon EDSDK framework to control a DSLR camera 00:05:54 we have a qt application in-house that uses the SDK and since it's a C library I figured it might be interesting to work with it using clozure 00:18:45 photex - in terms of your GNUstep question: have you looked at cocotron? At least one person has used it quite a bit with CCL. 00:19:25 alms_: I've gone to the website after seeing it mentioned. But I haven't explored it at all 00:19:47 I might have the wrong impression but it sounded like a windows only solution 00:20:21 Well, it gets you Windows, plus Cocoa gets you Mac. But no Linux as far as I know. 00:20:39 Agent Cubes uses it to get to Windows. http://www.agentsheets.com 00:29:44 #_?EdsInitializeSDK returns nil; (external "_EdsInitializeSDK") returns the entry point for the function in the dylib I've loaded with open-shared-library 00:30:12 this is an indicator that I'm not generating the cdb files correctly right? 00:34:55 well darn... this isn't the simple matter I hoped it would be :) 00:34:59 still just hangs 00:35:36 can't interrupt it either sadly 01:06:10 -!- bhyde [~bhyde@c-24-61-81-138.hsd1.ma.comcast.net] has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0] 01:33:57 sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has joined #ccl 01:52:07 -!- DataLinkDroid [~DataLinkD@1.147.103.209] has quit [Ping timeout: 256 seconds] 02:07:21 DataLinkDroid [~DataLinkD@120.154.109.64] has joined #ccl 02:18:45 -!- DataLinkDroid [~DataLinkD@120.154.109.64] has quit [Ping timeout: 256 seconds] 02:20:36 bhyde [~bhyde@c-24-61-81-138.hsd1.ma.comcast.net] has joined #ccl 02:35:25 DataLinkDroid [~DataLinkD@1.148.237.175] has joined #ccl 02:50:29 -!- DataLinkDroid [~DataLinkD@1.148.237.175] has quit [Ping timeout: 256 seconds] 03:40:53 -!- krrrcks [~dbr@krrrcks.de] has quit [Ping timeout: 255 seconds] 03:41:13 krrrcks [~dbr@krrrcks.de] has joined #ccl 03:52:20 -!- gbyers [~gb@c-68-35-55-248.hsd1.nm.comcast.net] has quit [*.net *.split] 03:52:20 -!- photex [uid2006@gateway/web/irccloud.com/x-oasmwvageacsyrhm] has quit [*.net *.split] 03:52:23 -!- ChanServ [ChanServ@services.] has quit [*.net *.split] 03:52:24 -!- RocksHound [~rtc@108-232-158-49.lightspeed.tukrga.sbcglobal.net] has quit [*.net *.split] 03:52:25 -!- Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has quit [*.net *.split] 03:52:26 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [*.net *.split] 03:52:26 -!- clop [~jared@64.129.166.50] has quit [*.net *.split] 03:52:26 -!- fe[nl]ix [~quassel@pdpc/supporter/professional/fenlix] has quit [*.net *.split] 03:52:28 -!- derrida [~derrida-f@unaffiliated/deleuze] has quit [*.net *.split] 03:52:28 -!- sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has quit [*.net *.split] 03:52:28 -!- Blkt [~user@82.84.159.152] has quit [*.net *.split] 03:52:28 -!- gz [~gz@setf.clozure.com] has quit [*.net *.split] 03:52:30 -!- xristos [x@ns3.suspicious.org] has quit [*.net *.split] 03:52:30 -!- peccu1 [~peccu@KD106179020073.ppp-bb.dion.ne.jp] has quit [*.net *.split] 03:52:31 -!- brucem [~bmitchene@waywardmonkeys.com] has quit [*.net *.split] 03:52:36 -!- asedeno_ [~asedeno@66.102.14.16] has quit [*.net *.split] 03:52:37 -!- alms_ [~alms_@209-6-130-32.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [*.net *.split] 03:52:38 -!- bhyde [~bhyde@c-24-61-81-138.hsd1.ma.comcast.net] has quit [*.net *.split] 03:52:40 -!- |3b| [bbb@2600:3c00::f03c:91ff:fedf:5b65] has quit [*.net *.split] 03:52:42 -!- ivan``_ [~ivan@unaffiliated/ivan/x-000001] has quit [*.net *.split] 03:52:44 -!- jdz [~jdz@85.254.212.34] has quit [*.net *.split] 03:52:44 -!- oGMo [~rpav@ec2-54-235-67-4.compute-1.amazonaws.com] has quit [*.net *.split] 03:54:11 oGMo [~rpav@ec2-54-235-67-4.compute-1.amazonaws.com] has joined #ccl 03:54:12 jdz [~jdz@85.254.212.34] has joined #ccl 03:54:12 bhyde [~bhyde@c-24-61-81-138.hsd1.ma.comcast.net] has joined #ccl 03:54:12 sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has joined #ccl 03:54:12 Blkt [~user@82.84.159.152] has joined #ccl 03:54:12 RocksHound [~rtc@108-232-158-49.lightspeed.tukrga.sbcglobal.net] has joined #ccl 03:54:12 alms_ [~alms_@209-6-130-32.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 03:54:12 |3b| [bbb@2600:3c00::f03c:91ff:fedf:5b65] has joined #ccl 03:54:12 gz [~gz@setf.clozure.com] has joined #ccl 03:54:12 Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has joined #ccl 03:54:12 asedeno_ [~asedeno@66.102.14.16] has joined #ccl 03:54:12 ivan``_ [~ivan@unaffiliated/ivan/x-000001] has joined #ccl 03:54:12 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #ccl 03:54:12 gbyers [~gb@c-68-35-55-248.hsd1.nm.comcast.net] has joined #ccl 03:54:12 xristos [x@ns3.suspicious.org] has joined #ccl 03:54:12 brucem [~bmitchene@waywardmonkeys.com] has joined #ccl 03:54:12 photex [uid2006@gateway/web/irccloud.com/x-oasmwvageacsyrhm] has joined #ccl 03:54:12 clop [~jared@64.129.166.50] has joined #ccl 03:54:12 ChanServ [ChanServ@services.] has joined #ccl 03:54:12 fe[nl]ix [~quassel@pdpc/supporter/professional/fenlix] has joined #ccl 03:54:12 derrida [~derrida-f@unaffiliated/deleuze] has joined #ccl 03:54:12 peccu1 [~peccu@KD106179020073.ppp-bb.dion.ne.jp] has joined #ccl 03:54:12 -!- cameron.freenode.net has set mode +o ChanServ 03:54:19 -!- jdz [~jdz@85.254.212.34] has quit [*.net *.split] 03:54:19 -!- oGMo [~rpav@ec2-54-235-67-4.compute-1.amazonaws.com] has quit [*.net *.split] 03:54:39 -!- alms_ [~alms_@209-6-130-32.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms_] 03:55:43 jdz [~jdz@85.254.212.34] has joined #ccl 03:55:43 oGMo [~rpav@ec2-54-235-67-4.compute-1.amazonaws.com] has joined #ccl 04:08:10 DataLinkDroid [~DataLinkD@101.171.246.38] has joined #ccl 05:39:09 -!- rme [rme@FC1CA36D.AAFC1D2.699BA7A6.IP] has quit [Ping timeout] 05:41:30 -!- rme [~rme@50.43.170.74] has quit [Ping timeout: 264 seconds] 05:46:08 rme [~rme@50.43.144.105] has joined #ccl 05:47:17 -!- DataLinkDroid [~DataLinkD@101.171.246.38] has quit [Ping timeout: 256 seconds] 06:04:36 DataLinkDroid [~DataLinkD@1.129.60.15] has joined #ccl 06:41:07 -!- DataLinkDroid [~DataLinkD@1.129.60.15] has quit [Ping timeout: 256 seconds] 09:35:47 aftershave [~textual@h-123-168-44.a336.priv.bahnhof.se] has joined #ccl 13:06:41 -!- aftershave [~textual@h-123-168-44.a336.priv.bahnhof.se] has quit [Quit: Textual IRC Client: www.textualapp.com] 13:22:01 -!- rme [rme@30E65C95.B02E95DC.699BA7A6.IP] has quit [Ping timeout] 13:22:13 -!- rme [~rme@50.43.144.105] has quit [Ping timeout: 248 seconds] 13:25:18 rme [~rme@50.43.141.106] has joined #ccl 13:36:14 pnpuff [~LaGrange@unaffiliated/pnpuff] has joined #ccl 13:38:55 -!- sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has quit [Quit: Leaving.] 13:39:03 -!- pnpuff [~LaGrange@unaffiliated/pnpuff] has quit [Client Quit] 13:39:23 -!- rme [~rme@50.43.141.106] has quit [Ping timeout: 240 seconds] 13:41:27 rme [~rme@50.43.169.161] has joined #ccl 13:43:18 alms_ [~alms_@173-162-137-153-NewEngland.hfc.comcastbusiness.net] has joined #ccl 14:13:00 sellout- [~Adium@70.96.9.235] has joined #ccl 14:48:28 -!- sellout- [~Adium@70.96.9.235] has quit [Read error: Connection reset by peer] 14:50:12 sellout- [~Adium@70.96.9.235] has joined #ccl 14:52:18 -!- rme [~rme@50.43.169.161] has quit [Ping timeout: 264 seconds] 14:53:22 rme [~rme@50.43.178.171] has joined #ccl 15:22:19 -!- sellout- [~Adium@70.96.9.235] has quit [Quit: Leaving.] 15:35:29 pjb [~user@AMontsouris-651-1-4-143.w90-46.abo.wanadoo.fr] has joined #ccl 15:38:58 sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has joined #ccl 15:42:11 jangle [~jimmy1984@dsl-162.7-238.gtb.net] has joined #ccl 15:48:17 -!- jangle [~jimmy1984@dsl-162.7-238.gtb.net] has quit [Ping timeout: 248 seconds] 15:49:39 wheelsucker [~user@168.114.240.151] has joined #ccl 16:03:08 jangle [~jimmy1984@dsl-162.7-238.gtb.net] has joined #ccl 16:16:14 pnpuff [~ff@unaffiliated/pnpuff] has joined #ccl 16:39:26 -!- alms_ [~alms_@173-162-137-153-NewEngland.hfc.comcastbusiness.net] has quit [Quit: alms_] 17:07:54 are the instructions for building ffigen on the wiki up to date? 17:10:24 specifically for building ffigen on OSX 10.8 17:11:02 -!- pnpuff [~ff@unaffiliated/pnpuff] has quit [Ping timeout: 256 seconds] 17:11:37 damn, nevermind. can't read the large bold print today! 17:11:46 I need to use a specific branch 17:21:04 -!- rme [rme@6B99BDB2.3F086399.699BA7A6.IP] has quit [Ping timeout] 17:22:00 -!- rme [~rme@50.43.178.171] has quit [Ping timeout: 260 seconds] 17:26:34 rme [~rme@50.43.135.167] has joined #ccl 17:31:52 hrm, ok so a certain amount of progress has been made at least but the generated cdb files are all about 4.5k and I'm not resolving any methods 17:31:57 -!- rme [rme@75A475E0.80B03224.699BA7A6.IP] has quit [Ping timeout] 17:32:34 rather, I'm not able to use #_ but using external shows that it can resolve the function 17:32:53 -!- rme [~rme@50.43.135.167] has quit [Ping timeout: 240 seconds] 17:37:00 rme [~rme@50.43.128.76] has joined #ccl 17:40:10 hrm, ok, so none of the functions declared are being added to the ffi file somehow 17:40:48 I get this error when running h-to-ffi.sh EDSDK.h:1: error: stray '\239' in program EDSDK.h:1: error: stray '\187' in program EDSDK.h:1: error: stray '\191' in program 17:44:13 photex: also see http://trac.clozure.com/ccl/wiki/CustomFramework, and maybe http://trac.clozure.com/ccl/wiki/ForeignFunctionInterface too. 17:44:30 So EDSDK.h evidently has some non-ASCII characters in it? 17:44:48 yes, which I don't see in Emacs, and apparently doesn't bother the compiler I typically use 17:45:08 so I've never noticed... 17:45:54 Time for hexdump -C EDSDK.h or something like that, I suppose. 17:47:10 yeah... man.. Canon do not make what I would consider to be a superlative SDK 17:48:11 ok, there we go that fixed it 17:49:34 sadly, it still just hangs on EdsInitializeSDK though :( Doing this in C works naturally, so I'm supposing that perhaps I need to explicitly load more libraries 17:49:51 objc:load-framework doesn't work since the frameworks are in a custom location 17:52:49 Sometimes it matters what thread a library is loaded in; on OS X, we always arrange to do open-shared-library on the main thread. 17:53:15 ok, so I can call that safely from swank? 17:53:38 I *think* it should work. 17:53:49 and does objc:load-framework honor DYLD_FRAMEWORK_PATH? 17:55:46 Is this SDK really an Objective-C framework or is it just a plain C interface? 17:56:07 it's a plain C interface provided as a pair of frameworks 17:56:43 I'm just trying out everything I can since just loading the library and calling a function hangs clozure 17:56:55 it just sits and pegs the cpu at about 88% or so 17:57:31 the frameworks have a lot of files in them 17:58:03 so I guessed that perhaps loading it as a framework would solve the issue 17:58:42 Is this SDK available somewhere? 17:59:17 sadly no. you have to be a registered developer 17:59:27 although I'm starting to consider exploring a free alternative 18:03:00 I might try attaching gdb to the stuck lisp to see if that shows any hints. 18:04:56 oh good idea 18:05:19 -!- sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has quit [Quit: Leaving.] 18:06:41 hlavaty [~user@friedrichstrasse.knowledgetools.de] has joined #ccl 18:10:41 sellout- [~Adium@c-98-245-92-119.hsd1.co.comcast.net] has joined #ccl 18:13:08 *sigh* ok even that isn't working 18:13:52 I run: gdb /path/to/ccl/dx86cl 18:13:56 run --no-sigtrap 18:14:09 and I get an EXC_BAD_ACCESS 18:14:41 and wiki shows me more info: http://trac.clozure.com/ccl/wiki/CclUnderGdb 18:14:44 does otool -L /path/to/sdk.dylib show anything interesting? Like does it want to load Cocoa or anything like that? 18:14:48 was looking just in the documentation 18:15:26 There's a version of gdb on ftp.clozure.com 18:16:17 yes, otool lists ImageCaptureCore, Cocoa, libobjc, libSystem, CoreFoundation, Foundation, AppKit, IOKit, CoreServices 18:16:44 I would need to load all of these as well then wouldn't I 18:17:04 oh and also Carbon! 18:17:08 wow 18:18:49 alms_ [~alms_@173-162-137-153-NewEngland.hfc.comcastbusiness.net] has joined #ccl 18:19:14 Nice. Well then, you could try running the IDE and try to load that SDK from there. 18:20:09 gendl [~gendl@c-98-250-10-50.hsd1.mi.comcast.net] has joined #ccl 18:22:06 progress! 18:22:39 ok, rather than hanging I get a great deal of output 18:22:54 it can't find the other lib I load, I presume I need to update the rpaths 18:23:18 it's looking for everything in @executable_pat/../Frameworks 18:35:12 -!- rme [rme@5FEDA2F1.92D39A3A.699BA7A6.IP] has quit [Ping timeout] 18:35:13 -!- rme [~rme@50.43.128.76] has quit [Ping timeout: 248 seconds] 18:44:17 rme [~rme@50.43.181.236] has joined #ccl 19:39:46 -!- rme [rme@21C0634.BBD22DE2.699BA7A6.IP] has quit [Ping timeout] 19:40:18 -!- rme [~rme@50.43.181.236] has quit [Ping timeout: 246 seconds] 19:51:59 rme [~rme@50.43.169.98] has joined #ccl 19:58:17 -!- rme [rme@7279A3F0.CB9B39BA.699BA7A6.IP] has quit [Ping timeout] 19:58:54 -!- rme [~rme@50.43.169.98] has quit [Ping timeout: 264 seconds] 20:18:42 -!- jangle [~jimmy1984@dsl-162.7-238.gtb.net] has quit [Quit: jangle] 20:26:30 rme [~rme@dynamic-acs-24-239-61-15.zoominternet.net] has joined #ccl 21:09:48 can I generate an interface database and use it from somewhere other than inside the ccl installation? 21:10:03 I'm thinking a location like an application bundle Resources directory 21:10:07 -!- alms_ [~alms_@173-162-137-153-NewEngland.hfc.comcastbusiness.net] has quit [Quit: alms_] 21:10:54 or what would be more cross-platform would just be some path relative to the current executable 21:18:49 Probably not too hard, but I don't remember the details. (USE-INTERFACE-DIR :foo) looks for "ccl:SOME-PLATFORM-SPECIFIC-DIRECTORY;foo", and if it's not obvious how to change that to do what you want I could actually think about it ... As of the last I saw, you were just doing something like (external-call "someCfunction") - with no args (?) - and that was looping around burning CPU. If that's correct, it doesn't sound like an interface da 21:18:49 tabase issue. 21:20:41 rme helpfully suggested trying to load the library from the IDE instead of vanilla ccl 21:20:48 this actually solved the problem 21:21:05 apparently it needs some of the magic provided by a fully loaded cocoa ccl 21:22:06 so at the moment, I figured I'd just use build-application to create an app bundle, place the frameworks in there and see how that works out for me 21:23:15 out of curiosity I wanted to attempt two things: 1) determine where my app is running (path to the bundle) 2) build several interface databases and place them in the app bundle Resources 21:24:13 In an app bundle the CCL directory is (or can be) somewhere inside the bundle, so adding your interfaces to the standard place (relative to CCL:) should work fine. 21:24:44 that's fantastic 21:30:09 jangle [~jimmy1984@dsl-164.7-238.gtb.net] has joined #ccl 21:38:23 -!- wheelsucker [~user@168.114.240.151] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:43:09 alms_ [~alms_@209-6-130-32.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 22:05:46 hlavaty` [~user@friedrichstrasse.knowledgetools.de] has joined #ccl 22:10:18 -!- hlavaty [~user@friedrichstrasse.knowledgetools.de] has quit [Ping timeout: 264 seconds] 23:07:26 -!- jangle [~jimmy1984@dsl-164.7-238.gtb.net] has quit [Quit: jangle] 23:13:52 jangle [~jimmy1984@dsl-164.7-238.gtb.net] has joined #ccl