Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Compilation du prototype C - lib/std_image.h not found #65

Closed
pcotret opened this issue Nov 24, 2020 · 3 comments
Closed

Compilation du prototype C - lib/std_image.h not found #65

pcotret opened this issue Nov 24, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@pcotret
Copy link
Contributor

pcotret commented Nov 24, 2020

cd c_prototype
mdkir build
cd build
cmake ..
make

Résultat :

.../c_prototype/image.c:6:10: fatal error: lib/stb_image.h: No such file or directory
    6 | #include "lib/stb_image.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
@NightlySide
Copy link
Member

Hhmmm surprenant car cela fonction avec le module CMake de CLion je vais essayer en ligne de commande pour voir

@NightlySide
Copy link
Member

Encore plus surprenant que chez moi ça fonctionne très bien ...

❯ mkdir build
❯ cd build
❯ cmake ..
-- The C compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alexandre/EVEEX/EVEEX-Code/c_prototype/build
❯ make
Scanning dependencies of target c_prototype
[ 14%] Building C object CMakeFiles/c_prototype.dir/data_types/dictionary.c.o
[ 28%] Building C object CMakeFiles/c_prototype.dir/data_types/image.c.o
[ 42%] Building C object CMakeFiles/c_prototype.dir/data_types/list.c.o
[ 57%] Building C object CMakeFiles/c_prototype.dir/data_types/bitstream.c.o
[ 71%] Building C object CMakeFiles/c_prototype.dir/huffman.c.o
[ 85%] Building C object CMakeFiles/c_prototype.dir/main.c.o
[100%] Linking C executable c_prototype
[100%] Built target c_prototype

@NightlySide NightlySide added the bug Something isn't working label Dec 15, 2020
@NightlySide NightlySide self-assigned this Dec 15, 2020
@NightlySide
Copy link
Member

Soucis avec le gitignore. Fixé dans le commit 025c846

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants