Date: Thu, 14 Jul 2016 19:33:41 +0200 From: Torsten Zuehlsdorff <mailinglists@toco-domains.de> To: freebsd-ports@freebsd.org Cc: "korekontakt@gmail.com >> Raymond Cheung" <korekontakt@gmail.com> Subject: Re: Wxlua / Zbstudio Message-ID: <69e33c59-acfb-952f-9bab-b7600d79d0b3@toco-domains.de> In-Reply-To: <CAFGnCTZNbsETe0bFyu_8XiBYnTp6mxWuS7=A705zYmn2Lp3ZmA@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> <CAFGnCTY_qYCcsj_e9eEDeM10USKhXsq6fx1Ra89VBwSPPOeczw@mail.gmail.com> <CAFGnCTZNbsETe0bFyu_8XiBYnTp6mxWuS7=A705zYmn2Lp3ZmA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------14C14062174EAA00AB1B7710 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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" <korekontakt@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 --------------14C14062174EAA00AB1B7710 Content-Type: text/plain; charset=UTF-8; name="wxlua.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="wxlua.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # wxlua # wxlua/Makefile # wxlua/distinfo # wxlua/files # wxlua/files/patch-build_Makefile__wx-config.in # wxlua/files/patch-modules_CMakeLists.txt # wxlua/pkg-descr # wxlua/Makefile~ # echo c - wxlua mkdir -p wxlua > /dev/null 2>&1 echo x - wxlua/Makefile sed 's/^X//' >wxlua/Makefile << 'ff53da160e1e10480c09e3cd273490a1' X# Created by: Torsten Zuehlsdorff <tz@FreeBSD.org> X# $FreeBSD$ X XPORTNAME= wxlua XPORTVERSION= 2.8.12.3 XCATEGORIES= x11-toolkits XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} XDISTNAME= wxLua-${PORTVERSION}-src X XMAINTAINER= tz@FreeBSD.org XCOMMENT= Follows later X XBUILD_DEPENDS= wx30-gtk2>=0:x11-toolkits/wxgtk30 XRUN_DEPENDS= wx30-gtk2:x11-toolkits/wxgtk30 X XCMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${LOCALBASE}/bin/wxgtk2u-3.0-config XCMAKE_ARGS+= -DwxLua_LUA_INCLUDE_DIR=${LUA_INCDIR} XCMAKE_ARGS+= -DwxLua_LUA_LIBRARY=${LUA_LIBDIR} XCMAKE_ARGS+= -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE X XMAKE_JOBS_UNSAFE=yes X XCXXFLAGS+="-I${LOCALBASE}/include" X XCMAKE_BUILD_TYPE= Release X XUSE_GL= gl X XUSES= compiler:gcc-c++11-lib cmake:outsource lua:51 X X.include <bsd.port.pre.mk> X X.include <bsd.port.post.mk> ff53da160e1e10480c09e3cd273490a1 echo x - wxlua/distinfo sed 's/^X//' >wxlua/distinfo << 'e0fdf0754a15a1f77a9530376ce94853' XTIMESTAMP = 1467900257 XSHA256 (wxLua-2.8.12.3-src.tar.gz) = dbfc1d0ed7a89524c7adac66b8ae4b792f4c06255c5c0fea304d439fc87a6d50 XSIZE (wxLua-2.8.12.3-src.tar.gz) = 3915533 e0fdf0754a15a1f77a9530376ce94853 echo c - wxlua/files mkdir -p wxlua/files > /dev/null 2>&1 echo x - wxlua/files/patch-build_Makefile__wx-config.in sed 's/^X//' >wxlua/files/patch-build_Makefile__wx-config.in << '226cdc65896e01337cb7f9a48c8dfa34' X--- build/Makefile_wx-config.in.orig 2013-09-13 00:47:33 UTC X+++ build/Makefile_wx-config.in X@@ -127,7 +127,7 @@ WXLUABINDSTD_LIBS := -l$(WXLUABINDNET_L X X CXXFLAGS := $(WXCXXFLAGS) -MMD -g -Wall -fPIC X CFLAGS := -g -Wall -fPIC X-LDLIBS := $(WXLDLIBS) -ldl -Wl,--rpath -Wl,$(WXLUA_DIR_ABS)/lib X+LDLIBS := $(WXLDLIBS) -Wl,--rpath -Wl,$(WXLUA_DIR_ABS)/lib X CXX := $(WXCXX) X X RM = rm -f 226cdc65896e01337cb7f9a48c8dfa34 echo x - wxlua/files/patch-modules_CMakeLists.txt sed 's/^X//' >wxlua/files/patch-modules_CMakeLists.txt << 'bde076309168696abacc6d69631b1563' X--- modules/CMakeLists.txt.orig 2016-07-07 14:18:39 UTC X+++ modules/CMakeLists.txt X@@ -70,8 +70,8 @@ elseif (APPLE) X set(LUA_LINK_LIBRARIES m readline) X X else () # UNIX X- # Lua 5.1 Makefile : $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -fPIC" MYLIBS="-fPIC -Wl,-E -ldl -lreadline -lhistory -lncurses" X- # Lua 5.2 Makefile : $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" X+ # Lua 5.1 Makefile : $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -fPIC" MYLIBS="-fPIC -Wl,-E -lreadline -lhistory -lncurses" X+ # Lua 5.2 Makefile : $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" X # CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) X # LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) X bde076309168696abacc6d69631b1563 echo x - wxlua/pkg-descr sed 's/^X//' >wxlua/pkg-descr << '4e43be42470b103415c20ba604e66d5e' XWill follow 4e43be42470b103415c20ba604e66d5e echo x - wxlua/Makefile~ sed 's/^X//' >wxlua/Makefile~ << 'f337029577d0b8fff4a4dade0fc13aaf' X# Created by: Torsten Zuehlsdorff <tz@FreeBSD.org> X# $FreeBSD$ X XPORTNAME= wxlua XPORTVERSION= 2.8.12.3 XCATEGORIES= x11-toolkits XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} XDISTNAME= wxLua-${PORTVERSION}-src X XMAINTAINER= tz@FreeBSD.org XCOMMENT= Follows later X XBUILD_DEPENDS= wxgtk30:x11-toolkits/wxgtk30 X XCMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${LOCALBASE}/bin/wxgtk2u-3.0-config XCMAKE_ARGS+= -DwxLua_LUA_INCLUDE_DIR=${LUA_INCDIR} XCMAKE_ARGS+= -DwxLua_LUA_LIBRARY=${LUA_LIBDIR} XCMAKE_ARGS+= -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE X XMAKE_JOBS_UNSAFE=yes X XCXXFLAGS+="-I${LOCALBASE}/include" X XCMAKE_BUILD_TYPE= Release X XUSE_GL= gl X XUSES= cmake:outsource lua:51 X X.include <bsd.port.pre.mk> X X.include <bsd.port.post.mk> f337029577d0b8fff4a4dade0fc13aaf exit --------------14C14062174EAA00AB1B7710--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e33c59-acfb-952f-9bab-b7600d79d0b3>