Ristellise / AegisubDC

Aegisub, Daydream Cafe Edition
Other
282 stars 31 forks source link

wx widgets errors when compiling in linux using cmake #13

Closed xervox closed 3 years ago

xervox commented 3 years ago

Hi,

I am trying to compile a static binary in linux (ubuntu based distro): after generating cmake configs i get this far when trying to compile:

[  1%] Built target luajit-minilua
[  3%] Built target luajit-buildvm
[ 26%] Built target luajit
[ 29%] Built target luabins
[ 45%] Built target libaegisub
[ 47%] Built target csri
[ 47%] Built target git_version
[ 47%] Building CXX object CMakeFiles/Aegisub.dir/cmake_pch.hxx.gch
In file included from /home/dev/AegisubDC/src/agi_pre.h:105,
                 from /home/dev/AegisubDC/CMakeFiles/Aegisub.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/include/wx-3.0/wx/defs.h:46:13: error: #error "No Target! You should use wx-config program for compilation flags!"
   46 | #           error "No Target! You should use wx-config program for compilation flags!"
      |             ^~~~~
In file included from /usr/include/wx-3.0/wx/cursor.h:48,
                 from /usr/include/wx-3.0/wx/event.h:21,
                 from /usr/include/wx-3.0/wx/app.h:19,
                 from /home/dev/AegisubDC/src/agi_pre.h:108,
                 from /home/dev/AegisubDC/CMakeFiles/Aegisub.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/include/wx-3.0/wx/gtk/cursor.h:44:5: error: ‘GdkCursor’ does not name a type; did you mean ‘wxCursor’?
   44 |     GdkCursor *GetCursor() const;
      |     ^~~~~~~~~
...and so on.

I pulled the official repository at https://github.com/Aegisub/Aegisub and i get a static binary at the end (not using cmake here).

The following wx dev versions are installed:

libwxbase3.0-dev:amd64 3.0.4+dfsg-15build1 libwxgtk3.0-gtk3-dev:amd64 3.0.4+dfsg-15build1 wx3.0-headers 3.0.4+dfsg-15build1

cmake . output:

Configure settings
  Install prefix:        /usr/local
  CFLAGS                 
  CXXFLAGS               

Default Settings
  Audio Player:          PulseAudio

Audio Players
  ALSA:                  ON
  DirectSound:           OFF
  DirectSound-old:       OFF
  XAudio2:               OFF
  OpenAL:                OFF
  OSS:                   ON
  PortAudio:             OFF
  PulseAudio:            ON

Misc Packages
  AviSynth:              OFF
  CSRI:                  ON
  FFMS2:                 ON
  FFTW3:                 ON
  Hunspell:              ON
  uchardet:              OFF
  LuaJIT:                bundled

Options
  Startup log:           OFF
  Update checker:        OFF
  Tests:                 OFF

-- Configuring done
-- Generating done
-- Build files have been written to: /home/dev/AegisubDC

bye xervox

Ristellise commented 3 years ago

Linux as of now isn't supported for DC unfortunately.