From owner-freebsd-ports@freebsd.org Wed Jul 13 10:04:47 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 7B796B931AC for ; Wed, 13 Jul 2016 10:04:47 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4593C13DF for ; Wed, 13 Jul 2016 10:04:47 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 41416B931AB; Wed, 13 Jul 2016 10:04:47 +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 40E18B931A9 for ; Wed, 13 Jul 2016 10:04:47 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (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 0612713DE for ; Wed, 13 Jul 2016 10:04:46 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id v6so58170373vkb.2 for ; Wed, 13 Jul 2016 03:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dKK0MJW2kGjC5Qgtp3d4aQUElUXFnqtgZQxg/yvxROc=; b=ZWjN7ehHAV2mQ87eqa4Suv38wMcttvC5N6aW/cCyw64VS3EgWzxIthC43fsGVXBC90 TjVjqor02xZ5GFxc4FCz6FAp4mJXd4KT6mEOf0Y/FaaB9U1BJSHQR/mO84ob7rlptrYo o6Yj4M4L8BfHe3vpD3TqR8d0sfE5+HErOR0E49C+8rxRSWUErho4/qTLUdusqNZUKbyH fMtk315Gh81rfaGIBfrvfqlN82scsRG/nvIy3T3TnKUrwkzDhVI6e+FzYfNixTsXNEID tp5RJzpHQp0oTj55Wprl1V+AUmLmRNrw3TpunMNrdLM2WY385KadHhmRJrTjSMcz3mQL z6pQ== 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:from:date :message-id:subject:to:cc; bh=dKK0MJW2kGjC5Qgtp3d4aQUElUXFnqtgZQxg/yvxROc=; b=V4hoELvIqcCNyhGjMZkYjAUK5wnarT4UF12LA0RY6D9aOWjNNGBes8lLqHW/zTdVex 95U9Tg27qaJlMXkoRYjuFz2DYGLJtNjxTBMbPq2QpD6i+InSurdv3zexa/j9+97XgG/D 7WrHr20F4gfMfxo4ut7ilkFi4jbQxMnTpljX5iNHONDC7uro7Pc2XW8NbsR9gVUE+7bP iYrkz+JbuYTJ2Qi26svqAHIbXcpVldiBqVwd/TDVOutTXf1brOtOG6JqzrrDF5bhmktC xqJXMh0vI6aanEfC/vLv+8lvMpCeptXCPVRP3rcBb6cMXuAH+2UpQ5ITisrJJ5l/1qAU I4lQ== X-Gm-Message-State: ALyK8tIgJxQIRTUPfT4p8EatW7nJfTt6h8p4nOKi714TtMe51uBGXjVHLKFOFoTRP9Jeij4HACOL4VqZi1+/lg== X-Received: by 10.31.180.203 with SMTP id d194mr3327503vkf.97.1468404285680; Wed, 13 Jul 2016 03:04:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.41.194 with HTTP; Wed, 13 Jul 2016 03:04:45 -0700 (PDT) In-Reply-To: References: <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> From: Raymond Cheung Date: Wed, 13 Jul 2016 18:04:45 +0800 Message-ID: Subject: Re: Wxlua / Zbstudio 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: Wed, 13 Jul 2016 10:04:47 -0000 I tried but all failed. LuaJIT: wxlua/wxLua/modules/wxlua/lbitlib.c:86:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned' typedef LUA_UNSIGNED lua_Unsigned; 5.1 and 5.2: Segmentation fault (core dumped) $ file lua52.core lua52.core: ELF 64-bit LSB core file x86-64, version 1 (FreeBSD), FreeBSD-style, from 'lua52' 5.3: Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio > require 'libwx' error loading module 'libwx' from file './libwx.so': ./libwx.so: Undefined symbol "luaL_openlib" stack traceback: [C]: in ? [C]: in function 'require' stdin:1: in main chunk [C]: in ? > FYI https://trac.macports.org/browser/trunk/dports/graphics/wxLua/Portfile On Sat, Jul 9, 2016 at 1:40 AM, Raymond Cheung wrote: > 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 >> >