Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows compile #309

Closed
jstaursky opened this issue Feb 2, 2017 · 12 comments
Closed

Windows compile #309

jstaursky opened this issue Feb 2, 2017 · 12 comments

Comments

@jstaursky
Copy link

Im trying to build this on windows using MSYS2 and getting close but it stops when make tries to build lpeg.o, various sources seem to say that lpeg can only be built as a dll on windows (maybe also as a .lib but I have not seen this). Otherwise I have all the build requirements setup (MSYS2 provides libluajit-5.1.dll.a as libluajit.a). What is the remedy or plan for this? If there is none, when is the last commit to the windows branch that worked? I'll just clone that and be happy :)

@refi64
Copy link
Contributor

refi64 commented Feb 2, 2017

Wait, so you were using the windows branch? Did you follow exactly these instructions? What were the exact error messages?

@jstaursky
Copy link
Author

Thanks for the tip! While instructions did generate an executable no matter what I do it fails to run. The closest I can get is getting the error (after moving a bunch of dlls in the same directory as the .exe

Failed to dispatch 'signal activate: \.\E:\howl/lib/ljglibs/gtk/css_provider.moon:12: :11:8not a number (code: 1)'
Fontconfig error: Cannot load default config file

(howl.exe:5088): Gtk-WARNING **: Theme parsing error: :11:39: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

gcc also outputs

make: [Makefile:85: bytecode] Error 123 (ignored)
make: *** [Makefile:86: bytecode] Error 123

during the end of the compile.

Which I'm guessing is the reason the exe will not run.

:(

If you could upload a working binary I would appreciate!

@jstaursky
Copy link
Author

okay I fixed the first wacky part ".\E:\howl/lib/ljglibs/gtk/css_provider.moon:" because I realized I set up an environment variable wrong a while ago.
So instead I have

Failed to dispatch 'signal activate: ../lib/ljglibs/gtk/css_provider.moon:12: :11:8not a number (code: 1)'
Fontconfig error: Cannot load default config file

same error I know but at least path seems sane.

This also fixes the gcc error and now the compiler outputs

Fontconfig error: Cannot load default config file

instead of Error 123.

However the final error appears to be the same when I try to run it :/

Failed to dispatch 'signal activate: ../lib/ljglibs/gtk/css_provider.moon:12: :11:8not a number (code: 1)'
Fontconfig error: Cannot load default config file

(howl.exe:5348): Gtk-WARNING **: Theme parsing error: :11:39: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

@refi64
Copy link
Contributor

refi64 commented Feb 3, 2017

@jstaursky

If you could upload a working binary I would appreciate!

https://mega.nz/#!ZBsGjJJB!ixyrSxq5Vec_G_2R_f9QBR20IbuUZWjInjJmiGGm7ss

@nilnor
Copy link
Contributor

nilnor commented Feb 3, 2017

The CSS issue would likely be resolved if this branch was rebased on master (see 1fe80c5 for relevant fixing, but I guess just appending px to the font size here might do it.

@refi64
Copy link
Contributor

refi64 commented Feb 3, 2017

Yeah, I really need to rebase that, but I always manage to screw it up somehow... I was trying to see if I could fix the process launching issues first, but I'm still kind of stuck, though at least I've been able to narrow down the cause (coroutines).

I'll probably just end up making a new branch and cherry-picking all the old commits.

@jstaursky
Copy link
Author

@kirbyfan64 Thanks for providing the binary, but I'm still running into trouble :(

$ ./howl.exe
E:\workinghowl\dist\share\howl\lib\howl\init.lua:188: ../lib/howl/application.moon:4: ../lib/howl/ui/window.moon:5: module 'ljglibs.aux.background' not found:
no field package.preload['ljglibs.aux.background']
no file '\.\E:\workinghowl\dist\share\howl/lib/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ljglibs\aux\background/init.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/ljglibs\aux\background/init.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/moonscript/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/moonscript/ljglibs\aux\background/init.lua'
no file '.\ljglibs\aux\background.lua'
no file 'E:\workinghowl\dist\bin\lua\ljglibs\aux\background.lua'
no file 'E:\workinghowl\dist\bin\lua\ljglibs\aux\background\init.lua'
no file '.\ljglibs\aux\background.dll'
no file 'E:\workinghowl\dist\bin\ljglibs\aux\background.dll'
no file 'E:\workin
** (howl.exe:3532): CRITICAL **: Failed to run script: E:\workinghowl\dist\share\howl\lib\howl\init.lua:210: E:\workinghowl\dist\share\howl\lib\howl\init.lua:188: ../lib/howl/application.moon:4: ../lib/howl/ui/window.moon:5: module 'ljglibs.aux.background' not found:
no field package.preload['ljglibs.aux.background']
no file '\.\E:\workinghowl\dist\share\howl/lib/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ljglibs\aux\background/init.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/ljglibs\aux\background/init.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/moonscript/ljglibs\aux\background.lua'
no file '\.\E:\workinghowl\dist\share\howl/lib/ext/moonscript/ljglibs\aux\background/init.lua'
no file '.\ljglibs\aux\background.lua'
no file 'E:\workinghowl\dist\bin\lua\ljglibs\aux\background.lua'
no file 'E:\workinghowl\dist\bin\lua\ljglibs\aux\background\init.lua'
no file '.\ljglibs\aux\background.dll'
no file 'E:\workinghowl\dist\bin\ljglibs\aux\background.dll'
no file 'E:\workinghowl\dist\bin\loadall.dll'
no file '.\ljglibs.dll'
no file 'E:\workinghowl\dist\bin\ljglibs.dll'
no file 'E:\workinghowl\dist\bin\loadall.dll'

ghowl\dist\bin\loadall.dll'
no file '.\ljglibs.dll'
no file 'E:\workinghowl\dist\bin\ljglibs.dll'
no file 'E:\workinghowl\dist\bin\loadall.dll'

At one point I had my own build getting something resembling these errors as well (not sure if it was asking for the same dlls) not sure what load "loadall.dll" is, I have searched my entire msys2 folder and couldn't find it.

@nilnor I'll give this a shot when I get back home from work. (running all this on my flash drive making me feel like a bad one).

@jstaursky
Copy link
Author

No luck @nilnor I tried both fixes still ending up with

Failed to dispatch 'signal activate: ../lib/ljglibs/gtk/css_provider.moon:12: :11:8not a number (code: 1)'
Fontconfig error: Cannot load default config file

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :11:39: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :16:39: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :20:46: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :23:65: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :24:49: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :25:52: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :27:46: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :31:46: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(howl.exe:12108): Gtk-WARNING **: Theme parsing error: :35:46: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

When I use my .exe

with @kirbyfan64 binary it looks like I am just missing a lua module or something.

Also I noticed there was no luajit in the attachment, I tried getting it to work with the luajit I could build by adding it to path but that didn't do anything.

@jstaursky
Copy link
Author

I fixed it! Thank you @kirbyfan64 for the binary!
All I had to do to fix my earlier problem was
cd /e/workinghowl/dist/share/howl/lib/ljglibs/
mkdir aux
cd _aux
cp background.bc ../aux/
cp background.moon ../aux/

Here is my result after going back and running ./howl.exe
image
Woo hoo!

@tuffnerdstuff
Copy link

Sorry for reviving this thread, but I ran into the same problem as @jstaursky while compiling howl for windows. When running howl I always got the following exception:

Failed to dispatch 'signal activate: ../lib/ljglibs/gtk/css_provider.moon:12: :11:8not a number (code: 1)'

I dug around in the code and learned that css_provider.moon hands over CSS stylesheets to GTK and I read from the error message that something must be wrong with the CSS. After some more digging and debugging I figured out that theme.moon seems to format font styles in a wrong way. I looked up how to do it properly (CSS font property), rearranged the way the font attributes are ordered and voila: howl started!

Of course I would like to share my (humble) patch with you, but I wanted to ask first if somebody knows why this seems to be only a problem in the windows build? I assume that GTK might have changed the way it parses CSS, but then it would be also a problem for the linux build.

Cheers

@tuffnerdstuff
Copy link

tuffnerdstuff commented Nov 10, 2017

Never mind, I just checked the history of theme.moon and saw that there have been various GTK related fixes. That explains everything :) And I realized that the windows build instructions described here are not up to date anymore (the repository is rather old). I'll now try to build howl based on the windows branch of the original (this) GitHub repo.

EDIT: Works like a charm. Just checkout the original repo, switch to windows branch and make. Done.

@refi64
Copy link
Contributor

refi64 commented Nov 10, 2017

Yeah, do note though that the windows branch has fallen quite a bit out of date. I'd recommend you try using WSL + VcXsrv for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants