zoukankan      html  css  js  c++  java
  • linux下编译bochs-2.6.2

    操作系统: Fedora19

    内核: 3.12.9

    Linux localhost.localdomain 3.12.9-201.fc19.i686 #1 SMP Wed Jan 29 16:02:15 UTC 2014 i686 i686 i386 GNU/Linux


    $ tar zxvf bochs-2.6.2.tar.gz

    $ ./configure --enable-debugger --enable-disasm   ## 打开编译功能和反汇编

    $ make

    $ sudo make install 


    关于make报错:

    1,没有多线程库

    /usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
    /usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
    /lib/libpthread.so.0: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make: *** [bochs] Error 1

    解决方法:

    打开Makefile,在92行左右找到 LIBS = 。。。一行,在这一行最后面添加 -lpthread

    (注意修改完成之后不能重新configure,不然添加的-lpthread会消失,添加后直接make就可以了)


    由于个人系统安装软件的不同,我在安装过程中还遇到下面的问题:

    1.没有c++编译器

    $ sudo yum install gcc-c++.i686

    2.没有找到gtk头文件

    $ sudo yum install gtk2-devel.i686

  • 相关阅读:
    javascript命名规范
    angularjs指令参数transclude
    angular中的compile和link函数
    angularjs中的directive scope配置
    sublime text3同时编辑多行
    jquery中on/delegate的原理
    defered,promise回顾
    导航栏滚动到顶部后固定
    angularjs揭秘
    $stateParams
  • 原文地址:https://www.cnblogs.com/huiqin/p/3674843.html
Copyright © 2011-2022 走看看