From owner-freebsd-ports@freebsd.org Fri Jul 8 17:40:22 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E4A8B84EE5 for ; Fri, 8 Jul 2016 17:40:22 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6E81B66 for ; Fri, 8 Jul 2016 17:40:22 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 57371B84EE3; Fri, 8 Jul 2016 17:40:22 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5490BB84EE2 for ; Fri, 8 Jul 2016 17:40:22 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C91F1B65 for ; Fri, 8 Jul 2016 17:40:22 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id f7so48043523vkb.3 for ; Fri, 08 Jul 2016 10:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=BI8i41YbFtma8JuXuhjpHQncPdUlC1xKG7Gjm+3iwM8=; b=jVKkiW58iwOGFsFzIJVdOzn+Q2K9jPwgPzgXxGE77G8nY1dpyr4Pdx/CrLOCU6kpou EGWamozpb4w9VnVgPHEkEixf20IoK2deIXn64MmSYgCR+IV0koObS/f5kl42bwc1zej9 D63BoTI9Qw3HUQZsJOT64GRD9Yp29aas9Q2gAejbdHhsjwXN4KzLEfAiHeY2pjcLwJX1 2O+yV0V3HwiH3AAke/Ut5Rn0DewkiSWPK/HBuCA+V15RHMZzBHx5K2MHU/fv7AUR/kuD dMGkD6WgNrOhbtOAKVA3X4zd7PnEKtvBo8rswlgEJnecQcLiOQ4b8TMq9cjRJjl6SjDZ YHBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=BI8i41YbFtma8JuXuhjpHQncPdUlC1xKG7Gjm+3iwM8=; b=PTv4l7zoeb1C1elrXwGnjshrJazmbAoDRiT8+oZRyDhFEK4MBHLvYUDJ8XtSMe5IJC NWGC+yOqZU6YhIAo1UEfNV0VCnsds/LI04RTfRzBpeiak5s+mJLZBaZ0tfBCEUVoonj7 b36fuztAqZCGzS/qv4GitIdUtjFWI7YS3qWiIoIzSGdyieGG/ykGKSusQB52d2gdC1iZ eMuYl3YLcQuXwq4IkyU9Q/jjaNQDer+ORXUPuZrR1aUB0XlIpwCWLv6WcUGtKyuf950g YyfC1oB83dClPw5DA/FOvFsYOq+tAVtGLuUZbsSLEL9xdMaJ+cX2jv6bj4Ay9uXmAG7/ XEOA== X-Gm-Message-State: ALyK8tI+ZY4WZjUpaH3l3bt01wvTaQr0KGH1z82/fJjc23yWqntB3iS8vu6/qRmNvYlxO4TFsx9rD197/ROH4Q== MIME-Version: 1.0 X-Received: by 10.176.6.163 with SMTP id g32mr3451627uag.112.1467999620990; Fri, 08 Jul 2016 10:40:20 -0700 (PDT) Received: by 10.103.41.194 with HTTP; Fri, 8 Jul 2016 10:40:20 -0700 (PDT) Received: by 10.103.41.194 with HTTP; Fri, 8 Jul 2016 10:40:20 -0700 (PDT) In-Reply-To: <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> References: <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> Date: Sat, 9 Jul 2016 01:40:20 +0800 Message-ID: Subject: Re: Wxlua / Zbstudio From: Raymond Cheung To: Torsten Zuehlsdorff Cc: ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 17:40:22 -0000 Hi Torsten, This is also my first time to use cmake. My guess is to use these variables to set path. CMAKE_LIBRARY_PATH CMAKE_INCLUDE_PATH Alternatively, you can try to use gcc, instead of clang. According to my experience on torch7, clang (I tested with versions: 3.4, 3.8 and 3.9) doesn't work properly to find Open BLAS. I have to switch to gcc with these lines: export LD_LIBRARY_PATH=/usr/local/lib/gcc48:$LD_LIBRARY_PATH export CC=gcc export CXX=g++ Blas, lapack and cpow can be used in th with gcc. All torch.test() and nn.test() are passed. I tested to compile torch distro with luajit, lua51, lua52 and lua53 on FreeBSD 11.0. However, only luajit are working properly. Maybe you try luajit with wxlua. I'm also trying to build zbstudio/wxlua from the source. I'll post the results afterwards. Thanks for your help. Raymond On Jul 7, 2016 23:51, "Torsten Zuehlsdorff" wrote: > Hello Raymond, > > I'm a developer of Lua/torch. Currently, I use Ubuntu to write my codes. >> However, Ubuntu has frequent updates and make my environment unstable. >> >> I tried to install Ghost BSD and compile wxlua and zbstudio but both >> failed. Do you have any plan to port these two to FreeBSD? >> > > I started some work on an wxlua port. I got some small progress, but i'm > hacking at this error: > > [ 7%] Building CXX object > modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxstc_bind.cpp.o > In file included from > /usr/ports/x11-toolkits/wxlua/work/wxLua-2.8.12.3-src/modules/wxbind/src/wxgl_bind.cpp:19: > In file included from > /usr/ports/x11-toolkits/wxlua/work/wxLua-2.8.12.3-src/modules/wxbind/include/wxgl_bind.h:47: > In file included from /usr/local/include/wx-3.0/wx/glcanvas.h:192: > In file included from /usr/local/include/wx-3.0/wx/gtk/glcanvas.h:14: > /usr/local/include/wx-3.0/wx/unix/glx11.h:13:10: fatal error: 'GL/glx.h' > file not found > #include > > > Since i never wrote cmake ports before, i do not know how to tell cmake, > that the file is there: > > $ ls -lah /usr/local/include/GL/glx.h > -rw-r--r-- 1 root wheel 14K 3 Jun 16:18 /usr/local/include/GL/glx.h > > Any idea? > > Until now i can say i just works with lua 5.1. 5.2 fails because of > missing compat-mode. 5.3 is untested. > > Makefile of port looks currently like this: > > === Start === > > PORTNAME= wxlua > PORTVERSION= 2.8.12.3 > CATEGORIES= x11-toolkits > MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} > DISTNAME= wxLua-${PORTVERSION}-src > > MAINTAINER= tz@FreeBSD.org > COMMENT= Follows later > > RUN_DEPENDS= wxgtk30:x11-toolkits/wxgtk30 > > CMAKE_ARGS= > -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wxgtk2u-3.0-config > CMAKE_ARGS+= -DwxLua_LUA_INCLUDE_DIR=${LUA_INCDIR} > CMAKE_ARGS+= -DwxLua_LUA_LIBRARY=${LUA_LIBDIR} > CMAKE_ARGS+= -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE > > CMAKE_BUILD_TYPE= Release > > USES= cmake:outsource lua:51 > > .include > > .include > > === End === > > Greetings, > Torsten >