Quicklisp ошибки
Формулировка задачи:
Ребят, помогите разобраться в чем проблема. У меня windows 10, sbcl 1.3.1
Установил quicklisp вот так (просто из REPL)
Затем установил CommonQT
Затем хотел попробовать простой код с гуи но всегда получал похожую ошибку при вызове (hello-qt)(код отсюда https://gist.github.com/wedesoft/3993305)
Подумал что не подгрузились нужные библиотеки, ашел и скачал dll для commonqt и вкинул в
\quicklisp\dists\quicklisp\software\commonqt-20151218-git\
Теперь появилась немного другая ошибка, вот думаю не знаю как починить
Мне кажется проблема в слэшах
sbcl --load quicklisp.lisp (quicklisp-quickstart:install) ;;включил авто запуск (ql:add-to-init-file)
(ql:quickload :qt)
;;И он спокойно запустился
To load "qt":
Load 1 ASDF system:
qt
; Loading "qt"
.............
(QT)(ql:quickload 'qt)
(defpackage :hello-qt
(:use :cl :qt)
(:export #:main))
(in-package :hello-qt)
(named-readtables:in-readtable :qt)
;;;;Hello Qt
(defun hello-qt()
(let* ((app (make-qapplication))
(label (#_new QLabel "<strong>Hello Qt!</strong>")))
(#_setWindowTitle label "Hello, Qt!")
(#_resize label 100 100)
(#_show label)
(unwind-protect
(#_exec app)
(#_hide label))))
(hello-qt)
debugger invoked on a CFFI:LOAD-FOREIGN-LIBRARY-ERROR in thread
#<THREAD "main thread" RUNNING {1002AFBB83}>:
Unable to load foreign library (COMMONQT.DLL-601).
Error opening shared object "commonqt.dll":
%1 is not a valid Win32 application.debugger invoked on a CFFI:LOAD-FOREIGN-LIBRARY-ERROR in thread
#<THREAD "main thread" RUNNING {1002AFBB83}>:
Unable to load foreign library (COMMONQT.DLL-588).
Error opening shared object "C:\\Users\\Administrator\\quicklisp\\dists\\quicklisp\\software\\commonqt-20151218-git\\commonqt.dll":
%1 is not a valid Win32 application.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Try loading the foreign library again.
1: [USE-VALUE] Use another library instead.
2: [ABORT ] Exit debugger, returning to top level.
(CFFI::FL-ERROR "Unable to load foreign library (~A).~% ~A" #:COMMONQT.DLL-588 "Error opening shared object "C:\\\\Users\\\\Administrator\\\\quicklisp\\\\dists\\\\quicklisp\\\\software\\\\commonqt-20151218-git\\\\commonqt.dll":
%1 is not a valid Win32 application.")
0]Решение задачи: «Quicklisp ошибки»
textual
Листинг программы
..................................................
[package cl-ppcre]................................
..................................................
[package qt-lib-generator]........................
[package alexandria.0.dev]........................
..................................................
[package babel-encodings].........................
[package babel]...................................
..................................................
[package cffi-sys]................................
[package cffi]....................................
..................................................
[package cffi-features]...........................
[package qt-libs]..
debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "main thread" RUNNING {1002AFBBE3}>:
Type component without a name component in NATIVE-NAMESTRING: "dll".
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Retry
completing compilation for #<SYSTEM "qt-libs">.
1: [ACCEPT ] Continue, treating
completing compilation for #<SYSTEM "qt-libs">
as having been successful.
2: Retry ASDF operation.
3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
configuration.
4: [ABORT ] Give up on "qt-libs"
5: Exit debugger, returning to top level.
(SB-IMPL::UNPARSE-NATIVE-WIN32-NAMESTRING #<PATHNAME (with no namestring) :HOST #<SB-IMPL::WIN32-HOST {100040ABE3}> :DEVICE "C" :DIRECTORY (:ABSOLUTE "Users" "Administrator" "quicklisp" "dists" "quicklisp" "software" "qt-libs-20151218-git" "standalone") :NAME NIL :TYPE "dll" :VERSION NIL> #<unavailable argument>)
0]