FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    How to write Makefile when cross-compiling migration?

     

    Add a corresponding file in Demo's makefile, the corresponding SRC, the directory of the CPP file is to be included, so that you are hungry, the path of the static library is an absolute path! ! ! This can be passed through. Take S3C6410 as an example. At this time, ARM-NONE-Linux-GNueabi-4.3.2 has been installed. First, place the same kernel source code on the kernel on the board to any directory, such as /usr/src/s3c-linux-2.6.28.6-Real6410. (The kernel source code needs to be configured, and the board is included in the CD, which is generally configured, and it is simple to modify it) Perform Make or. / build. I have encountered an error, I can't find the XX file. Check out, the specified directory is this file. Make clean again. / build is OK. Write the Makefile file in the target code directory that needs to be compiled, the content is as follows: Cross_compile: = arm-linux- Arch: = ARM CC: = $ (cross_compile) GCC LD: = $ (Cross_Compile) LD Obj-m: = udpcli.o KernelDir: = /usr/src/s3c-linux-2.6.28.6-Real6410 PWD: = $ (Shell PWD) Modules: $ (MAKE) -C $ (kerneldir) M = $ (PWD) Modules Modules_Install: $ (MAKE) -C $ (kerneldir) M = $ (PWD) Modules_Install Clean: RM -F * .O Rm -f * .symvers RM -F * .order Rm -f * .ko RM -F * .MOD.C If you find a good Linux C language program while browsing GitHub, it is very easy to use in the desktop platform. At this time, you want to put it on the OpenWRT platform to use it on the router, then if you can compile it It is good to install directly into the router into the IPK file. The following will introduce the Makefile Writing of the RedSocks2 IPK Installation Package with Ubuntu by RedSocks2 software. The reason for choosing Redsocks2 is the reason for the RedSocks. This program only needs to run Make. You can start compiling, no complex compile time configuration, and then generate an executable named RedSocks2 after compiling, copy this file to disk Other places can be run. That is, RedSocks2 is a very easy program that compiles. Compilation Complete You can start using just a executable. The following is first observed on the ubuntu16.04 system. First of all, we have the source code of the redsocks2 from Github [Plain] View Plain Copygit Clone https://github.com/semigodking/redsocks.git After the clon is completed, install a dependency libevent2, otherwise it will be reported when compiling "Fatal Error: Event2 / Event.h: No file or directory" Sudo Apt-Get Install LibEvent-Dev Then observe the current redsocks2 directory Be Then execute make, GCC starts to be compiled. After the compilation is complete, then observe this directory, you will find that you will have more redsocks2 executable, we can copy this executable file and then run it. Be In the Ubuntu, it is very simple to compile the RedSocks2, then how to compile into IPK on the SDK of OpenWRT? First download OpenWRT's SDK, here is also the WNDR4300 router as an example. Be After downloading, use TAR XJF OpenWRT-SDK-AR71XX-for-Linux-x86_64-GCC-4.8-linaro_uclibc-0.9.33.2.tar.bz2 Be Unzip this TAR package, then enter the main directory of the SDK, create a directory named Redsocks2 in the package directory, and then start to create a Makefile file, the content is as follows INCLUDE $ (TOPDIR) /Rules.mk PKG_NAME: = redsocks2 PKG_Version: = 0.66 PKG_RELEASE: = 1 PKG_Source_Proto: = Git Pkg_source_url: = https: //github.com/semigodking/redsocks.git Pkg_source_subdir: = $ (pkg_name) - $ (pkg_version) PKG_SOURCE_VERSION: = BC2706A331C04A76DF428748DA97A7D4B5FA1754 Pkg_source: = $ (pkg_name) - $ (pkg_version) - $ (pkg_source_version) .tar.gz PKG_MAINTAINER: = SemigodKing "[email protected]" PKG_BUILD_DIR: = $ (build_dir) / $ (build_variant) / $ (pkg_name) - $ (pkg_version) INCLUDE $ (incrude_dir) /Package.mk Define package / redsocks2 Section: = Net Category: = network Title: = Redirect Any TCP Connection to a Socks or Https Proxy Server URL: = https: //github.com/semigodking/redsocks Depends: = + LIBEVENT2 + LIBOPENSSL Endef Define package / redsocks2 / description This Is A Modified Version of Original Redsocks. \ The name is change to be redsocks2 Since this Release to distinguish with original redsocks. \ This Variant Is Useful for Anti-GFW (Great Fire Wall). Endef Define package / redsocks2 / conffiles / Etc / config / redsocks2 Endef Define package / redsocks2 / install $ (Install_dir) $ (1) / usr / bin $ (Install_bin) $ (PKG_BUILD_DIR) / RedSocks2 $ (1) / USR / BIN $ (Install_dir) $ (1) / etc / redsocks2 $ (Install_data). /files/redsocks2.template $ (1) /etc/redsocks2/config.template Endef $ (Eval $ (Call Buildpackage, Redsocks2), Technology Zone MYBATIS Dynamic SQL Detailed Design the HDB3 encoder in the data transmission system with VHDL language How does the bare metal program drive hardware? What is the seniors say? Typical examples of object-oriented programming SOC principles Introduction to Java Common Development Tools for Embedded Development

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us