Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/include/jpeglib.h:29:10: fatal error: 'jconfig.h' file not found #570

Closed
iselien opened this issue Oct 4, 2019 · 15 comments
Closed

Comments

@iselien
Copy link

iselien commented Oct 4, 2019

I get a problem when I make install

………………
[ 65%] Built target calendar
[ 65%] Built target cal
[ 65%] Built target tsort
[ 65%] Built target units
[ 65%] Built target diffstat
[ 65%] Built target dsmemberutil
[ 65%] Building C object src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/O2Encoder_JPG.o
In file included from /home/yovelas/Github/darling/src/external/cocotron/Onyx2D/O2Encoder_JPG.m:5:
/usr/include/jpeglib.h:29:10: fatal error: 'jconfig.h' file not found
#include "jconfig.h"            /* widely used configuration options */
         ^~~~~~~~~~~
1 error generated.
src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/build.make:296: recipe for target 'src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/O2Encoder_JPG.o' failed
make[2]: *** [src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/O2Encoder_JPG.o] Error 1
CMakeFiles/Makefile2:44030: recipe for target 'src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/all' failed
make[1]: *** [src/external/cocotron/Onyx2D/CMakeFiles/Onyx2D.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
@iselien
Copy link
Author

iselien commented Oct 4, 2019

who can help me??

@CuriousTommy
Copy link
Contributor

What distro are you using?

@iselien
Copy link
Author

iselien commented Oct 7, 2019

ubuntu 18.04

@iselien
Copy link
Author

iselien commented Oct 7, 2019

I tried many times

@CuriousTommy
Copy link
Contributor

CuriousTommy commented Oct 7, 2019

/usr/include/jpeglib.h:29:10: fatal error: 'jconfig.h' file not found
#include "jconfig.h"            /* widely used configuration options */

Since the error is happening in the /usr/include/ directory, I would assume that the library might have got corrupted. Maybe try reinstalling the library.

Also, make sure you install all of the dependencies for Ubuntu (listed in Build Instructions)

@iselien
Copy link
Author

iselien commented Oct 7, 2019

I'm sure I installed the required dependencies, but I don't know which system libraries are missing

@bugaevc
Copy link
Member

bugaevc commented Oct 7, 2019

jconfig.h should be a part of libjpeg-dev package.

@iselien
Copy link
Author

iselien commented Oct 7, 2019

okay,thank for you help me. I will try it at tomorrow backuse china is sleeping now.

@iselien
Copy link
Author

iselien commented Oct 8, 2019

I tried install the the libjpeg-dev package,and even uninstalled it and reinstalled it,but I still had the same error

yovelas@yovelas-laptop:~/Github/darling/build$ sudo apt-get install libjpeg-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjpeg-dev is already the newest version (8c-2ubuntu8).
0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.

@iselien
Copy link
Author

iselien commented Oct 8, 2019

I think I need a new linux environment,and install this software

@facekapow
Copy link
Member

facekapow commented Oct 8, 2019

Try this:

# symlink some files that are missing from `/usr/include`
# i had to do this on my system, maybe on your system you don't
# in any case, it won't hurt to symlink them even if you do have them in `/usr/include`
sudo ln -s /usr/include/x86_64-linux-gnu/jconfig.h /usr/include/jconfig.h
sudo ln -s /usr/include/x86_64-linux-gnu/tiffio.h /usr/include/tiffio.h
sudo ln -s /usr/include/x86_64-linux-gnu/tiff.h /usr/include/tiff.h
sudo ln -s /usr/include/x86_64-linux-gnu/tiffconf.h /usr/include/tiffconf.h
sudo ln -s /usr/include/x86_64-linux-gnu/tiffvers.h /usr/include/tiffvers.h
sudo ln -s /usr/include/x86_64-linux-gnu/tiffio.hxx /usr/include/tiffio.hxx

I had to do this in Ubuntu in the WSL (Windows Subsystem for Linux) to get it to compile.
(full code here)

@iselien
Copy link
Author

iselien commented Oct 8, 2019

thank you very much,that problem has been solved,but there is a new one

[100%] Built target JavaScriptCore
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/libexec/darling/private
CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot make directory "/usr/local/libexec/darling/private": No
  such file or directory


Makefile:117: recipe for target 'install' failed
make: *** [install] Error 1

@CuriousTommy
Copy link
Contributor

CuriousTommy commented Oct 8, 2019

Did you run include sudo with your make install?

@iselien
Copy link
Author

iselien commented Oct 8, 2019

oh,I don't,I'm trying now

@iselien
Copy link
Author

iselien commented Oct 8, 2019

okay,I finally installed sucessfully,thanks to everyone who helper me

yovelas@yovelas-laptop:~/Github/darling/build$ darling shell echo Hello world
Loaded the kernel module
Setting up a new Darling prefix at /home/yovelas/.darling
Bootstrapping the container with launchd...
Hello world
yovelas@yovelas-laptop:~/Github/darling/build$ darling shell echo Hello world
Hello world

@iselien iselien closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants