|
【歡呼】我終於在Ubuntu下成功安裝了Jenn3d |
初級魔法師 五級 |
octopus@phpServer:~$ cd 下載 octopus@phpServer:~/下載$ tgz zxvf jenn3d.2008_01_15.tgz Writing gzip'd tar archive to "zxvf.tgz". jenn3d.2008_01_15.tgz 3.5% 總計寫入字節數: 153600 (150KiB, 5.0MiB/s) -rw-r--r-- 1 octopus octopus 148314 2011-04-10 11:50 zxvf.tgz octopus@phpServer:~/下載$ rm zxvf.tgz octopus@phpServer:~/下載$ unzip jenn3d.2008_01_15.tgz Archive: jenn3d.2008_01_15.tgz End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of jenn3d.2008_01_15.tgz or jenn3d.2008_01_15.tgz.zip, and cannot find jenn3d.2008_01_15.tgz.ZIP, period. octopus@phpServer:~/下載$ tar -xzf jenn3d.2008_01_15.tgz octopus@phpServer:~/下載$ cd jenn3d octopus@phpServer:~/下載/jenn3d$ ls aligned_alloc.C definitions.C jenn.png makefile projection.C aligned_alloc.h definitions.h license.text menus.C projection.h aligned_vect.h drawing.C linalg.C menus.h todd_coxeter.C animation.C drawing.h linalg.h notes.text todd_coxeter.h animation.h go_game.C main.C polytopes.C trail.C COPYING go_game.h main.h polytopes.h trail.h octopus@phpServer:~/下載/jenn3d$ sudo dpkg-buildpackage [sudo] password for octopus: dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions tail: 無法打開 「debian/changelog」 讀取數據: 沒有那個文件或目錄 dpkg-buildpackage: 錯誤: debian/changelog 的尾部 提供錯誤退出狀態 1 octopus@phpServer:~/下載/jenn3d$ cd ../ octopus@phpServer:~/下載$ rm -rf jenn3d octopus@phpServer:~/下載$ tar -xzf jenn3d.2010_12_27.tgz octopus@phpServer:~/下載$ cd jenn3d.2010_12_27 octopus@phpServer:~/下載/jenn3d.2010_12_27$ vi definitions.h octopus@phpServer:~/下載/jenn3d.2010_12_27$ sudo apt-get install freeglut3-dev 正在讀取軟體包列表... 完成 正在分析軟體包的依賴關係樹 正在讀取狀態信息... 完成 freeglut3-dev 已經是最新的版本了。 下列軟體包是自動安裝的並且現在不需要了: python-sip 使用'apt-get autoremove'來卸載它們 升級了 0 個軟體包,新安裝了 0 個軟體包,要卸載 0 個軟體包,有 15 個軟體包未被升級。 octopus@phpServer:~/下載/jenn3d.2010_12_27$ sudo apt-get install libpng-dev 正在讀取軟體包列表... 完成 正在分析軟體包的依賴關係樹 正在讀取狀態信息... 完成 注意,選取 libpng12-dev 而非 libpng-dev libpng12-dev 已經是最新的版本了。 下列軟體包是自動安裝的並且現在不需要了: python-sip 使用'apt-get autoremove'來卸載它們 升級了 0 個軟體包,新安裝了 0 個軟體包,要卸載 0 個軟體包,有 15 個軟體包未被升級。 octopus@phpServer:~/下載/jenn3d.2010_12_27$ make g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o main.o main.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o linalg.o linalg.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o menus.o menus.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o todd_coxeter.o todd_coxeter.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o go_game.o go_game.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o polytopes.o polytopes.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o animation.o animation.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o projection.o projection.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o drawing.o drawing.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o trail.o trail.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o aligned_alloc.o aligned_alloc.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -DDEBUG_LEVEL=0 -DCAPTURE=24 -c -o definitions.o definitions.C g++ -O3 -ffast-math -fomit-frame-pointer -funroll-loops -pipe -o jenn main.o linalg.o menus.o todd_coxeter.o go_game.o polytopes.o animation.o projection.o drawing.o trail.o aligned_alloc.o definitions.o -lglut -lGLU -lGL -lpng octopus@phpServer:~/下載/jenn3d.2010_12_27$ ./jenn ================ Jenn. Copyright 2001-2007 Fritz Obermeyer. ================ info t/c free group built, order = 1152 info t/c cosets table built: ord = 24 info t/c edge table built: deg = 8 info t/c faces defined: order = 96 info draw drawing 24 verts, 96 edges warning main bad display mode: some features may be unavailable freeglut (./jenn): unable to parse game mode string `' info t/c free group built, order = 384 info t/c cosets table built: ord = 16 info t/c edge table built: deg = 4 info t/c faces defined: order = 24 info draw drawing 16 verts, 32 edges octopus@phpServer:~/下載/jenn3d.2010_12_27$
|
初級魔法師 五級 |
然後在把已編譯的程序從「下載」文件夾轉移到「已編譯的程序」文件夾: octopus@phpServer:~/下載/jenn3d.2010_12_27$ cd ../ octopus@phpServer:~/下載$ ls Firefox-latest.tar.bz2 jenn3d.2010_12_27 jiangouwudong.rar jenn3d.2008_01_15.tgz jenn3d.2010_12_27.tgz topic_alert.php octopus@phpServer:~/下載$ cd ../ octopus@phpServer:~$ mkdir 已編譯的程序 octopus@phpServer:~$ ls examples.desktop 公共的 視頻 文檔 已編譯的程序 桌面 Ubuntu One 模板 圖片 下載 音樂 octopus@phpServer:~$ cd 下載 octopus@phpServer:~/下載$ ls Firefox-latest.tar.bz2 jenn3d.2010_12_27 jiangouwudong.rar jenn3d.2008_01_15.tgz jenn3d.2010_12_27.tgz topic_alert.php octopus@phpServer:~/下載$ mv jenn3d.2010_12_27 ../已編譯的程序/jenn3d octopus@phpServer:~/下載$ ls Firefox-latest.tar.bz2 jenn3d.2010_12_27.tgz topic_alert.php jenn3d.2008_01_15.tgz jiangouwudong.rar octopus@phpServer:~/下載$ cd ../已編譯的程序 octopus@phpServer:~/已編譯的程序$ ls jenn3d octopus@phpServer:~/已編譯的程序$
|
|
初級魔法師 五級 |
以後就可以直接運行 /home/octopus/已編譯的程序/jenn3d/jenn
|
|
初級魔法師 五級 |
|
|
初級魔法師 五級 |
|
|
初級魔法師 五級 |
這對於我來說是第一次在linux系統下進行源碼包編譯安裝
|
|
秀才 四級 |
|
|
初級魔法師 五級 |
|
|
初級魔法師 五級 |
windows下運行jenn容易引起「沒有響應」,或者圖形又消失了。 linux下就沒有出現這些問題
|
|
初級魔法師 五級 |
我要熟記壓縮解壓命令、vi文本編輯器、以及編譯源文件的命令,免得每次都去翻書,很麻煩
|
|
125.67.191.*
|
ubuntu下「make: g++:命令未找到」解決辦法
其他技術文檔
2009-03-09 21:56:01
閱讀873
評論0
字號:大中小 訂閱
我在ubuntu下面用Qt4編譯.cpp文件時, 鍵入了 make 命令之後 出現了如下提示。。。
make: g++:命令未找到
make: *** [outlook.o] 錯誤 127
網上找資料後,找到以下解決辦法: 出現錯誤是因為沒有安裝g++編譯器,運行以下命令來安裝:
sudo apt-get install g++
應該就好了,如果還沒好,再安裝這個:
sudo apt-get install pentium-builder
|
|
125.67.191.*
|
|
|