LadybirdBrowser / ancient-history

The Ladybird web browser
BSD 2-Clause "Simplified" License
1.62k stars 109 forks source link

fatal error: LibWeb/CSS/Enums.h: No such file or directory #149

Open tiaanl opened 1 year ago

tiaanl commented 1 year ago

I checked out ladybird and followed the build steps and described in the BuildInstruction.md file and received the following error:

/usr/bin/ccache /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/home/tilo/code/ladybird/Build/ladybird_autogen/include -I/home/tilo/code/serenity/Userland/Libraries -I/home/tilo/code/ladybird/Build/_deps/lagom-build/Services -I/home/tilo/code/serenity -I/home/tilo/code/ladybird/Build/_deps/lagom-build -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtNetwork -ggnu-pubnames -Wall -Wextra -Werror -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fdiagnostics-color=always -fPIC -g1 -O2 -fno-semantic-interposition -Wno-expansion-to-defined -Wno-user-defined-literals -std=c++20 -MD -MT CMakeFiles/ladybird.dir/SimpleWebView.cpp.o -MF CMakeFiles/ladybird.dir/SimpleWebView.cpp.o.d -o CMakeFiles/ladybird.dir/SimpleWebView.cpp.o -c /home/tilo/code/ladybird/SimpleWebView.cpp
In file included from /home/tilo/code/serenity/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h:12,
                 from /home/tilo/code/serenity/Userland/Libraries/LibWeb/CSS/CSSRule.h:13,
                 from /home/tilo/code/serenity/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h:11,
                 from /home/tilo/code/serenity/Userland/Libraries/LibWeb/DOM/Document.h:20,
                 from /home/tilo/code/ladybird/SimpleWebView.cpp:45:
/home/tilo/code/serenity/Userland/Libraries/LibWeb/CSS/StyleValue.h:29:10: fatal error: LibWeb/CSS/Enums.h: No such file or directory
   29 | #include <LibWeb/CSS/Enums.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

I retried and set the SERENITY_SOURCE_DIR option on cmake to point to a running build of sOS, but received the same error.

It looks like the Enums.h file is generated and is in the build output directory and I don't see a -I on the command line pointing to it. Am I missing a step during build?

ADKaster commented 1 year ago

Does this still reproduce on latest master? There have been updates to the build since this issue was created. But even two weeks ago I would expect the build not to be broken. It's often the case that a good old rm -rf Build will fix this kind of issue. For more build issues though, please ask in the SerenityOS discord in the #build-problems channel.