Answer the question
In order to leave comments, you need to log in
Why isn't the Ultralight library built?
Here I am trying to compile the Ultralight Bible, on Windows:
I download the archive , unpack it of course.
Then in the console:
cd S:\Ultralight-1.2.1\Ultralight-1.2.1
cmake-gui
mingw32-make
#include <AppCore/App.h>
#include <AppCore/Window.h>
#include <AppCore/Overlay.h>
#include <AppCore/JSHelpers.h>
using namespace ultralight;
class UltralightMain {
RefPtr<Overlay> overlay;
public:
UltralightMain(Ref<Window> win) {
overlay = Overlay::Create(win, win->width(), win->height(), 0, 0);
overlay->view()->LoadURL("file:///main_window.html");
}
virtual ~UltralightMain() {}
}
int main() {
auto app = App::Create();
auto window = Window::Create(app->main_monitor(), 450, 700, false,
kWindowFlags_Titled);
window->SetTitle("Hi Ultralight here!");
app->set_window(window);
UltralightMain my_app(window);
app->Run();
return 0;
}
g++ main.cpp -o main -IS:\MinGW\local\include -LS:\MinGW\local\lib -lAppCore.lib -lUltralightCore.lib -lUltralight.lib -lAppCore.lib
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question