Giter Club home page Giter Club logo

Comments (5)

hiunnhue avatar hiunnhue commented on June 12, 2024

請問這個部份是只要將上面提到的 INCLUDES 替換成 AM_CPPFLAGS 即可嗎?

from libchewing.

czchen avatar czchen commented on June 12, 2024

要確定新舊 automake 都可以 build,而且沒有 warnings 就 ok 了。

from libchewing.

hiunnhue avatar hiunnhue commented on June 12, 2024

抱歉,我以為這裡只要做簡單的替換而已,其實我完全不懂程式方面的事 : (

我把上述 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.

czchen avatar czchen commented on June 12, 2024

你可以直接跑 autogen.sh 來產生 configure,不需要打 autotools 的 commands。

如果一切順利,請幫忙發個 pull request,感謝。

from libchewing.

hiunnhue avatar hiunnhue commented on June 12, 2024

跑完 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.