顯示具有 build 標籤的文章。 顯示所有文章
顯示具有 build 標籤的文章。 顯示所有文章

2022年11月11日 星期五

Build Eclipse 32bit C/C++ projects on a 64-bit system

 [] In eclips project explorer,Add extra "-m32" for both compiler and linker

Project->Properties --> C/C++ Build --> Settings 

-->Tool settings 

  -->gcc c compiler --> command: gcc -m32

  -->gcc c linker --> command: gcc -m32


[] extra Required Packages: add some as you need

Installing the following packages enabled standard C/C++ library calls to work. If other libraries are used within the code, additional 32-bit packages might have to be installed. Installation via Linux Mint, based on Ubuntu, is via the standard apt-get install command.

$sudo apt-get install g++-multilib lib32gcc1 libc6-i386 lib32z1 lib32stdc++6

$sudo apt-get install lib32asound2 lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev

This might also be required if the code still does not compile:

$sudo apt-get install ia32-libs-gtk

After adding the suggested package libc6-dbg, the error still occurred. Installing the 32-bit version of the package fixed the error:

$sudo apt-get install libc6-dbg:i386

[]rember clean project befor first time compile new bitwidth-archecture


2021年5月5日 星期三

build geany from geany.git

OS: Ubuntu 18.04  64bit

### ### ###
### install from geany ppa too
$ sudo add-apt-repository ppa:geany-dev/ppa
$ sudo apt-get update
$ sudo apt-get install geany geany-plugins

### end session



### ### ###
### build from source code : geany.git
###
$ cd ~/jeffer
$ git clone https://github.com/geany/geany.git
$ cd geany
$ git reset 1.37.1
~/jeffer/geany$ ./autogen.sh 

**Error**: You must have `intltool' installed.
**Error**: You must have `glib' installed.
You must have pkg-config installed to compile .
$ sudo apt-get install pkg-config
$ sudo apt install intltool
$ sudo apt install libglib2.0-dev
$ ./autogen.sh
$ apt search libgtk-3   

###  libgtk-3-dev
$ sudo apt install libgtk-3-dev
$ ./autogen.sh

configure: error: Documentation enabled but rst2html not found.

#### open another terminal to another directory
#### from https://pypi.org/project/rst2html/
#### download rst2html-2020.7.4.tar.gz (1.5 kB)
$ tar xvf rst2html-2020.7.4.tar.gz
$ sudo pip install rst2html

The directory '/home/jeffer/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jeffer/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rst2html
  Downloading https://files.pythonhosted.org/packages/29/8e/050653d3f88c7c0ef3ba6df84421dc022d84f152e2c84fc23d49b2d60d1f/rst2html-2020.7.4.tar.gz
Collecting docutils (from rst2html)
  Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
    100%  
Installing collected packages: docutils, rst2html
  Running setup.py install for rst2html ... done
Successfully installed docutils-0.17.1 rst2html-2020.7.4

####
#### back to /geny  folder terminal
####
$ ./autogen.sh
.......
Install Geany in                   : /usr/local
Compiling Git revision             : 26f4813f
Using GTK version                  : 3.22.30
Enable binary relocation           : no
Build with plugin support          : yes
Use (UNIX domain) socket support   : yes
Use virtual terminal support (VTE) : yes
Build HTML documentation           : yes
Build PDF documentation            : no
Build API documentation            : no
Generate GtkDoc header             : no
Configuration is done OK.
Now type 'make' to compile.
$ ./configure
    ### Makefile  use GCC flag  use  -O0 -g3 to maximize debug info
$ make
### whereis execute file .../geany/src/.lib/geany
$ sudo make install

### $ make clean   ### to make sure clean
### entry point is main.c main()
### I untar  eclipse-cpp-2021-03-R-linux-gtk-x86_64.tar.gz  to a  folder , run eclipse, import geany project , It can debug.

2015年7月3日 星期五

must modify to compile iVerilog 2015-07-01 HEAD version

Below change is for Mingw32 to build icarus iverilog 2015-07-01 git HEAD version
and mingw must have pthread dev package installed


\MinGW\msys\1.0\home\lcf\iverilog\config.h (3 hits)
    Line 38: // lcf
    Line 41: // lcf
    Line 44: // lcf
# undef HAVE_TIMES
//# undef HAVE_IOSFWD
#define HAVE_IOSFWD
// lcf
//# undef HAVE_GETOPT_H
#define HAVE_GETOPT_H
// lcf
// # undef HAVE_INTTYPES_H
#define HAVE_INTTYPES_H
// lcf
# undef HAVE_LIBIBERTY_H


   
\MinGW\msys\1.0\home\lcf\iverilog\libveriuser\config.h (1 hit)
    Line 42: // lcf

#include  stdint.h     // angle bracket
// lcf
#endif /* IVL_config_H */   


   
\MinGW\msys\1.0\home\lcf\iverilog\libveriuser\priv.h (1 hit)
    Line 24: // lcf
# include  stdio.h   // angle bracket
#include "config.h"
// lcf   



\MinGW\msys\1.0\home\lcf\iverilog\vhdlpp\vhdlpp_config.h (1 hit)
    Line 33: // lcf
// # undef HAVE_GETOPT_H
#define HAVE_GETOPT_H
// lcf
// # undef HAVE_INTTYPES_H
#define HAVE_INTTYPES_H
   

   
\MinGW\msys\1.0\home\lcf\iverilog\vpi\sys_priv.h (1 hit)
    Line 25: // lcf
#include  stdint.h    // angle bracket
// lcf   
   
   
   
\MinGW\msys\1.0\home\lcf\iverilog\vvp\config.h (3 hits)
    Line 43: // lcf
    Line 49: // lcf
    Line 56: // lcf
// # undef HAVE_IOSFWD
#define HAVE_IOSFWD
// lcf

# undef HAVE_DLFCN_H
# undef HAVE_DL_H
// # undef HAVE_GETOPT_H
#define HAVE_GETOPT_H
// lcf
# undef HAVE_LIBREADLINE
# undef HAVE_READLINE_READLINE_H
# undef HAVE_LIBHISTORY
# undef HAVE_READLINE_HISTORY_H
// # undef HAVE_INTTYPES_H
#define HAVE_INTTYPES_H
// lcf

食用油

豆大芥小 加熱均 又非橄㰖 造假多 油麻菜籽 螻蟻命 自求多福 身安康 目前 我推 芥花油,較耐高溫. 從成份上來看 橄㰖>芥花>大豆 . 從CP/造假上來看 又不推 高價 橄㰖了, 可能 摻其它大豆等油/加色素等, 最近新聞 數千公頓大豆 不知所踪, 合理推測, 是...