Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2016 18:04:45 +0800
From:      Raymond Cheung <korekontakt@gmail.com>
To:        Torsten Zuehlsdorff <mailinglists@toco-domains.de>
Cc:        ports@freebsd.org
Subject:   Re: Wxlua / Zbstudio
Message-ID:  <CAFGnCTY_qYCcsj_e9eEDeM10USKhXsq6fx1Ra89VBwSPPOeczw@mail.gmail.com>
In-Reply-To: <CAFGnCTbUoGhg1UhzD3=zU=88tM%2BeK4fZFQiSLvex4Oc09Z9TiQ@mail.gmail.com>
References:  <CAFGnCTa_kmYuK6_pmx0eksV%2BX5fazF04dgaH=fGZXUeJWzdy7Q@mail.gmail.com> <CAFGnCTY2z2PFSHkvC_aOQ0HqmP3cibD95hndXQD2yqoSHPjUMQ@mail.gmail.com> <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> <CAFGnCTbUoGhg1UhzD3=zU=88tM%2BeK4fZFQiSLvex4Oc09Z9TiQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <korekontakt@gmail.com>
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" <mailinglists@toco-domains.de>
> 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 <GL/glx.h>
>>
>>
>> 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 <bsd.port.pre.mk>
>>
>> .include <bsd.port.post.mk>
>>
>> === End ===
>>
>> Greetings,
>> Torsten
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFGnCTY_qYCcsj_e9eEDeM10USKhXsq6fx1Ra89VBwSPPOeczw>