Comments (5)
請問這個部份是只要將上面提到的 INCLUDES 替換成 AM_CPPFLAGS 即可嗎?
from libchewing.
要確定新舊 automake 都可以 build,而且沒有 warnings 就 ok 了。
from libchewing.
抱歉,我以為這裡只要做簡單的替換而已,其實我完全不懂程式方面的事 : (
我把上述 5個檔案當中的 INCLUDES 全部換成 AM_CPPFLAGS,
其中 src/porting_layer/src/Makefile.am 會變成有兩個 AM_CPPFLAGS:
AM_CPPFLAGS = \
-DLIBDIR=\"@libdir@\" \
$(NULL)
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/include/internal \
-I$(top_srcdir)/src/porting_layer/include \
$(NULL)
所以我再把兩者合併:
AM_CPPFLAGS = \
-DLIBDIR=\"@libdir@\" \
-I$(top_srcdir)/include \
-I$(top_srcdir)/include/internal \
-I$(top_srcdir)/src/porting_layer/include \
$(NULL)
最後在目錄依序執行 autoheader, aclocal, autoconf, automake --add-missing,
比較修改之前和修改之後的訊息,原本的 warning message 已經沒有了。
automake: 1:1.11.3-1ubuntu2
$ autoheader
$ aclocal
$ autoconf
$ automake --add-missing
configure.ac:7: required directory ./build-aux does not exist
configure.ac:68: installing `build-aux/compile'; error while making link: 沒有此一檔案或目錄
configure.ac:59: installing `build-aux/config.guess'; error while making link: 沒有此一檔案或目錄
configure.ac:59: installing `build-aux/config.sub'; error while making link: 沒有此一檔案或目錄
configure.ac:54: installing `build-aux/install-sh'; error while making link: 沒有此一檔案或目錄
configure.ac:59: required file `build-aux/ltmain.sh' not found
configure.ac:54: installing `build-aux/missing'; error while making link: 沒有此一檔案或目錄
doc/Makefile.am:1: installing `build-aux/mdate-sh'; error while making link: 沒有此一檔案或目錄
doc/Makefile.am:1: installing `build-aux/texinfo.tex'; error while making link: 沒有此一檔案或目錄
src/Makefile.am: installing `build-aux/depcomp'; error while making link: 沒有此一檔案或目錄
automake: 1:1.14-2
$ autoheader
$ aclocal
$ autoconf
$ automake --add-missing
configure.ac:7: error: required directory ./build-aux does not exist
configure.ac:59: error: installing 'build-aux/compile'; error while making link: 沒有此一檔案或目錄
configure.ac:59: error: installing 'build-aux/config.guess'; error while making link: 沒有此一檔案或目錄
configure.ac:59: error: installing 'build-aux/config.sub'; error while making link: 沒有此一檔案或目錄
configure.ac:54: error: installing 'build-aux/install-sh'; error while making link: 沒有此一檔案或目錄
configure.ac:59: error: required file 'build-aux/ltmain.sh' not found
configure.ac:54: error: installing 'build-aux/missing'; error while making link: 沒有此一檔案或目錄
doc/Makefile.am:1: error: installing 'build-aux/mdate-sh'; error while making link: 沒有此一檔案或目錄
doc/Makefile.am:1: error: installing 'build-aux/texinfo.tex'; error while making link: 沒有此一檔案或目錄
src/Makefile.am: error: installing 'build-aux/depcomp'; error while making link: 沒有此一檔案或目錄
src/tools/Makefile.am:13: warning: source file '$(top_srcdir)/src/common/chewing-utf8-util.c' is in a subdirectory,
src/tools/Makefile.am:13: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/tools/Makefile.am:13: warning: source file '$(top_srcdir)/src/common/key2pho.c' is in a subdirectory,
src/tools/Makefile.am:13: but option 'subdir-objects' is disabled
parallel-tests: error: installing 'build-aux/test-driver'; error while making link: 沒有此一檔案或目錄
from libchewing.
你可以直接跑 autogen.sh 來產生 configure,不需要打 autotools 的 commands。
如果一切順利,請幫忙發個 pull request,感謝。
from libchewing.
跑完 autogen.sh 之後,同樣有 option 'subdir-objects' is disabled 的警告訊息。
再打 ./configure 沒有 error 或 warning.
最後打 make ,出現:
chewingutil.c: In function 'InitSymbolTable':
chewingutil.c:1293:2: warning: implicit declaration of function 'asprintf' [-Wimplicit-function-declaration]
from libchewing.
Related Issues (20)
- feat: expose dictionary block list via C API
- test: ensure C to Rust switch is API and ABI compatible HOT 1
- refactor(dictionary): disable sqlite auto checkpointing HOT 1
- feat(dictionary): set application_id and user_version for sqlite db
- Integrate with bors-ng
- Improve cache locality the new trie format
- 希望能提高新增詞彙時的freq值跟手動調高的方式
- All internal methods that can do blocking IO should have timeout HOT 1
- Change dirs-next dependency to directionaries
- 希望整合Fcitx 5的全形模組 HOT 2
- DVORAK的錯誤 HOT 3
- 提議開放這個 Repository 的 Discussion 版面。 HOT 2
- Request for documentation patch for the current status
- A Smooth Transition to Rust - Documenting Existing Development Workflow.
- 在高解析度螢幕下使用時選字清單會變得很小 HOT 2
- Revise minimum supported Rust version policy HOT 1
- Experiment with pure rust build with redb backend HOT 6
- Cargo-build Failure on compiling the commit 197b70. HOT 1
- Potential to break libchewing compatibility when adding new keyboard layout HOT 3
- feat: add Colemak-DH ANSI/Orth Keyboard Layout HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libchewing.