基於SDL的agar1.3.3 GUI的交叉編譯。

來源:互聯網
上載者:User

SDL1.2.13 agar1.3.3 GUI的交叉編譯。 

 
第一步:

         ./configure --prefix=/opt/sdl_agar --without-gl --with-docs

 
第二步:

          修改Makefile.config檔案中的include標頭檔(主要是標準標頭檔,SDL標頭檔,jpeg標頭檔)和lib(這裡主要是標準C庫,SDL和jpeg庫)路徑為你的交叉編譯器所在的路徑。

 注意:我前面已經交叉編譯了SDL,並安裝到/opt/sdl_agar目錄下了。

第三步:

          make CC=mipsel-linux-gcc AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib CXX=mipsel-linux-g++ 

 
注意:千萬不要隨便的make clean,否則,config檔案也會被刪掉,就得重新configure,因為agar用的是BSDBuild,和autoconf完全不一樣!

-----------------------------------------------------

下面是Makefile.config修改前後的diff.

71c71

< SDL_CFLAGS=-I/opt/sdl_agar/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

---

> SDL_CFLAGS=-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

74c74

< FREETYPE_CFLAGS=-I/opt/mipseltools-gcc412-glibc261/mipsel-linux/include/freetype2

---

> FREETYPE_CFLAGS=-I/usr/include/freetype2

79,80c79,80

< JPEG_CFLAGS=-I/opt/mipseltools-gcc412-glibc261/mipsel-linux/include

< JPEG_LIBS=-L/opt/mipseltools-gcc412-glibc261/mipsel-linux/lib -ljpeg

---

> JPEG_CFLAGS=-I/usr/include

> JPEG_LIBS=-L/usr/lib -ljpeg

 
 
關鍵字(keywords):

    SDL交叉編譯,agar GUI交叉編譯,agar GUI移植。

    SDL cross compile,agar GUI cross compile,agar port to mips.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.