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

next in thread | previous in thread | raw e-mail | index | archive | help
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?CAFGnCTbUoGhg1UhzD3=zU=88tM%2BeK4fZFQiSLvex4Oc09Z9TiQ>