You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-15Lines changed: 9 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,30 +72,24 @@ Clone rieMiner with git like for Linux, go to its directory with cd, and compile
72
72
73
73
#### Static building
74
74
75
-
The produced executable will only run in the MSYS console, or if all the needed DLLs are next to the executable. To obtain a standalone executable, you need to link statically the dependencies. Normally, this is done just by adding "-static" at the LIBS line in the Makefile. Unfortunately, libcurl will give you a hard time, and you need to compile it yourself.
75
+
The produced executable will only run in the MSYS console, or if all the needed DLLs are next to the executable. To obtain a standalone executable, you need to link statically the dependencies. Unfortunately, libcurl will give you a hard time, and you need to compile it yourself.
76
76
77
-
First, edit the Makefile to add "-D CURL_STATICLIB" at the end of the CFLAGS line and "-static" just after the "LIBS =" in the first LIBS line. You might also want to change the march argument to support other/olders processors.
77
+
First, download the [latest official libcurl code](https://curl.haxx.se/download.html) on their website, under "Source Archives", and decompress the folder somewhere (for example, next to the rieMiner's one).
Then, download the [latest official libcurl code](https://curl.haxx.se/download.html) on their website, under "Source Archives", and decompress the folder somewhere (for example, next to the rieMiner's one).
86
-
87
-
In the MSYS MinGW-w64 console, cd to the libcurl directory. We will now configure it to not build unused features:
79
+
In the MSYS MinGW-w64 console, cd to the libcurl directory. We will now configure it to not build unused features, then compile it:
Then, compile libcurl with make. We now need to replace the existing libcurl headers and libs provided by MinGW:
86
+
Once done:
94
87
95
-
* In the downloaded libcurl directory, go to the include directory and copy the "curl" folder to replace the one in X:\path\to\msys64\mingw64\include (make a backup if needed);
96
-
* Do the same with the file "libcurl.a" in the libs/.lib folder to replace the one in X:\path\to\msys64\mingw64\lib (make a backup if needed).
88
+
* Create "incs" and "libs" folders in the rieMiner directory;
89
+
* In the downloaded libcurl directory, go to the include directory and copy the "curl" folder to the "incs" folder;
90
+
* Do the same with the file "libcurl.a" from the libs/.lib folder to the rieMiner's "libs" folder.
97
91
98
-
Now, you should be able to compile rieMiner with make and produce a standalone executable.
92
+
Now, you should be able to compile rieMiner with "make static" and produce a standalone executable.
0 commit comments