Tag Archives: Compile

Debian9 g++ Compile Error: error: ‘EDOM’ was not declared in this scope

In file included from /usr/include/c++/6/bits/basic_string.h:5417:0,
                 from /usr/include/c++/6/string:52,
                 from ../../../linux/../Include/I2Str.h:3,
                 from ../../../linux/../Include/trk_CfgMgr.h:11,
                 from ../../../linux/../Include/trk_svc_policy.h:10,
                 from trk_svc_tk_policy_sync.cpp:9:
/usr/include/c++/6/ext/string_conversions.h: In function ‘_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...)’:
/usr/include/c++/6/ext/string_conversions.h:72:25: error: ‘ERANGE’ was not declared in this scope
       else if (errno == ERANGE
                         ^~~~~~
In file included from /usr/include/c++/6/system_error:39:0,
                 from /usr/include/c++/6/bits/ios_base.h:46,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from ../../../linux/../Include/I2Str.h:4,
                 from ../../../linux/../Include/trk_CfgMgr.h:11,
                 from ../../../linux/../Include/trk_svc_policy.h:10,
                 from trk_svc_tk_policy_sync.cpp:9:
/usr/include/x86_64-linux-gnu/c++/6/bits/error_constants.h: At global scope:
/usr/include/x86_64-linux-gnu/c++/6/bits/error_constants.h:47:35: error: ‘EDOM’ was not declared in this scope
       argument_out_of_domain =    EDOM,
                                   ^~~~
/usr/include/x86_64-linux-gnu/c++/6/bits/error_constants.h:75:34: error: ‘EILSEQ’ was not declared in this scope
       illegal_byte_sequence =    EILSEQ,
                                  ^~~~~~
/usr/include/x86_64-linux-gnu/c++/6/bits/error_constants.h:148:32: error: ‘ERANGE’ was not declared in this scope
       result_out_of_range =    ERANGE,

 

Solution:
Add #include <errno.h>

How to Solve Error: libproxychains4.So error

when compiling proxychains ng project, “libproxychains4.So error” is reported
the reason for this is that there is no libproxychains 4.so library file on the current system. You can install a lower version of proxychains ng to solve this problem, such as proxychains ng v4.11. Here, take the example of installing proxychains ng v4.11 on the MAC system.

1 download proxychains ng v4.11

address: https://github.com/rofl0r/proxychains-ng/archive/refs/tags/v4.11.zip

2 disable SIP function

if your system is a MAC system (Apple System), please disable the SIP function. If not, ignore this section
open the black box console and enter the following commands in sequence

2.1 restart the system

sudo reboot

2.2 disable SIP in the system recovery interface

## 1) Boot up and press Option key to enter the system interface
## 2) Press and hold Command + R key to enter the system recovery interface
## 3) In [Tools] â€" [Terminal], enter the command.
csrutil disable
reboot 

2.3 viewing SIP

csrutil status

if “system integrity protection status: disabled.” is printed, it indicates that SIP has been closed.

3 install and configure proxychains

3.1 compiling and installing proxychains

cd proxychains-ng-4.11
./configure --prefix=/usr --sysconfdir=/etc
sudo make && make install
sudo make install-config

3.2 setting proxychains parameters

a) modify proxychains parameter

## Enter the configuration directory
cd /etc

## configuration file
sudo cp proxychains.conf proxychains.conf.bak

## Modify the configuration
sudo vi proxychains.conf

in the [proxylist] field of proxychains.conf file, disable Socks4 and enable Socks5, as follows:
// proxychains.conf

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
#socks4 	127.0.0.1 9050 ##Comment out sock4
socks5 127.0.0.1 XXXX ## Fill in this field

b) alias proxychains

sudo vi ~/.zshrc

## Add an alias to ~/.zshrc
alias pc4='proxychains4'

## Enabling configuration
source ~/.zshrc

c) test ProxyChain

pc4 curl cip.cc

the effect is as follows:

Figure (1) proxychain 4 runs successfully

 

 

Visual Studio 2010 compilation error fatal error lnk1123: failed during conversion to coff: solution to invalid or corrupt file

VS2010 environment compilation encountered a fatal error lnk1123: failure during conversion to coff: invalid or corrupt file, fatal error lnk1123: failure during conversion to coff.

Here are some solutions:

Option 1:

Click “project” – & gt; “Properties” – & gt; “Inventory tool”,

Then select “input and output” – & gt; “embedded list”, and change the following “yes” to “no”

Option 2:

Search the vs installation directory for cvtres.exe

Two cvtres.exe files were found, including

Some netizens chose to overwrite all the old cvtres.exe with the latest file, and some netizens deleted the old cvtres.exe file

Change the name for the recovery environment. Note that the two files have the same version number, but the generation time is only 1 hour. Select the latest one. There are also many cvtres.exe searches

I don’t know. Try how to delete these files. My two file directories are as follows:

D:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64

D:\Program Files (x86)\Microsoft VisualStudio 10.0\VC\bin

Option 3:

Even if the new VS2010 Sp1 is installed, this method can also solve some of this problem.

What’s more troublesome is that this Sp1 is still relatively large, and all the messy things have to be patched.

= division line of sigh ===========

Related resources: lnk1123: failure during conversion to coff: solution to invalid or corrupt file _lnk1123

Lnk1123: failure during conversion to coff: solution to invalid or corrupt file
original link: https://blog.csdn.net/weixin_39951018/article/details/111739349

[Solved] error: external/googletest/googletest: MODULE.TARGET.STATIC_LIBRARIES.libgtest already defined

Android9.0 System compilation error
170/978] including external/google-tv-pairing-protocol/Android.mk …
[171/978] including external/googletest/Android.mk …
build/make/core/base_rules.mk:260: error: external/googletest/googletest: MODULE.TARGET.STATIC_LIBRARIES.libgtest already defined by external/googletest/googletest.
09:42:55 ckati failed with: exit status 1
0;31m#### failed to build some targets (49 seconds) ####
The reason of the error
The compiler server has defined NDK_ROOT environment variable, which conflicts with Android compiler environment variable.
Check whether NDK_ROOT environment variable or SDK_ROOT environment variable is defined.

echo $NDK_ROOT

My compilation server defines NDK_Root environment variable, so echo $NDK_Root outputs the following path:
/xxx_NDK_Root/
indicates that the change amount is defined.

Solution:

Remove the environment variable temporarily

export NDK_ROOT=""

Continue to compile the system.

Error 3 error C2065: ‘endl‘ : undeclared identifier-Error 2 error C2065: ‘cout‘ : undeclared identif

As you can see, I just want to print something, and iostream is added, but that means I cout can’t use it.

hold   If StdAfx. H is placed at the front of the whole file, no error will be reported

In fact, if other header files are mentioned to the front, an error will be reported – this may be the provision of VS2010,   StdAfx. H must be first.

 

Even if you comment it out   All include in StdAfx. H are commented out. Whether the compilation passes or not.

 

 

compile error: error in parse transform ‘lager_transform‘

The lager package is used in Erlang project. Version 20 was used before OTP, but now it is upgraded to version 24. There is an error in compiling make,

compile error: error in parse transform ‘lager_ transform’

Analysis shows that the lager version is low. Enter the rebar.config file and change the tag of lager to the latest version.

{lager, ".*", {git, "https://github.com/erlang-lager/lager", {tag, "3.9.1"}

Problem solving.

Reference article: https://github.com/erlio/vmq_ diversity/issues/12  

Vs compilation error msb6006:“ cmd.exe ” exited with code 1.

Please note: http://blog.csdn.net/hust_ sheng/article/details/78827167

When this error occurs, the program will not crash, but the error window will display the above information~

There are a lot of blogs on the Internet to solve this kind of problem, but we can see that the reasons are different (incomplete files, insufficient administrator permissions, path containing Chinese, path containing spaces…) Because such problems are often not caused by one or even several certain reasons. Of course, we can’t rule out the consistent reasons for the compilation process of some fixed software, such as this blog

So in most cases, how can we determine the cause of the error in our own project?

look at the log information of the compilation process and the error prompt! I found that the reason for this error is that I didn’t install python

Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed

CMAKE compiler OpenCV source code error
Cmake compile opencv source code error: 1.
error prompt QtGui_DIR QtOpengl_DIR QtCore_DIR errors, such as said not set QT environment error
2. F ‘fmpeg download failed (timeout)
Qtgui_dir Qtopengl_dir Qtcore_gui, etc
Solution: in opencv source code file CMakeLists. TXT file to add the following code (can be added in the file header)
according to your own error set the appropriate path, such as:
set (Qt5Core_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Core”)
set (Qt5Gui_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Gui”)
set (Qt5Widgets_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Widgets”)
set (Qt5Test_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Test”)

FFMPEG library file download failed (timeout)

/ffmpeg> Copy the three files to Source/. Cache /ffmpeg, but change the file name to the md5-file name of the file.
>
>
# do_copy “opencv_ffmpeg_64. DLL” “2 cc08fc4fef8199fe80e0f126684834f” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll” “D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rdparty/ffmpeg”
# missing “D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rdparty/ffmpeg/opencv_ffmpeg_64. DLL”
# check_md5 “D:/workspace/opencv_contrib_3. 4.3/opencv. – rule 3.4.3 – Source/cache/ffmpeg/2 cc08fc4fef8199fe80e0f126684834f – opencv_ffmpeg_64. DLL”
The meaning of the above said from the download link https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll copy dynamic library to D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rd Party /ffmpeg folder, and give the MD5 value

opencv_ffmpeg_64.dll
opencv_ffmpeg_64.dll https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll
opencv_ffmpeg_64. DLL md5 value is 2 cc08fc4fef8199fe80e0f126684834f
Download to Build/3 rdparty/ffmpeg/folder
after the download is
the Build/3 rdparty/ffmpeg/opencv_ffmpeg_64. DLL
manually copy files to the Source folder and name: Md5 + name of the file, like this
the Source/cache/ffmpeg/2 cc08fc4fef8199fe80e0f126684834f – opencv_ffmpeg_64. DLL.
the other opencv_ffmpeg DLL and ffmpeg_version cmake method is the same.
note that carriage return after cmake file copy link to the browser, then right click on the select save as TXT file, to Build/3 rdparty/ffmpeg/folder, and then to the folder rename file suffix. TXT, thus cmake file with respect to OK, and then copied to the Source/cache/ffmpeg/file, rename, front ➕ md5.
click Configure again with respect to OK
supported