From owner-freebsd-ports@freebsd.org Fri Jul 15 15:22:26 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58501B9AFCA for ; Fri, 15 Jul 2016 15:22:26 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C7321A51 for ; Fri, 15 Jul 2016 15:22:26 +0000 (UTC) (envelope-from korekontakt@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id x130so159828300vkc.0 for ; Fri, 15 Jul 2016 08:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2jXBd6qBLuf9LiOwKsLgSC4eO1gwmnrVaLB0onSyaAg=; b=UAi79bUL9NDBTbmh6tWoeZ3tjMvcvq2FKZ+4/277XLH4ds0My9xxmYVnRT1GJEq/hH GrYX1veAgDztaxz3IlcQZ2dNtVU+Wk03cY4IOq4j+46X8R70H6z/uOHKlfG2edXVak6V iGFZ9k/zwXNgCEPFslqaJzbXcJ+YkwWAEdxz/2k5k0/iCPXD/ANhGHh5Kakpd2Xkm72A xTio61nbnZnFHMCS7tWbl1M12tljMei6/kIPdrSdwtpxEiLnfPRAF3CRv3SrSlsYBcF0 Lp/IxwHK7KLJQH1JJMFLv/bi8Ay/JDhSaGeZ0QV+nIktZxylXXzkT16nEz1u0nawkENC F8Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2jXBd6qBLuf9LiOwKsLgSC4eO1gwmnrVaLB0onSyaAg=; b=OPGVS8DVBHIDUkc6ZqQLFQtGSCjRrY3U2OiLTA3gVHYlsf8Mg4dDjYxZ9fnrcZ8L6d t8L6YduywzvYASUGu4avpmysuJH5O8NS658anbP54Gg2ZSS6lQExR78GT5wFh8potKe1 bWEmVE2GCQmc4BOGFDHBAI2zxIe6RXm0u2odDsf12jx0J6iZrbGbGV4RdEv2eBf5L4HH OdUSe+OXUfAAbTo9BjQHliEgi7uVMHA5bmT5QAD30Nu7QWec4vxEIhEUXDlOJETySEok AHJ95xjUcBULcMFseKJh3LpJcKqf1TqWrPmDNeHWxt/n4s3VCSyXcBUBwxDtovyza+M7 jUXw== X-Gm-Message-State: ALyK8tJ7+wkWAUUJ2omXZF/u8+HiGHn4TGctT5F0hW+yae1NszB2qAjK2GGi7vCAg495t65VsCP1gWIWduUK2Q== X-Received: by 10.176.5.97 with SMTP id 88mr10938025uax.26.1468596145029; Fri, 15 Jul 2016 08:22:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.41.194 with HTTP; Fri, 15 Jul 2016 08:22:24 -0700 (PDT) In-Reply-To: <69e33c59-acfb-952f-9bab-b7600d79d0b3@toco-domains.de> References: <2d3a2920-bb1c-c02f-8da4-9b585e5a4135@toco-domains.de> <69e33c59-acfb-952f-9bab-b7600d79d0b3@toco-domains.de> From: Raymond Cheung Date: Fri, 15 Jul 2016 23:22:24 +0800 Message-ID: Subject: Re: Wxlua / Zbstudio To: Torsten Zuehlsdorff Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 15:22:26 -0000 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 < mailinglists@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" 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 >