benibela / xidel

Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
http://www.videlibri.de/xidel.html
GNU General Public License v3.0
674 stars 42 forks source link

Build error: Can't find unit FLREUnicode #18

Closed CanOfBees closed 6 years ago

CanOfBees commented 6 years ago

Hi - I'm trying to build from source on FreeBSD and I'm running into an error:

--> ./build.sh
-Fu../../../components/pascal/* -Fi../../../components/pascal -Fu../../../components/pascal/internet/* -Fu../../../components/pascal/internet/examples/* -Fu../../../components/pascal/system/* -Fu../../../components/pascal/system/cvirus/* -Fu../../../components/pascal/system/apihooking/* -Fu../../../components/pascal/system/apihooking/example/* -Fu../../../components/pascal/system/nvcanvas/* -Fu../../../components/pascal/import/regexpr/source/* -Fu../../../components/pascal/import/synapse/* -Fi../../../components/pascal/import/synapse -Fu../../../components/pascal/import/flre/src/* -Fu../../../components/pascal/import/utf8tools/* -Fi../../../components/pascal/import/utf8tools -Fu../../../components/pascal/import/utf8tools/demo/charenc/* -Fu../../../components/pascal/import/utf8tools/demo/charandscan/* -Fu../../../components/pascal/data/* -Fi../../../components/pascal/data -Fu../../../components/pascal/data/examples/* -Fu../../../components/pascal/data/tests/* -Fu../../../components/lazarus/internet/sendBackError/* -Fu../../../components/lazarus/dialogs/* -Fu../../../programs/internet/xidel/* -Fi../../../programs/internet/xidel -Fu../../../programs/internet/xidel/android/*
Free Pascal Compiler version 3.0.2 [2017/12/10] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: FreeBSD for x86-64
Compiling xidel.pas
Compiling xidelbase.pas
Compiling /usr/home/bridger/src/xidel/xidel-0.9.6-src/components/pascal/data/simplexmltreeparserfpdom.pas
simplexmltreeparserfpdom.pas(149,19) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
simplexmltreeparserfpdom.pas(150,23) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
Compiling /usr/home/bridger/src/xidel/xidel-0.9.6-src/components/pascal/data/xquery_module_file.pas
xquery_module_file.pas(400,15) Warning: Symbol "urlHexDecode" is deprecated: "for internal use"
Compiling /usr/home/bridger/src/xidel/xidel-0.9.6-src/components/pascal/data/xquery_module_math.pas
xquery_module_math.pas(244,3) Note: Local variable "f" not used
Compiling /usr/home/bridger/src/xidel/xidel-0.9.6-src/components/pascal/system/rcmdline.pas
Compiling /usr/home/bridger/src/xidel/xidel-0.9.6-src/components/pascal/data/xquery_utf8.pas
xquery_utf8.pas(33,30) Fatal: Can't find unit FLREUnicode used by xquery_utf8
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode

I've been able to work around other build errors by grabbing things piecemeal (first time playing around with a Pascal application) but I can't find a FLREUnicode.pas anywhere. Could you give me some suggestions for getting around this particular hurdle?

And: Xidel looks like an awesome tool - thanks for sharing it!

Best, Bridger

Edit: so, I clearly didn't look hard enough in the TAR, there was a copy under components/pascal/import/flre/. After trying to puzzle out why the build.sh couldn't/wouldn't load that directory, I copied the two files from that path into the directory with build.sh and it completed without any additional errors. Apologies for the confusion!