From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117419 invoked by alias); 18 Nov 2015 05:16:08 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 117370 invoked by uid 89); 18 Nov 2015 05:16:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f169.google.com Received: from mail-ig0-f169.google.com (HELO mail-ig0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 18 Nov 2015 05:16:00 +0000 Received: by igl9 with SMTP id 9so94764546igl.0 for ; Tue, 17 Nov 2015 21:15:58 -0800 (PST) X-Received: by 10.50.160.33 with SMTP id xh1mr1207193igb.25.1447823758177; Tue, 17 Nov 2015 21:15:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.121.194 with HTTP; Tue, 17 Nov 2015 21:15:38 -0800 (PST) From: Ben Simon Date: Wed, 18 Nov 2015 05:16:00 -0000 Message-ID: Subject: Internal Error at compile time - Suggestions? To: kawa Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-q4/txt/msg00039.txt.bz2 Howdy all - I'm starting to flesh out a new Android app written in Kawa and I'm getting following compile errors: [java] (compiling /home/ben/Desktop/i2x/thermaroid/src/com/benjisimon/thermaroid/main.scm to com.benjisimon.thermaroid.main) [java] /home/ben/Desktop/i2x/thermaroid/src/com/benjisimon/thermaroid/main.scm:16:36: internal error - allocate method for LambdaExp:camera-ids/17/l:15 in module ModuleExp:camera/6/l:5 that has already been compiled [java] /home/ben/Desktop/i2x/thermaroid/src/com/benjisimon/thermaroid/main.scm:17:39: internal error - allocate method for LambdaExp:camera-facing/19/l:19 in module ModuleExp:camera/6/l:5 that has already been compiled The files involved in the compilation are below. Or you can see them here: https://github.com/benjisimon/thermaroid/tree/master/src/com/benjisimon/thermaroid I'm using kawa-2.1.1.jar. What am I missing? Thanks or the assistance. main.scm is: --- (define-alias CameraManager android.hardware.camera2.CameraManager) (define-alias Context android.content.Context) (define-alias Activity android.app.Activity) (require 'android-defs) (require ) (activity main (on-create-view (let* ((ids :: string[] (camera-ids)) (directions :: list (map camera-facing ids)) (cam-info (apply string-append (lambda (id direction) (string-append id ": " direction)) ids directions))) (android.widget.TextView (this) text: (as string cam-info))))) --- and camera.scm is: --- (define-alias Activity android.app.Activity) (define-alias CameraManager android.hardware.camera2.CameraManager) (define-alias Context android.content.Context) (define-alias CameraCharacteristics android.hardware.camera2.CameraCharacteristics) (module-export camera-ids camera-facing) (define (camera-mgr) :: CameraManager (invoke (current-activity) 'getSystemService Context:CAMERA_SERVICE)) (define (camera-ids) :: string[] (let ((mgr :: CameraManager (camera-mgr))) (mgr:getCameraIdList))) (define (camera-facing (id :: string)) (let* ((mgr :: CameraManager (camera-mgr)) (details :: CameraCharacteristics (mgr:get-camera-characteristics id)) (key CameraCharacteristics:LENS_FACING) (direction (details:get key))) (vector-ref direction (vector "Front" "Back" "External")))) --- -- Have an idea for software? I can make it happen - http://www.ideas2executables.com My Blog: http://www.BlogByBen.com