สวัสดีครับ หลังจากค้นคว้าได้ระยะหนึ่งเมื่อวานซืนผมก็ Build Firefox ด้วย cttex สำเร็จแล้วโดยการติดตั้ง MacPort (ใช้ Fink 0.8 มันทำยังไงๆ ก็ไม่ผ่าน) ทีนี้ก็อยากลอง Build ด้วย ICU บ้าง แต่ก็ไม่สำเร็จติดขั้นตอน configure ไม่ผ่าน (มันบอก icu not found แต่สั่ง icu-config มันก็เจอนะ) เลยสงสัยว่าทำอะไรพลาดไปหรือเปล่า เพราะก็เห็นว่ามีท่านอื่นๆ ลอง Build บน Platform อื่นๆ ได้แล้ว
Hiring! บริษัทที่น่าสนใจ
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand
ปกติผมใช้
pittaya Fri, 20/04/2007 - 10:10
ปกติผมใช้ Fink ก็ใช้งานได้ดีนะครับ build ได้ทั้ง Bon Echo, Grand Paradiso แต่เป็น patch cttex นะครับ อยากรู้ว่า patch ที่เป็น ICU หาจากไหนเหรอครับ
ได้ patch ให้
DrRider Fri, 20/04/2007 - 10:16
ได้ patch ให้ configure สามารถใช้ --with-icu ได้ด้วยหรือเปล่าครับเสร็จแล้วสั่ง autoconf ก่อน 1 ที
ถ้าไงลองหา path ของ icu (icu-config --prefix) แล้วบอก configure (ใน .mozconfig)เข้าไปตรงๆ เลย
ac_add_options --with-icu=/path/to/icu
อีกอย่างคือต้องหาพวก header files (พวก dev package น่ะ) ของ icu มาลงด้วยครับ (เกือบลืม)
มีำคำถามค
ezy Fri, 20/04/2007 - 17:43
In reply to ได้ patch ให้ by DrRider
มีำคำถามครับ ผมเห็นว่าตัว patch มีหลายตัวมาก (ตัวที่คุณหมอเขียนไว้ใน blog) กับตัวที่อยู่ใน LTN เลยสงสัยว่าควรจะใช้ตัวไหนกัน?
สำหรับเรื่อง icu อาจจะต้องลอง force แบบตัวอย่างข้างบนครับ ได้ผลอย่างไรจะนำมารายงานให้ทราบ (เอ๊ะแล้ว path/to/icu นี่คือ ที่อยู่ของ icu-config หรือเปล่า?)
patch
DrRider Fri, 20/04/2007 - 19:16
In reply to มีำคำถามค by ezy
patch ที่อยู่ใน LTN นี่ผมว่าเอาไว้ใช้กับ libthai มั้งครับ
ส่วน patch ที่ผมใช้ก็มาจาก osdev.co.th (ไม่รู้ยังเก็บไว้รึเปล่า ถ้าต้องการให้ส่งไปก็บอกครับ) ที่บิลด์ตัว Thai Community Edition (โดยคุณสัมพันธ์) ซึ่งสำหรับ Fx 2.0.0.x นั้นใช้แค่ 2 patches ครับ คือ patch สำหรับตัวหลัก แล้วก็ patch สำหรับให้ configure สามารถเรียก switch --with-icu ได้ครับ
ส่วน /path/to/icu เป็นที่อยู่ของ icu libraries ทั้งหลายครับ ตัว icu-config น่าจะอยู่ที่ /usr/bin นะเพราะเป็น executable file
ที่สำคัญคือต้องลงพวก dev package ของ icu ด้วยครับไม่งั้นคอมไพล์ไม่ผ่านนะ
ลง ICU
ezy Fri, 20/04/2007 - 23:14
In reply to patch by DrRider
ลง ICU ไปแล้วครับ (แล้วก็ลองทำตามขั้นตอนของคุณหมอที่เคยเขียนไว้ใน blog) แต่มันก็ติดตอนที่มันตรวจสอบ prerequisite ต่างๆ ตรง ICU นั่นแหละครับ
งั้น post error
DrRider Sun, 22/04/2007 - 17:50
In reply to ลง ICU by ezy
งั้น post error messages หน่อยครับ
ปล. ขึ้น Thread ใหม่ก็ได้นะ เดี๋ยวมันแคบจนอ่านไม่รู้เรื่อง
ไม่แน่ใจว
ezy Sun, 22/04/2007 - 22:14
ไม่แน่ใจว่าแค่นี้พอหรือไม่นะครับ ผมสัง make -f client.mk build โดยได้ติดตั้ง MacPort 1.40, autoconf 2.13, icu 3.4.1 ที่เหลือก็ตามข้างล่างนี้
checking for correct temporary object destruction order... yes checking for correct overload resolution with const and templates... no checking for glib-config... no checking for GLIB - version >= 1.2.0... no *** The glib-config script installed by GLIB could not be found *** If GLIB was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG environment variable to the *** full path to glib-config. checking for libIDL-config... no checking for libIDL - version >= 0.6.3... no *** The libIDL-config script installed by libIDL could not be found *** If libIDL was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the LIBIDL_CONFIG environment variable to the *** full path to libIDL-config. checking for pkg-config... /opt/local/bin/pkg-config checking for libIDL-2.0 >= 0.8.0... yes checking LIBIDL_CFLAGS... -I/opt/local/include/libIDL-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include checking LIBIDL_LIBS... -L/opt/local/lib -lIDL-2 -lglib-2.0 -lintl -liconv checking for glib-config... no checking for GLIB - version >= 1.2.0... no *** The glib-config script installed by GLIB could not be found *** If GLIB was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG environment variable to the *** full path to glib-config. /Users/ezybzy/Documents/mozthai/icu/mozilla/configure: line 1: no: command not found checking for ICU... configure: error: ICU not found. *** Fix above errors and then restart with "make -f client.mk build" make[2]: *** [configure] Error 1 make[1]: *** [/Users/ezybzy/Documents/mozthai/icu/mozilla/../build/ppc/Makefile] Error 2 make: *** [build] Error 2อันนี้เป็นค่าที่แสดงออกมาบนหน้าจอหลังจากสั่ง make
Adding client.mk options from /Users/ezybzy/Documents/mozthai/icu/mozilla/.mozconfig: MOZ_CO_PROJECT=browser MOZ_BUILD_PROJECTS=ppc i386 MOZ_UNIFY_BDATE=1 MOZ_POSTFLIGHT_ALL+=build/macosx/universal/flight.mk MOZ_OBJDIR=$(TOPSRCDIR)/../build set -e; \ for app in ppc i386; do \ make -f /Users/ezybzy/Documents/mozthai/icu/mozilla/client.mk build MOZ_CURRENT_PROJECT=$app; \ done Adding client.mk options from /Users/ezybzy/Documents/mozthai/icu/mozilla/.mozconfig: MOZ_CO_PROJECT=browser MOZ_BUILD_PROJECTS=ppc i386 MOZ_UNIFY_BDATE=1 MOZ_POSTFLIGHT_ALL+=build/macosx/universal/flight.mk MOZ_OBJDIR=$(TOPSRCDIR)/../build cd /Users/ezybzy/Documents/mozthai/icu/mozilla/../build/ppc /Users/ezybzy/Documents/mozthai/icu/mozilla/configure Adding configure options from /Users/ezybzy/Documents/mozthai/icu/mozilla/.mozconfig: --enable-application=browser --target=powerpc-apple-darwin8.9.1 --with-macos-sdk=/Developer/SDKs/MacOSX10.2.8.sdk --enable-optimize=-O2 --disable-debug --disable-tests --enable-static --disable-shared --enable-svg --enable-canvas --enable-ctl --with-icu --enable-prebinding loading cache ./config.cache checking host system type... i686-apple-darwin8.9.1 checking target system type... powerpc-apple-darwin8.9.1 checking build system type... i686-apple-darwin8.9.1กลับไปลอง
DrRider Sun, 22/04/2007 - 18:59
In reply to ไม่แน่ใจว by ezy
กลับไปลองไล่ configure script แล้ว ไม่ค่อยรู้เรื่องเท่าไหร่ :P
ว่าแ่ต่ลองระบุที่อยู่ ICU เข้าไปรึยังครับ ถ้าหากว่าไ่ม่รู้ก็ลอง
icu-config --prefix
มันจะ return ค่า prefix ออกมา (เช่นของผมอยู่ที่ /usr)บางทีบน mac อาจจะอยู่ที่ /opt/local ละมั้ง แล้วก็เอาไปเพิ่มที่
--with-icu เช่น
--with-icu=/opt/local
แถมเท่าที่เห็นนี่ยังขาด libraries อีกหลายตัวนี่ครับ
ปล. ไม่มี Mac จะลอง มีใครจะใจบุญยกเครื่องให้ลองมั่ง :P ปล2. ลองถามจ่า keng ดู เผื่อช่วยได้
ลองระบุแล
ezy Sun, 22/04/2007 - 19:36
ลองระบุแล้วครับ ออมันเคย build ด้วย cttex ผ่านมาแล้วครับ ผมเลยสงสัยว่ามันมีอะไรขาดไปอีกหรือเปล่า