Skip to content

mcristg/commonqt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In Linux I installed from scratch on top of Ubuntu MATE 20.04.

Previous requirements:
gcc
Qt 5.15.2 
OpenGL dev
cmake
git

Install llvm-dev 11 and clang-dev 11
 
Always use your Qt5 path where required:

git clone https://github.com/mcristg/smokegen
cd smokegen
mkdir build 
cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DLLVM_DIR="/usr/lib/llvm-11/cmake" \
      -DQt5_DIR="~/Qt/5.15.2/gcc_64/lib/cmake/Qt5" \
      -G "Unix Makefiles" ../
make 
sudo make install

cd ../../

git clone https://github.com/mcristg/smokeqt
cd smokeqt
mkdir build 
cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DQt5_DIR="~/Qt/5.15.2/gcc_64/lib/cmake/Qt5" \
      -G "Unix Makefiles" ../

make

Correct any errors that appear, see files in commonqt/Instructions: 

manual-modification-smokeqtcore.txt
 
sudo make install

cd ../../

git clone -b commonqt5 https://github.com/mcristg/commonqt

cd commonqt

export PATH=$PATH:~/Qt/5.15.2/gcc_64/bin

mkdir build
cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DCMAKE_PREFIX_PATH=~/Qt/5.15.2/gcc_64 \
      -DSMOKE_LIB=/usr/local \
      -DQt5_DIR=~/Qt/5.15.2/gcc_64/lib/cmake/Qt5 \
      -G "Unix Makefiles" ../

make
sudo make install

In the terminal (your Qt5 path)
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/your path/Qt/5.15.2/gcc_64/lib

or in /etc 
create qt5_lib.conf to add the path to qt5 lib with the following 2 lines (your Qt5 path)

include /etc/ld.so.conf.d/*.conf
/your path/Qt/5.15.0/gcc_64/lib

and then run:
sudo ldconfig

Test commonqt5.

sbcl 

(ql:quickload :cffi)

(ql:quickload :named-readtables)
(ql:quickload :cl-ppcre)
(ql:quickload :closer-mop)
(ql:quickload :iterate)
(ql:quickload :trivial-garbage)

(pushnew "/your path/dev/commonqt/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'qt)
(asdf:oos 'asdf:load-op 'qt-tutorial)

(qt-tutorial-14:main)
               
In Win 10.

Previous requirements:

Visual studio 2019 16.11.8 Community version
Clang/LLVM Support in Visual Studio 
see:
https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/
https://docs.microsoft.com/en-us/cpp/build/clang-support-msbuild?view=vs-2019#:~:text=To%20configure%20a%20Visual%20Studio,-cl)%20and%20then%20OK
Qt 5.15.2
cmake
git

Download llvm and clang version 11.1.0

open win 10 terminal (cmd)

qtenv2.bat
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

The path in this guide is c:\dev.
Always use your path where required.
download llvm 11.0.1
unpack llvm:

cd C:\dev\llvm-11.1.0.src
download clang 11.0.1
unpack in C:\dev\llvm-11.1.0.src\tools

mkdir build
cd build

cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=C:/dev/llvm-11 ^
      -DLLVM_INCLUDE_TESTS=Off -DLLVM_INCLUDE_EXAMPLES=Off -G "Visual Studio 16 2019" -T ClangCL ../
  
MsBuild LLVM.sln /t:Build /p:Configuration=Release 
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release	
cd ..\..\

Always use your Qt5 path where required:

git clone https://github.com/mcristg/smokegen

cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokegen-lib -DLLVM_DIR="C:/dev/llvm-11/lib/cmake/llvm" ^
      -DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" -G "Visual Studio 16 2019" -T ClangCL ../

MsBuild smokegenerator.sln /t:Build /p:Configuration=Release 
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release	

  
cd ..\..\


git clone https://github.com/mcristg/smokeqt
cd smokeqt
mkdir build 
cd build

cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokeqt-lib ^
      -DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" ^
      -DSMOKE_CMAKE_MODULE_DIR="C:/dev/smokegen-lib/share/smoke/cmake" ^
      -G "Visual Studio 16 2019" -A x64 -T ClangCL ../

MsBuild SMOKEQT5.sln /t:Build /p:Configuration=Release 

Correct any errors that appear, see files in commonqt/Instructions: 
smokeqtcore manual patch.txt
  
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release	

cd ..\..\

Copy smoke.h from your "path\smokegen-lib\include" to "your path\smokeqt-lib\include",
smokebase.dll from your "path\smokegen-lib\bin" to "your path\smokeqt-lib\bin"
and smokebase.lib from your "path\smokegen-lib\lib" to "your path\smokeqt-lib\lib"

git clone -b commonqt5 https://github.com/mcristg/commonqt

cd commonqt

mkdir build
cd build

cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokeqt-lib ^
      -DCMAKE_PREFIX_PATH=C:/dev/Qt/5.15.2/msvc2019_64 ^
      -DSMOKE_LIB=c:/dev/smokeqt-lib ^
      -DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" ^
      -G "Visual Studio 16 2019" -A x64 -Thost=x64 ../	
	  

MsBuild commonqt.sln /t:Build /p:Configuration=Release
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release	

close win 10 terminal (cmd) and add your path\smokeqt-lib\bin path to your system

open win 10 terminal (cmd)

sbcl 

(ql:quickload :cffi)

(ql:quickload :named-readtables)
(ql:quickload :cl-ppcre)
(ql:quickload :closer-mop)
(ql:quickload :iterate)
(ql:quickload :trivial-garbage)

(pushnew "c:/dev/commonqt/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'qt)
(asdf:oos 'asdf:load-op 'qt-tutorial)

(qt-tutorial-14:main)	  

Releases

No releases published

Packages

No packages published

Languages

  • Common Lisp 93.6%
  • C++ 5.6%
  • Other 0.8%