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

unexpected symbol near '#' #1

Closed
krionical opened this issue Nov 10, 2019 · 10 comments
Closed

unexpected symbol near '#' #1

krionical opened this issue Nov 10, 2019 · 10 comments
Labels
question Further information is requested

Comments

@krionical
Copy link

On arch linux derivative, get the following error via build instructions: /usr/local/bin/luajit LjBcViewer.pro /usr/local/bin/luajit: LjBcViewer.pro:2: unexpected symbol near '#'

@rochus-keller
Copy link
Owner

Have you installed Qt 5 and run qmake as described in the build instructions? Looks rather that arch linux is interpreting the pro file like a normal script file which fails on line 2.

@krionical
Copy link
Author

When I run qmake from /usr/bin/qmake I get this error: /usr/bin/qmake LjBcViewer.pro
Cannot read ~/BUILD_DIR/LuaJit/LuaJit.pri: No such file or directory

@rochus-keller
Copy link
Owner

rochus-keller commented Nov 10, 2019

Make clean, delete the Makefile and run "qmake LjBcViewer.pro" again; if it still has this issue (which is surprising since the include directive in the pro file has an alternative for this case which works on my machine) then delete the "include( /home/me/Desktop/LuaJIT-2.0.5/src/LuaJit.pri ) {...} part and replace it by "LIBS += -lluajit" only.

EDIT:
Here is a prebuilt binary of LjBcViewer with LuaJIT statically linked as a single executable if you want to give it a try: http://software.rochus-keller.info/LjBcViewer_v0.5.1_linux32.tar.gz
And here is the is the LuaJit.pri file I'm using to statically integrate LuaJIT 2.0 into the project:
LuaJit.pri.txt (remove the .txt suffix)

EDIT2:
And here a prebuilt binary of LjAsmEditor: http://software.rochus-keller.info/LjAsmEditor_v0.3_linux32.tar.gz

@krionical
Copy link
Author

Thnaks for your help so far. I tried to run both of your files provided but both throw the following error: /LjBcViewer: error while loading shared libraries: libQt5PrintSupport.so.5: cannot open shared object file: No such file or directory

@rochus-keller
Copy link
Owner

Have you looked with ldd what else is missing? What Qt version is installed on your system? You need at least version 5, better even 5.4. On my Ubuntu version the QtPrintSupport is a separate installer package. And the 32 bit version is required.

@rochus-keller rochus-keller added the help wanted Extra attention is needed label Nov 10, 2019
@krionical
Copy link
Author

krionical commented Nov 10, 2019 via email

@rochus-keller
Copy link
Owner

Ok, you have an x86-64 system. To run 32 bit binaries you also have to install the i386 versions of the binaries. Maybe it's easier if you continue to try to compile it yourself. I didn't compile it for 64 bits yet, but there is a good chance that it works ;-)

@krionical
Copy link
Author

Yeah I didn't notice the 32 although you clearly put it on there. I will try to wrangle with QT. It's pretty messy on my distro of arch at the moment.

@rochus-keller rochus-keller added question Further information is requested and removed help wanted Extra attention is needed labels Nov 11, 2019
@rochus-keller
Copy link
Owner

Did it work? Can I close the issue?

@krionical
Copy link
Author

krionical commented Nov 12, 2019 via email

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

No branches or pull requests

2 participants