From owner-freebsd-ports@freebsd.org Thu Jul 14 10:30:56 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 162E7B98CD8 for ; Thu, 14 Jul 2016 10:30:56 +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 E632C1D82 for ; Thu, 14 Jul 2016 10:30:55 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E577AB98CD7; Thu, 14 Jul 2016 10:30:55 +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 DFF57B98CD6 for ; Thu, 14 Jul 2016 10:30:55 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 92FD21D81 for ; Thu, 14 Jul 2016 10:30:55 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id x130so103974889vkc.0 for ; Thu, 14 Jul 2016 03:30:55 -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=LQZODOjCx5Rkl/YoL5jbfG9z6+EgzJrWl3GeyOZperE=; b=IIE6+kQCAXcUK08jhZETh8zY6yEgptDtFcGlkWFjW1JpVraiY7I3DCB3L6NUJWR9IY 9mjH2M0YmBnrPQviG2B2Gdyk92PRPJoiQXcB1GZWJrurXRwQGTLtMrwBqiC5tJFHdHpR g5tS9X9GgQ3NwTZbkqf+dxyp+hvr1mCVEEFy9IHJES2LVssLTKuuzaaTDzv1ecCf7bp1 xyMh3nvwV1S5uuSaNE9lZk3Exk6mFZN7Zt4gP6Eeh57jv3BKMKYtYnvwxqlDc6O0BPVh 0V/jYtSCI2iOLQBxDkZBRjV+UKugFx6ink3H9AE9oV1092JoSiWtUq+WodKFW3rPsf3S FiyQ== 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=LQZODOjCx5Rkl/YoL5jbfG9z6+EgzJrWl3GeyOZperE=; b=idjDOsjSwUX6PDYtTIIyVJD1FA0rnrf7FAR2vB7rDjABT6xnCsBQjzdWKjhWLP10cg AYgv87Tjp27IhxOvb5Xf9TWYuu5cBGZDjAHvTnJNZ8WBcVE1NpLf0I4m9tjFnw5CGIlF IBpZZr+KVaF3urLGqGolOSZ0OAsYsbkZVNF0CthB27cvIN7K7p5nnYrjTvrCjDTwUQNN QaQBiw3MwH8mtPB/6I6RzsF2IvggAqp/SIGlXsBxz7pAPrGD8zfzKTFJZQLPtuJAaBEK 2iDXTSRcwRrFhP30zHysbsJ+AlgfGI6dbRFWnLyyBL1rGnMH1PW8oc6lf1jCi2PgYx8+ yQfg== X-Gm-Message-State: ALyK8tI1gSBaCZdvDMeipYpO6UYvYjabqxzUozj5beXf6nGecK7sCQkwsq/Hn3oANkSxMxX6t4HBfbqrFsvedQ== MIME-Version: 1.0 X-Received: by 10.31.60.204 with SMTP id j195mr6442658vka.132.1468492254440; Thu, 14 Jul 2016 03:30:54 -0700 (PDT) Received: by 10.103.41.194 with HTTP; Thu, 14 Jul 2016 03:30:54 -0700 (PDT) Received: by 10.103.41.194 with HTTP; Thu, 14 Jul 2016 03:30:54 -0700 (PDT) In-Reply-To: References: <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> Date: Thu, 14 Jul 2016 18:30:54 +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: Thu, 14 Jul 2016 10:30:56 -0000 I tried to include lua 5.3 src to wxlua but still got the segmentation fault. Also, clang can't build wxlua even I add -I/usr/local/include. It can be easily to build with GCC. However, libwx.so can't be loaded. On Jul 13, 2016 18:04, "Raymond Cheung" wrote: > 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 >>> >> >