HBQT

Ola!
Estou estudando essa biblioteca gráfica.
Criei um grupo no google, hbqt_br
Saudações,
Itamar M. Lins Jr.
Estou estudando essa biblioteca gráfica.
Criei um grupo no google, hbqt_br
Saudações,
Itamar M. Lins Jr.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
gostaria de uma ajuda , coisa de principiante mesmo,
como entrar no seu grupo?
C:\HB34\Addons
svn://svn.code.sf.net/p/qtcontribs/code/trunk
:\>hbmk2 hbqtcontribs.hbp xhb.hbc
E:\Dvd1 Harbour\Fonte Qt>hbmk2 qtcontribs.hbp xhb.hbc
hbmk2: Gerando sub-projeto (passo 2): debug\hwgdebug.hbp
hbmk2: Alvo atualizado: ..\..\lib\win\mingw\libhwgdebug.a
hbmk2: Gerando sub-projeto (passo 2): hbqt\qtcore\hbqtcore.hbp
hbmk2: Gerando sub-projeto (passo 3): hbqt\qtcore\hbqtcores.hbp
hbmk2[hbqtcores]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could
not autodetect 'uic.exe' executable
hbmk2[hbqtcore]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could not
autodetect 'uic.exe' executable
hbmk2[hbqtcore]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could not
autodetect 'moc.exe' executable
HB_INSTALL_PREFIX=C:\HB34
HB_QT_MAJOR_VER=5
HB_WITH_QT=c:\QT\Qt5.4.0\5.4\mingw491_32\include
\>SET HB_QT_MAJOR_VER=5
\>SET HB_WITH_QT=c:\QT\Qt5.4.0\5.4\mingw491_32\include
\hb3X\addons\>hbmk2 hbqtcontribs.hbp xhbc.hbc
hbmk2[hbqtcores]: plugin: HB_WITH_QT,
C:\hb34>tree
├───addons
│ ├───debug
│ ├───hbdbu
│ │ ├───bin
│ │ │ └───win
│ │ │ └───mingw
│ │ └───resources
│ ├───hbide
│ │ ├───docs
│ │ ├───env
E:\Dvd1 Harbour\Fonte Qt>hbmk2 qtcontribs.hbp xhb.hbc
E:\hb32\addons\hbmk2 qtcontribs.hbp xhb.hbc
@echo off
SET PATH=C:\HB32\bin;C:\Qt\5.4\mingw491_32\bin;%PATH%
SET HB_COMPILER=mingw
SET HB_QT_MAJOR_VER=5
SET HB_WITH_QT=C:\Qt\5.4
esta correto ou tenho de fazer algo mais?
Para QT só usamos as duas HB_QT_MAJOR_VER=5 e HB_WITH_QT=\sua\pasta_INCLUDE\com\a\qt\5xxx
Detalhe é que aponta para o include da QT, o hbmk2 faz todo o serviço o HBMK2 procura recursivamente.
SET HB_WITH_QT=c:\QT\Qt5.4.0\5.4\mingw491_32\include
Nascimento escreveu:vc baixou a qt e eu os fontes e estou tambem desde cedo lendo relendo e tentando gerar a lib para começar os testes e ate agora nient nada zero
rsrs
@echo off
PATH=C:\HB32qt\bin;C:\Qt\Tools\mingw491_32\bin;%PATH%
SET HB_QT_MAJOR_VER=5
rem SET HB_WITH_QT=C:\Qt\5.4\mingw491_32\include
cd\
%SystemRoot%\system32\cmd.exe
Vá pelo caminho mais facil:
baixe a QTContribs
depois a QT 5.4
Onde esta o Harbour compilado versao 3.2 C:\Harbour
Variaveis de Ambiente blablabla;C:\Harbour\bin;C:\Harbour\lib;C:\Harbour\include;
C:\HB34\AddOns>set hb
HB_INSTALL_PREFIX=C:\HB34
HB_QT_MAJOR_VER=5
HB_WITH_QT=c:\QT\Qt5.4.0\5.4\mingw491_32\include
C:\HB34\AddOns>
C:\HB34\AddOns>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=d:/tdm-gcc-64/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.1/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-4.8.1/configure --build=x86_64-w64-mingw32 --enable-targets=all --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libg
omp --enable-lto --enable-graphite --enable-cxx-flags=-DWINPTHREAD_STATIC --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --en
able-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --prefix=/mingw64t
dm --with-local-prefix=/mingw64tdm --with-pkgversion=tdm64-2 --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: posix
gcc version 4.8.1 (tdm64-2)
C:\HB34\AddOns>
SET PATH = %PATH%;C:\QT\Qt5.4.0\Tools\mingw491_32\bin;
Itamar M. Lins Jr. escreveu:2) Baixar os FONTES do harbour 3.2 ou 3.4.
https://github.com/harbour/core/archive/master.zip
Itamar M. Lins Jr. escreveu:5) CRIAR A HBQT (biblioteca)
hbmk2 qtcontribs xhb.hbc
C:\HB340\AddOns>set hbO que poderia ser?
HB_INSTALL_PREFIX=c:\Hb340
HB_QT_MAJOR_VER=5
HB_WITH_QT=c:\Qt\Qt5.4.0\5.4\mingw491_32\include
C:\HB340\AddOns>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/QT/Qt5.4.0/Tools/mingw491_32/bin/../libexec/gcc/i686-w64-mingw32/4.9.1/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.9.1/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c/ming
w491/i686-491-posix-dwarf-rt_v3-rev2/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib --enable
-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite -
-enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-isl-version-check --d
isable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werr
or --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw491/prerequisites/i686-w6
4-mingw32-static --with-mpfr=/c/mingw491/prerequisites/i686-w64-mingw32-static --with-mpc=/c/mingw491/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw491/pr
erequisites/i686-w64-mingw32-static --with-cloog=/c/mingw491/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf-rev
2, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw491/i686-491-posix-dwarf-rt_v3-rev2/mingw32/opt/in
clude -I/c/mingw491/prerequisites/i686-zlib-static/include -I/c/mingw491/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/c/mingw491/i686-491-po
six-dwarf-rt_v3-rev2/mingw32/opt/include -I/c/mingw491/prerequisites/i686-zlib-static/include -I/c/mingw491/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS=
LDFLAGS='-pipe -L/c/mingw491/i686-491-posix-dwarf-rt_v3-rev2/mingw32/opt/lib -L/c/mingw491/prerequisites/i686-zlib-static/lib -L/c/mingw491/prerequisites/i686-w64-mi
ngw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 4.9.1 (i686-posix-dwarf-rev2, Built by MinGW-W64 project)
C:\HB340\AddOns>
alxsts escreveu:O que poderia ser?
C:\Harbour\addons\hbqt>hbmk2 qtcontribs
hbmk2: Gerando sub-projeto (passo 2): debug\hwgdebug.hbp
hbmk2: Alvo atualizado: ..\lib\win\mingw\libhwgdebug.a
hbmk2: Gerando sub-projeto (passo 2): hbqt\qtcore\hbqtcore.hbp
hbmk2: Gerando sub-projeto (passo 3): hbqt\qtcore\hbqtcores.hbp
hbmk2[hbqtcores]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could
not autodetect 'uic.exe' executable
hbmk2[hbqtcore]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could not
autodetect 'uic.exe' executable
hbmk2[hbqtcore]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTPOSTFIX not set, could not
autodetect 'moc.exe' executable
C:\Harbour\addons\hbqt>
setei essas configuraçoes:
"C:\Harbour\bin;C:\Harbour\lib;C:\Harbour\include"
C:\fontes>set hb
HB_INSTALL_PREFIX=C:\HB34
HB_QT_MAJOR_VER=5
HB_TIP_OPENSSL=yes
HB_WITH_CURL=C:\curl-7.39.0-win32\include\
HB_WITH_FIREBIRD=C:\Program Files\Firebird\Firebird_2_5\include
HB_WITH_MYSQL=C:\mysql-5.6.23-win32\include
HB_WITH_OPENSSL=C:\OpenSSL-Win32\include
HB_WITH_QT=c:\QT\Qt5.4.0\5.4\mingw491_32\include
Instalei renomeando a pasta de HB32 para Harbour
/>set hb
C:\>set hb
Variável de ambiente hb não definida
C:\>
C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Casa\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=CASA-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Casa
LOCALAPPDATA=C:\Users\Casa\AppData\Local
LOGONSERVER=\\CASA-PC
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Win
dows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Har
bour\bin;C:\Harbour\lib;C:\Harbour\include;C:\Program Files\TortoiseSVN\bin;C:\P
ROGRA~1\PICC;C:\Program Files\Skype\Phone\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Casa\AppData\Local\Temp
TMP=C:\Users\Casa\AppData\Local\Temp
USERDOMAIN=Casa-PC
USERNAME=Casa
USERPROFILE=C:\Users\Casa
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\Windows
C:\>
C:\>set hb
Variável de ambiente hb não definida
Path=C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Win
dows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Har
bour\bin;C:\Harbour\lib;C:\Harbour\include;C:\Program Files\TortoiseSVN\bin;C:\P
ROGRA~1\PICC;C:\Program Files\Skype\Phone\
C:\fontes\teste>set path
Path=C:\ProgramData\Oracle\Java\javapath;C:\Inprise\vbroker\bin;C:\Windows\syste
m32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1
.0\;c:\hb34\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\
100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\TortoiseSVN\bin;C:\QT\Qt5.4
.0\Tools\mingw491_32\bin;C:\Program Files\CVSNT\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
win-make clean installEspere criar os EXE´s nas pastas \hb34 (ele criará se não existir)
hbmk2 qtcontribs.hbpEsperar e pronto.
alxsts escreveu:Alguém conhece uma maneira prática de determinar quais DLL's devem acompanhar um executável gerado, usando-se a HbQt?
No prompt do CMD, tecle:
x:\>Findstr -i .dll SeuExe.exe | more | findstr -i .dll | more