Fedora Core 7下wxWidgets与DialogBlocks安装

 

安装wx_Widgets步骤:


/**


// 下面中内容是由于U盘始终无法挂载才采用的挂载硬盘,挂载U盘也行,linux下能上网就不用这么麻烦跳过就是,这里是采用的第一种,可以直接挂载U,能自动挂载,也可手动进入计算机里找到盘右键选挂载或文件卷,卸载也一样。


若无法手动和自动挂载则用命令挂载和卸载如下:


[root@localhost ~]# mkdir /mnt/usb

[root@localhost ~]# mount /dev/sdb1 /mnt/usb

[root@localhost ~]# umount /dev/sdb1


开始:


wxWidgets-2.8.6.tar.gz拷贝到WINDOWS XP 下那个放置linux那个ISO文件的地方直接解压到当前目录(E:盘下,就是linux下 的/dev/sda6,这个下面的 命令要用时可能需要修改,如果不是E),然后将/dev/sda6挂载到/mnt/mountpoint





[root@localhost ~]# mkdir /mnt/mountpoint

[root@localhost ~]# mount /dev/sda6 /mnt/mountpoint

[root@localhost ~]# ls /mnt/mountpoint

1.doc ld.so.conf Recycled wxWidgets-2.8.6 犬夜叉

F-7-i386-DVD(1).iso linux WINGRB0206.EXE wxWidgets-2.8.6.tar.gz 影片



**/ 开始前面只作说明


然后到/mnt/mountpointwxWidgets-2.8.6.tar.gz文件夹复制到桌面上并解压到wxWidgets-2.8.6文件夹(这里全手动,没用命令),然后进入该目录编译安装




[root@localhost ~]# cd '/root/Desktop/wxWidgets-2.8.6'

[root@localhost wxWidgets-2.8.6]# ls

acinclude.m4 docs Makefile.in tests

aclocal.m4 include misc utils

art install-cocoa.txt mkinstalldirs version-script.in

autoconf_inc.m4 install-dfb.txt readme-cocoa.txt wxBase.spec

autogen.sh install-gtk.txt readme-gtk.txt wx-config.in

build install-mac.txt readme-mac.txt wx-config-inplace.in

BuildCVS.txt install-mgl.txt readme-mgl.txt wxGTK.spec

config.guess install-motif.txt readme-motif.txt wxMGL.spec

config.sub INSTALL-MSW.txt README-MSW.txt wxMotif.spec

configure INSTALL-OS2.txt readme-x11.txt wxwin.m4

configure.in install-sh regen wxX11.spec

contrib install-x11.txt samples

demos lib setup.h.in

distrib locale src

[root@localhost wxWidgets-2.8.6]# ./configure 这里不知有问题没可用 ./configure --with-gtk

[root@localhost wxWidgets-2.8.6]# make

[root@localhost wxWidgets-2.8.6]# make install




配置动态库得导入路径:

/usr/local/lib 这一行加入到ld.so.conf文件后面,这个文件在'/etc/ld.so.conf'


也可用vim进行修改:

[root@localhost ~]# vi /etc/ld.so.conf


进入vim以后,输入小写字母o,在该行下面插入一个空行(dd则用来删除整行);输入/usr/local/lib;按Esc退出插入模式(u命令则撤销最后一次修改);最后输入:wq或是Shift+zz命令保存修改并退出




命令ldconfig(让系统重新配置动态库文件导入的顺序)


[root@localhost ~]# ldconfig




检验安装是否成功:


[root@localhost ~]# cd /usr/local/bin

[root@localhost bin]# ls wx-config

wx-config

[root@localhost bin]#


若存在wx-config则运行wx-config --cxx,否则则没安装成功


[root@localhost bin]# wx-config --cxx

g++


[root@localhost bin]# wx-config --version

2.8.6

[root@localhost bin]# wx-config --prefix

/usr/local


选项可用wx-config --help查看

[root@localhost ~]# wx-config --help


wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]

[--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]

[--universal[=yes|no]] [--unicode[=yes|no]] [--debug[=yes|no]]

[--static[=yes|no]] [--version[=VERSION]] [--basename] [--cc]

[--cppflags] [--cflags] [--cxxflags] [--rescomp] [--libs] [--cxx]

[--ld] [--linkdeps] [--utility=UTIL] [LIB ...]


wx-config returns information about the wxWidgets libraries available on

your system. It may be used to retrieve the information required to build

applications using these libraries using --cppflags, --cflags, --cxxflags

and --libs options.


If multiple builds of wxWidgets are available, you can use the options

--prefix, --host, --toolkit, --unicode, --debug, --static, --universal and

--version to select from them. The --selected-config option shows the name

of the current configuration and --list shows available alternatives which

match specified criteria. The --utility option returns the correct version

of UTIL to use with the selected build. The --linkdeps option returns only

static libraries for your makefile link rule dependencies.


Optional LIB arguments (comma or space separated) may be used to specify

the wxWidgets libraries that you wish to use. The magic "std" label may

be used to import all libraries that would be used by default if none were

specified explicitly, e.g. wx-config --libs core,base.


[root@localhost ~]#






查看安装的文件:


[root@localhost bin]# cd /usr/local

[root@localhost local]# ls

bin etc games include lib libexec sbin share src

[root@localhost local]# ls ./lib

libwx_based-2.8.so libwx_gtk2d_adv-2.8.so.0.3.0 libwx_gtk2d_qa-2.8.so.0

libwx_based-2.8.so.0 libwx_gtk2d_aui-2.8.so libwx_gtk2d_qa-2.8.so.0.3.0

libwx_based-2.8.so.0.3.0 libwx_gtk2d_aui-2.8.so.0 libwx_gtk2d_richtext-2.8.so

libwx_based_net-2.8.so libwx_gtk2d_aui-2.8.so.0.3.0 libwx_gtk2d_richtext-2.8.so.0

libwx_based_net-2.8.so.0 libwx_gtk2d_core-2.8.so libwx_gtk2d_richtext-2.8.so.0.3.0

libwx_based_net-2.8.so.0.3.0 libwx_gtk2d_core-2.8.so.0 libwx_gtk2d_xrc-2.8.so

libwx_based_xml-2.8.so libwx_gtk2d_core-2.8.so.0.3.0 libwx_gtk2d_xrc-2.8.so.0

libwx_based_xml-2.8.so.0 libwx_gtk2d_html-2.8.so libwx_gtk2d_xrc-2.8.so.0.3.0

libwx_based_xml-2.8.so.0.3.0 libwx_gtk2d_html-2.8.so.0 wx

libwx_gtk2d_adv-2.8.so libwx_gtk2d_html-2.8.so.0.3.0

libwx_gtk2d_adv-2.8.so.0 libwx_gtk2d_qa-2.8.so

[root@localhost local]#


[root@localhost local]# ls ./include

wx-2.8

[root@localhost local]# ls ./include/wx-2.8

wx

[root@localhost local]# ls ./include/wx-2.8/wx

aboutdlg.h colour.h display.h gauge.h ioswrap.h panel.h spinctrl.h treebook.h

accel.h combobox.h display_impl.h gbsizer.h ipcbase.h paper.h splash.h treectrl.h

access.h combo.h dlimpexp.h gdicmn.h ipc.h pen.h splitter.h txtstrm.h

afterstd.h confbase.h dnd.h gdiobj.h isqlext.h pickerbase.h srchctrl.h types.h

anidecod.h config.h docmdi.h generic isql.h platform.h sstream.h unix

animate.h containr.h docview.h geometry.h joystick.h platinfo.h stack.h uri.h

animdecod.h control.h dragimag.h gifdecod.h layout.h popupwin.h stackwalk.h url.h

app.h convauto.h dynarray.h glcanvas.h laywin.h power.h statbmp.h utils.h

apptrait.h cpp.h dynlib.h graphics.h link.h printdlg.h statbox.h valgen.h

archive.h cshelp.h dynload.h grid.h listbase.h print.h statline.h validate.h

arrimpl.cpp ctrlsub.h effects.h gsocket.h listbook.h prntbase.h stattext.h valtext.h

arrstr.h cursor.h encconv.h gtk listbox.h process.h statusbr.h variant.h

artprov.h dataobj.h encinfo.h hash.h listctrl.h progdlg.h stdpaths.h vector.h

aui dataview.h event.h hashmap.h list.h propdlg.h stockitem.h version.h

beforestd.h datectrl.h evtloop.h hashset.h listimpl.cpp protocol stopwatch.h vidmode.h

bitmap.h dateevt.h except.h helpbase.h log.h ptr_scpd.h strconv.h vlbox.h

bmpbuttn.h datetime.h fdrepdlg.h help.h longlong.h quantize.h stream.h vms_x_fix.h

bmpcbox.h datstrm.h features.h helphtml.h math.h radiobox.h string.h volume.h

bookctrl.h dbgrid.h ffile.h helpwin.h matrix.h radiobut.h sysopt.h vscroll.h

brush.h db.h fileconf.h html mdi.h rawbmp.h tabctrl.h wave.h

buffer.h dbkeyg.h filedlg.h htmllbox.h mediactrl.h recguard.h tab.h wfstream.h

build.h dbtable.h filefn.h hyperlink.h memconf.h regex.h tarstrm.h window.h

busyinfo.h dcbuffer.h file.h iconbndl.h memory.h region.h taskbar.h wizard.h

button.h dcclient.h filename.h icon.h memtext.h renderer.h tbarbase.h wupdlock.h

calctrl.h dcgraph.h filepicker.h iconloc.h menu.h richtext textbuf.h wxchar.h

caret.h dc.h filesys.h imagbmp.h menuitem.h sashwin.h textctrl.h wx.h

checkbox.h dcmemory.h fmappriv.h image.h metafile.h sckaddr.h textdlg.h wxhtml.h

checklst.h dcmirror.h fontdlg.h imaggif.h mimetype.h sckipc.h textfile.h wxprec.h

chkconf.h dcprint.h fontenc.h imagiff.h minifram.h sckstrm.h tglbtn.h xml

choicdlg.h dcps.h fontenum.h imagjpeg.h module.h scopeguard.h thread.h xpmdecod.h

choicebk.h dcscreen.h font.h imaglist.h msgdlg.h scrolbar.h thrimpl.cpp xpmhand.h

choice.h dde.h fontmap.h imagpcx.h msgout.h scrolwin.h timer.h xrc

clipbrd.h debug.h fontpicker.h imagpng.h mstream.h selstore.h tipdlg.h xti.h

clntdata.h debugrpt.h fontutil.h imagpnm.h notebook.h settings.h tipwin.h xtistrm.h

clrpicker.h defs.h frame.h imagtga.h numdlg.h sizer.h tokenzr.h xtixml.h

cmdline.h dialog.h fs_arc.h imagtiff.h object.h slider.h toolbar.h zipstrm.h

cmdproc.h dialup.h fs_filter.h imagxpm.h odcombo.h snglinst.h toolbook.h zstream.h

cmndata.h dirctrl.h fs_inet.h init.h overlay.h socket.h tooltip.h

collpane.h dirdlg.h fs_mem.h intl.h ownerdrw.h sound.h toplevel.h

colordlg.h dir.h fs_zip.h iosfwrap.h palette.h spinbutt.h treebase.h

[root@localhost local]#




OK





安装DialogBlocks步骤:



将下载下来的DialogBlocks-4.18-i386.tar.gz解压到一个目录(这里是放在/root/DialogBlocks-4.18-i386.tar.gz_FILES,将压缩包放到/root,右键点‘解压缩到此处‘),然后进入这个目录:

进入目录开始安装:

[root@localhost ~]# cd '/root/DialogBlocks-4.18-i386.tar.gz_FILES'

[root@localhost DialogBlocks-4.18-i386.tar.gz_FILES]# ls

DialogBlocksData.tar.gz installdb


[root@localhost DialogBlocks-4.18-i386.tar.gz_FILES]# ./installdb


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

Welcome to the DialogBlocks 4.18 installation.

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


This script will install DialogBlocks from the archive:


DialogBlocksData.tar.gz


Select the directory to install DialogBlocks into

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


This is where the binaries and data will be copied to.

They can go anywhere you want, but make sure you have the

appropriate permissions if copying outside your home area.


Current value: /root/DialogBlocks-4.18


New directory: (return for existing value):

/root/DialogBlocks

Select the directory to install the launch script into.

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


We will create a script called dialogblocks which will

invoke the application. You may wish to place this in your

local bin directory, or it can be placed in the DialogBlocks

install directory (the default location).


Current value: /root/bin


New directory: (return for existing value):

~/bin


The directory to install the applications to is /root/DialogBlocks.

The directory to install the launch script to is /root/bin.


Please check these settings carefully.

Are they correct? (y/n/Ctrl-C to quit)


y

Unarchiving /root/DialogBlocks-4.18-i386.tar.gz_FILES/DialogBlocksData.tar.gz

Wrote /root/bin/dialogblocks

Wrote /root/Desktop/DialogBlocks-4.18.desktop


*** Success! DialogBlocks was installed.


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

DialogBlocks 4.18 Installation Menu

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


Please type a number followed by return to choose an option:


1) Install DialogBlocks and its launch script (done).

2) View the readme, with a few words of introduction.

3) Launch DialogBlocks.

4) Change the application installation directory.

5) Change the launch script installation directory.

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

0) Exit from installation.






桌面上生成一个DialogBlocks 4.18的快捷方式,然后打开它进行配置wx_Widgets(点Run Setup Wizard,破解注册(help菜单下点 Register DialogBlocks,拷贝粘贴生成的name registration key

注册名与注册key


xinke

6B708EC2-1E9EB618-14875194



xinke0501

B0C8E5A7-90AA17A6-965E278D
















############# 安装文件的关于绝对路径和相对路径的问题 #####################



安装文件的关于绝对路径和相对路径的问题:在旧版本4.15Select the directory to install DialogBlocks into是相对于pwd(不是Current value: /root/DialogBlocks-4.18的)的相对路径,在这个版本中是绝对路径;在新版本4.18Select the directory to install the launch script into是是相对于pwd的相对路径若你用的是./,所以在4.18版本中不要用诸如./,../,之类的,但在4.15版本中Select the directory to install DialogBlocks into时必须得是相对路径(否则生成的文件夹都在pwd下),混杂啊!我都说晕了,总之是在4.15版本中想在终端直接输dialogblocks运行DialogBlocks没成功,不管怎样(如下所示),而在4.18版本中用绝对路径就一切没问题。




[root@localhost ~]# PATH=~/bin:.:$PATH

[root@localhost ~]# $PATH

bash: /root/bin:.:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: 没有那个文件或目录

[root@localhost ~]# dialogblocks

/root/bin/dialogblocks: line 4: ../DialogBlocks/dialogblocks: 没有那个文件或目录re

[root@localhost ~]# ls

anaconda-ks.cfg Documents Pictures

bin Download Public

Desktop install.log Templates

DialogBlocks install.log.syslog Videos

DialogBlocks-4.15-i386-gtk2-unicode.tar.gz_FILES Music

[root@localhost ~]#









############### Run Setup Wizard配置wx_Widgets 的问题 ##################



提示没找到version.h文件,然而我装wx_Widgets

[root@localhost ~]# wx-config --version

2.8.6

[root@localhost ~]# wx-config --prefix

/usr/local

[root@localhost ~]#


4.18版本中用下面那个好像能行,一路下去没问题我就没看了




注册的那个它是提示成功,注册机是在http://www.4x4y.com/下载的,版本不一定要一样。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值