Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2016 17:51:32 +0200
From:      Torsten Zuehlsdorff <mailinglists@toco-domains.de>
To:        Raymond Cheung <korekontakt@gmail.com>, ports@FreeBSD.org
Subject:   Re: Wxlua / Zbstudio
Message-ID:  <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de>
In-Reply-To: <CAFGnCTY2z2PFSHkvC_aOQ0HqmP3cibD95hndXQD2yqoSHPjUMQ@mail.gmail.com>
References:  <CAFGnCTa_kmYuK6_pmx0eksV%2BX5fazF04dgaH=fGZXUeJWzdy7Q@mail.gmail.com> <CAFGnCTY2z2PFSHkvC_aOQ0HqmP3cibD95hndXQD2yqoSHPjUMQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?2d3a2920-bb1c-c02f-8da4-9b585e5a4135>