Re: Wxlua / Zbstudio
This is my script to build: https://github.com/korekontakt/ZeroBraneStudio/blob/master/build/build-freebsd.sh The git is forked from https://github.com/pkulchenko/ZeroBraneStudio by adding some flags from https://github.com/freebsd/freebsd-ports/blob/master/x11-toolkits/wxgtk30/Makefile To build all: ./build-freebsd.sh wxwidgets lua 5.1 luasocket luasec wxlua wxlua was updated with Lua 5.2.2, 5.3.3 and Lua JIT 2.1.0-beta2 https://github.com/korekontakt/wxlua wxlua was forked from https://github.com/pkulchenko/wxlua, which was forked from https://github.com/LuaDist/wxlua For wxwidgets, these two flags --with-libtiff=builtin --with-expat=sys must be builtin or sys. If they're set to no, then they'll get errors. I don't know the difference of builtin and sys. For FreeBSD's Makefile, it uses sys but pkulchenko uses builtin on his build-linux.sh. On Fri, Jul 15, 2016 at 1:33 AM, Torsten Zuehlsdorff < mailingli...@toco-domains.de> wrote: > On 14.07.2016 12:30, Raymond Cheung wrote: > >> 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" <korekont...@gmail.com> wrote: >> > > How did you build it with GCC? I'm failing around 21% with: > > [ 22%] Linking CXX shared library ../../lib/Release/ > libwxlua-wx30gtk2u-2.8.12.3.so > /usr/local/lib: file not recognized: File format not recognized > collect2: error: ld returned 1 exit status > *** Error code 1 > > Attached my current port as shar for x11-toolkits/wxlua. Just extract it > and do a "make". > > Greetings, > Torsten > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
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" <korekont...@gmail.com> 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 <korekont...@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" <mailingli...@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 >>> >>> >>> 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 wheel14K 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= t...@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 >>> >> > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
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 <korekont...@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" <mailingli...@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 >> >> >> 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 wheel14K 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= t...@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 >> > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
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 wheel14K 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= t...@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 > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Torch7 ports (Was: Wxlua / Zbstudio)
I found the solution by use gcc. https://lists.freebsd.org/pipermail/freebsd-toolchain/2014-April/001150.html On install.sh, add export LD_LIBRARY_PATH=/usr/local/lib/gcc48:$LD_LIBRARY_PATH export CC=gcc export CXX=g++ On trepl-scm-1.rockspec, add unix = { modules = { ['readline'] = { sources = {'readline.c'}, libraries = {'readline'}, incdirs = {"/usr/local/include"}, libdirs = {"/usr/local/lib"} } } } On Sun, Jul 3, 2016 at 2:33 AM, Raymond Cheung <korekont...@gmail.com> wrote: > I'm using FreeBSD 11.0-ALPHA5 to test. > > If I use clang/clang++ with the official distro, then nn.test() are passed > but torch.test() are error/failed. > > If I use gcc/g++ for pkg/torch and others with clang/clang++ (and run exec > '/usr/local/bin/lua51' -e ...), then two tests (max and min) of > torch.test() are error/failed: > max > error in torch.max (value) - NaNs > BOOL violation condition=false > > min > error in torch.min - NaNs > BOOL violation condition=false > > But I can't require 'nn': > install/lib/lua/5.1/ffi.so: Undefined symbol "cpow" > > > On Thu, Jun 30, 2016 at 9:19 AM, Raymond Cheung <korekont...@gmail.com> > wrote: > >> Hi all, >> >> I tried the Jan's git ports. However, I got 21 errors out of 127 torch >> tests. It said FFI can't point to some structures. Also, I can require nn >> even it was installed via luarocks. It said the tester suite is missing. >> >> Are the blas finding codes located at math/TH? Thanks. >> >> Raymond >> On Jun 24, 2016 17:12, "Raymond Cheung" <korekont...@gmail.com> wrote: >> >>> Hi Jan and Torsten, >>> >>> Thanks a lot for your help. >>> >>> I will try it later after taking a break. As I lack knowledge on C/C++, >>> I spent a month to retry many ways on FreeBSD 10/11. I feel tried. >>> Fortunately, I got some clues. >>> >>> During this month, I also learnt a lot on FreeBSD. As least I can build >>> and install new world/kernel from GhostBSD 10.3 to 11 Alpha 4. >>> >>> Thanks again for your help. >>> >>> Raymond >>> On Jun 24, 2016 06:41, "Jan Beich" <jbe...@vfemail.net> wrote: >>> >>>> Torsten Zuehlsdorff <t...@freebsd.org> writes: >>>> >>>> > Hello Raymond, >>>> > >>>> >> OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++, >>>> GotoBlas >>>> >> are installed. Header files of OpenBlas is also included to >>>> >> $CMAKE_LIBRARY_PATH. However, I still got the same error message, >>>> missing >>>> >> lapack. >>>> > >>>> > There are various variables to set to specify where to look vor the >>>> > libs, like lapack. >>>> > >>>> > Sadly i'm out of time. Tomorrow i'm heading into vacation. When back i >>>> > will come back to your request and try to create a port for >>>> > this. Maybe we could success together (with more time). >>>> >>>> I did some work in the past on Torch7 ports before losing interest[1]. >>>> Check math/TH if you want to see how it detects OpenBLAS (default). >>>> >>>> $ git clone https://github.com/jbeich/freebsd-ports torch-ports >>>> $ export PORTSDIR=$PWD/torch-ports >>>> $ cd $PORTSDIR/devel/lua-trepl >>>> $ make install >>>> $ th51 >>>> >>>> -- >>>> [1] Many Torch pkgs rely on luarocks to build and resolve dependencies >>>> and some have a hard dependency on luajit. My approach didn't scale >>>> as writing such ports often required translating *.rockspec files >>>> which can quickly grow into maintenance nightmare, so an infra work >>>> had to be done beforehand. >>>> >>> > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Torch7 ports (Was: Wxlua / Zbstudio)
Hi all, I tried the Jan's git ports. However, I got 21 errors out of 127 torch tests. It said FFI can't point to some structures. Also, I can require nn even it was installed via luarocks. It said the tester suite is missing. Are the blas finding codes located at math/TH? Thanks. Raymond On Jun 24, 2016 17:12, "Raymond Cheung" <korekont...@gmail.com> wrote: > Hi Jan and Torsten, > > Thanks a lot for your help. > > I will try it later after taking a break. As I lack knowledge on C/C++, I > spent a month to retry many ways on FreeBSD 10/11. I feel tried. > Fortunately, I got some clues. > > During this month, I also learnt a lot on FreeBSD. As least I can build > and install new world/kernel from GhostBSD 10.3 to 11 Alpha 4. > > Thanks again for your help. > > Raymond > On Jun 24, 2016 06:41, "Jan Beich" <jbe...@vfemail.net> wrote: > >> Torsten Zuehlsdorff <t...@freebsd.org> writes: >> >> > Hello Raymond, >> > >> >> OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++, >> GotoBlas >> >> are installed. Header files of OpenBlas is also included to >> >> $CMAKE_LIBRARY_PATH. However, I still got the same error message, >> missing >> >> lapack. >> > >> > There are various variables to set to specify where to look vor the >> > libs, like lapack. >> > >> > Sadly i'm out of time. Tomorrow i'm heading into vacation. When back i >> > will come back to your request and try to create a port for >> > this. Maybe we could success together (with more time). >> >> I did some work in the past on Torch7 ports before losing interest[1]. >> Check math/TH if you want to see how it detects OpenBLAS (default). >> >> $ git clone https://github.com/jbeich/freebsd-ports torch-ports >> $ export PORTSDIR=$PWD/torch-ports >> $ cd $PORTSDIR/devel/lua-trepl >> $ make install >> $ th51 >> >> -- >> [1] Many Torch pkgs rely on luarocks to build and resolve dependencies >> and some have a hard dependency on luajit. My approach didn't scale >> as writing such ports often required translating *.rockspec files >> which can quickly grow into maintenance nightmare, so an infra work >> had to be done beforehand. >> > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Torch7 ports (Was: Wxlua / Zbstudio)
Hi Jan and Torsten, Thanks a lot for your help. I will try it later after taking a break. As I lack knowledge on C/C++, I spent a month to retry many ways on FreeBSD 10/11. I feel tried. Fortunately, I got some clues. During this month, I also learnt a lot on FreeBSD. As least I can build and install new world/kernel from GhostBSD 10.3 to 11 Alpha 4. Thanks again for your help. Raymond On Jun 24, 2016 06:41, "Jan Beich"wrote: > Torsten Zuehlsdorff writes: > > > Hello Raymond, > > > >> OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++, > GotoBlas > >> are installed. Header files of OpenBlas is also included to > >> $CMAKE_LIBRARY_PATH. However, I still got the same error message, > missing > >> lapack. > > > > There are various variables to set to specify where to look vor the > > libs, like lapack. > > > > Sadly i'm out of time. Tomorrow i'm heading into vacation. When back i > > will come back to your request and try to create a port for > > this. Maybe we could success together (with more time). > > I did some work in the past on Torch7 ports before losing interest[1]. > Check math/TH if you want to see how it detects OpenBLAS (default). > > $ git clone https://github.com/jbeich/freebsd-ports torch-ports > $ export PORTSDIR=$PWD/torch-ports > $ cd $PORTSDIR/devel/lua-trepl > $ make install > $ th51 > > -- > [1] Many Torch pkgs rely on luarocks to build and resolve dependencies > and some have a hard dependency on luajit. My approach didn't scale > as writing such ports often required translating *.rockspec files > which can quickly grow into maintenance nightmare, so an infra work > had to be done beforehand. > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
Compiled log for torch7: -- Checking for [openblas] -- Library openblas: /usr/local/lib/libopenblas.so -- Looking for sgemm_ -- Looking for sgemm_ - not found -- Checking for [openblas - pthread] -- Library openblas: /usr/local/lib/libopenblas.so -- Library pthread: /usr/lib/libpthread.so -- Looking for sgemm_ -- Looking for sgemm_ - not found -- Checking for [goto2 - gfortran] -- Library goto2: /usr/local/lib/libgoto2.so -- Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran - pthread] -- Library goto2: /usr/local/lib/libgoto2.so -- Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND -- Checking for [acml - gfortran] -- Library acml: BLAS_acml_LIBRARY-NOTFOUND -- Checking for [Accelerate] -- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND -- Checking for [vecLib] -- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND -- Checking for [ptf77blas - atlas - gfortran] -- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND -- Checking for [blas] -- Library blas: /usr/local/lib/libblas.so -- Looking for sgemm_ -- Looking for sgemm_ - not found -- Cannot find a library with BLAS API. Not using BLAS. -- Checking for [openblas] -- Library openblas: /usr/local/lib/libopenblas.so -- Checking for [openblas - pthread] -- Library openblas: /usr/local/lib/libopenblas.so -- Library pthread: /usr/lib/libpthread.so -- Checking for [goto2 - gfortran] -- Library goto2: /usr/local/lib/libgoto2.so -- Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran - pthread] -- Library goto2: /usr/local/lib/libgoto2.so -- Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND -- Checking for [acml - gfortran] -- Library acml: BLAS_acml_LIBRARY-NOTFOUND -- Checking for [Accelerate] -- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND -- Checking for [vecLib] -- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND -- Checking for [ptf77blas - atlas - gfortran] -- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND -- Checking for [blas] -- Library blas: /usr/local/lib/libblas.so -- Cannot find a library with BLAS API. Not using BLAS. -- LAPACK requires BLAS -- Cannot find a library with LAPACK API. Not using LAPACK. Required libs are installed: [root@gkvmrcb001 /opt/torch]# pkg info | grep blas blas-3.5.0_3 Basic Linear Algebra Subroutines gotoblas-2.1.13.3.4.0_6Fast implementation of Basic Linear Algebra Subprograms openblas-0.2.18_1,1Optimized BLAS library based on GotoBLAS2 [root@gkvmrcb001 /opt/torch]# pkg info | grep lapack lapack-3.5.0 A library of Fortran 77 subroutines for linear algebra lapack++-2.5.4 Linear Algebra PACKage in C++, a wrapper for LAPACK Run time errors: geev : Lapack library not found in compile time gels : Lapack library not found in compile time gesv : Lapack library not found in compile time gesvd : Lapack library not found in compile time getrf : Lapack library not found in compile time potrf : Lapack library not found in compile time pstrf: Lapack library not found at compile time syev : Lapack library not found in compile time trtrs : Lapack library not found in compile time 2/154 testCholesky [ERROR] 8/154 gels_reuse .. [ERROR] 9/154 inverse . [ERROR] 14/154 gesv_reuse .. [ERROR] 19/154 eig_noncontig ... [ERROR] 22/154 pstrf ... [ERROR] 35/154 gels_uniquely_determined [ERROR] 38/154 trtrs_reuse . [ERROR] 54/154 gesv [ERROR] 57/154 gels_underdetermined [ERROR] 60/154 gels_overdetermined . [ERROR] 65/154 eig_reuse ... [ERROR] 81/154 svd_reuse ... [ERROR] 89/154 trtrs ... [ERROR] 92/154 svd_noncontig ... [ERROR] 110/154 symeig_noncontig [ERROR] 115/154 eig . [ERROR] 123/154 potri ... [ERROR] 129/154 svd . [ERROR] 152/154 test_symeig . [ERROR] 153/154 potrs ... [ERROR] On Thu, Jun 23, 2016 at 8:04 AM, Raymond Cheung <korekont...@gmail.com>
Re: Wxlua / Zbstudio
Hi Torsten, OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++, GotoBlas are installed. Header files of OpenBlas is also included to $CMAKE_LIBRARY_PATH. However, I still got the same error message, missing lapack. I tried on both FreeBSD 10.3 and 11 Alpha 4 with gcc, clang34, clang37, clang38 and clang-devel. But no luck. FreeBSD 11 Alpha 4 plus clang38/clang-devel produced the less errors. Raymond On Jun 22, 2016 16:48, "Torsten Zuehlsdorff"wrote: > Hello Raymond, > > I call run zbstudio 32bit binary on FreeBSD 11 Alpha 4. I will try to build >> wxlua later. >> >> Another question about lua / torch is lapack. I tried to make and install >> via the OpenBlas port with the flags (add USE_THREAD=1 NUM_THREAD=8 in >> order to make) suggested by the link below: >> https://github.com/torch/torch7/issues/174 >> >> However, it can't find the .a file of OpenBlas after build/compile. If I >> make without flags, it can make install properly. Please help. >> > > Mh, i'm not very familiar with such lua issues. And also i have no clue > what you have done and what the concrete problem is. > After some recherche i would suggest to try install math/lapack++ or > math/lapack. Better the first one since it depends on OpenBlas and provides > a file named "lib/liblapackpp.a" The other port provides a file called > lib/liblapack.a. I'm not sure which is the correct one - but give it a try. > > Greetings, > Torsten > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
Hi Torsten, I call run zbstudio 32bit binary on FreeBSD 11 Alpha 4. I will try to build wxlua later. Another question about lua / torch is lapack. I tried to make and install via the OpenBlas port with the flags (add USE_THREAD=1 NUM_THREAD=8 in order to make) suggested by the link below: https://github.com/torch/torch7/issues/174 However, it can't find the .a file of OpenBlas after build/compile. If I make without flags, it can make install properly. Please help. Thanks a lot. Raymond On Jun 13, 2016 20:14, "Torsten Zuehlsdorff"wrote: > Hello Raymond, > > Thanks for your prompt reply. I got the error like this: >> http://stackoverflow.com/questions/32777201/compiling-c-opengl-in-freebsd >> >> Gl.h no found, even I installed wxgtk28 and wxgtk30. >> >> I have limited knowledge on C, C++, wx Widgets and OpenGL. I just found >> this discussion today. I'll try to build wxlua later. >> > > Feel free to contact me for help. I do not have much time but would be > happy to help you. > > Greetings, > Torsten > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Wxlua / Zbstudio
Dear Kurt, Thanks for your prompt reply. I got the error like this: http://stackoverflow.com/questions/32777201/compiling-c-opengl-in-freebsd Gl.h no found, even I installed wxgtk28 and wxgtk30. I have limited knowledge on C, C++, wx Widgets and OpenGL. I just found this discussion today. I'll try to build wxlua later. Have a nice weekend, Raymond On Jun 10, 2016 03:07, "Kurt Jaeger"wrote: > Hi! > > > 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? > > The engineering capacity to add new port is limited, so any > support is welcome. > > Do you have the error logs from the builds which failed ? > > The minimal step to advance your cause is to add the two > applications to > > https://wiki.freebsd.org/WantedPorts > > -- > p...@opsec.eu+49 171 3101372 4 years to > go ! > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Wxlua / Zbstudio
Dear Sir/Madam, 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? Fyi, I also failed to build them on Antergos but I can execute zbstudio binary directly. Thanks, Raymond ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"