Salut, j'essaie d'utiliser des modules cxx d'une lib que j'ai créé avec CMake/Clion et clang mais je ne sais pas comment configurer le projet pour le faire compiler. Mes fichiers de configurations CMake sont sur mon repo : https://github.com/LaurentDuroisin7601/ODFAEG (branche master) J'ai essayé avec msvc mais ça n'a jamais compilé et sur linux non plus :
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 /usr/bin/cmake --build /home/laurent/odfaeg2-master/TestODFAEG2/cmake-build-debug --target MyGame -j 4 [1/27] Building CXX object 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi' FAILED: [code=1] CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi /usr/bin/clang++ -I/home/laurent/odfaeg-install/include -I/home/laurent/odfaeg2-master/ODFAEG2/external -m64 -g -std=gnu++20 -fcolor-diagnostics -I/usr/lib/llvm-18/include --precompile -MD -MT 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi' -MF CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi.d @CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi.modmap -o 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/195512c9cc46.bmi' -c /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/rect.ixx /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/rect.ixx:4:8: fatal error: module 'odfaeg.math.vec' not found 4 | import odfaeg.math.vec; | ~~~~~~~^~~~~~ 1 error generated. [2/27] Building CXX object 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi' FAILED: [code=1] CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi /usr/bin/clang++ -I/home/laurent/odfaeg-install/include -I/home/laurent/odfaeg2-master/ODFAEG2/external -m64 -g -std=gnu++20 -fcolor-diagnostics -I/usr/lib/llvm-18/include --precompile -MD -MT 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi' -MF CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi.d @CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi.modmap -o 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/f372625f2a16.bmi' -c /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/shader.ixx /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/shader.ixx:6:8: fatal error: module 'odfaeg.core.inputStream' not found 6 | import odfaeg.core.inputStream; | ~~~~~~~^~~~~~ 1 error generated. [3/27] Building CXX object 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi' FAILED: [code=1] CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi /usr/bin/clang++ -I/home/laurent/odfaeg-install/include -I/home/laurent/odfaeg2-master/ODFAEG2/external -m64 -g -std=gnu++20 -fcolor-diagnostics -I/usr/lib/llvm-18/include --precompile -MD -MT 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi' -MF CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi.d @CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi.modmap -o 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/e48235b35625.bmi' -c /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/vertex.ixx /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/vertex.ixx:7:8: fatal error: module 'odfaeg.math.vec' not found 7 | import odfaeg.math.vec; | ~~~~~~~^~~~~~ 1 error generated. [4/27] Building CXX object 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi' FAILED: [code=1] CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi /usr/bin/clang++ -I/home/laurent/odfaeg-install/include -I/home/laurent/odfaeg2-master/ODFAEG2/external -m64 -g -std=gnu++20 -fcolor-diagnostics -I/usr/lib/llvm-18/include --precompile -MD -MT 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi' -MF CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi.d @CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi.modmap -o 'CMakeFiles/odfaeg__odfaeg-graphics@synth_b567220ad52f.dir/ae03baa5dc78.bmi' -c /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/buffer.ixx /home/laurent/odfaeg-install/share/odfaeg/modules/Graphics/buffer.ixx:5:8: fatal error: module 'odfaeg.core.nonCopyable' not found 5 | import odfaeg.core.nonCopyable; | ~~~~~~~^~~~~~ 1 error generated. ninja: build stopped: subcommand failed.





Répondre avec citation



Consultez nos FAQ : 
Partager