File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ The following files from the JPEG system-package are of interest:
29
29
30
30
Swift packages that provide module maps for system libraries are handled differently from regular Swift packages.
31
31
32
+ Note that this package may be located elsewhere on your system, such as ` /usr/local/ ` rather than ` /usr/ ` .
33
+
32
34
Create a directory called ` CJPEG ` parallel to the ` example ` directory and create a file called ` module.modulemap ` :
33
35
34
36
example$ cd ..
@@ -177,7 +179,7 @@ And run it:
177
179
178
180
---
179
181
180
- Please note that on Ubuntu 15.10 the above steps fail with:
182
+ Please note that on some platforms, the above steps fail with:
181
183
182
184
<module-includes>:1:10: note: in file included from <module-includes>:1:
183
185
#include "/usr/include/jpeglib.h"
@@ -186,7 +188,7 @@ Please note that on Ubuntu 15.10 the above steps fail with:
186
188
size_t free_in_buffer; /* # of byte spaces remaining in buffer */
187
189
^
188
190
189
- This is because ` jpeglib.h ` is not a correct module as bundled with Ubuntu (Homebrew’s jpeglib.h is correct however) .
191
+ This is because ` jpeglib.h ` is not a correct module.
190
192
To fix this you need to add ` #include <stdio.h> ` to the top of jpeglib.h.
191
193
192
194
JPEG lib itself needs to be patched, but since this situation will be common we intend to add a workaround system in module packages.
You can’t perform that action at this time.
0 commit comments