Perhaps it would be useful to add an option to HBIDE to configure location of hbmk2.exe. If this is done, everything should work just like if hbmk2 were launched from the cmdline.
Plus, it would be nice if HBIDE would allow setting an arbitrary list of envvars. By setting HB_WITH_QT and PATH properly, QT components would be found, without any extra tweaking like additional -L flag. Maybe I will implement the latter in hbmk2 itself, by new cmdline options --eVAR=VALUE and --eVAR+VALUE. Plus maybe a new input file .hbe which can be used like .hbc but is reserved for VAR=VALUE and VAR+VALUE pairs. I'd separate it from .hbc/.hbp because these settings are inherently environment specific (= dirs in local environment), so allowing them to be mixed in generic and portable files like .hbc/.hbp doesn't seem like a good idea. I have to give it some more thought. > hbmk2 hello.prg --ePATH+C:\mingw > hbmk2 hello.prg mingw.hbe > hbmk2 hello.prg mingw.hbe 3rd.hbe where mingw.hbe is: --- PATH+C:\mingw --- and mingw_3rd.hbe is --- HB_WITH_QT=C:\qt\4.5.3\include --- Brgds, Viktor On 2010 Jan 23, at 04:09, Pritpal Bedi wrote: > > Hello everybody, > > Recently Angel Pais posted an 100% Xbase++ code > application ( only one direct call to hbQT ) which I tried > with hbIDE directly, thinking myself as a newbee to have > fun with it. Below are the steps I employed : > > 1. Created a shortcut pointing towards E:\harbour\contrib\hbide\hbide.exe > > 2. In shortcut icon's Properties dialog I changed the "Target" as > E:\harbour\contrib\hbide\hbide.exe > => > E:\harbour\contrib\hbide\hbide.exe "E:\dev_projects\hbide\hbide.ini" > E:\dev_projects\hbide\hbide.ini is the projects startup file. > > 3. E:\dev_projects\hbide\ is a folder where I am keeping all projects. > > 4. Created a subfolder E:\dev_projects\hbide\angel_pais\ to keep > Angel's project files, sources only. Downloaded project sources > and unzipped in this folder. > > 5. Clicked on shortcut icon on desktop and invoked hbIDE. > > 6. Blank, no projects yet. > > 7. Right-clicked on "Projects" tree node, and selected "New Project", > Project Properties Dialog opens. > > 8. Filled the fields as: > Project Title: Angel Pais - Amigo WQ > Location: E:/dev_projects/hbide/angel_pais > Working Folder : > Destination : > Output Name : amigo > Compile Link Flags : > > 9. In sources tab: > E:/dev_projects/hbide/angel_pais/amigowq.rc > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg > > 10. Pushed <Save and Exit> - I could see this project > under "Executables" node. > > 11. Right-clicked on "Angel Pais - Amigo" node and selected > "Build Project". > > 12. In "Output Console" I received : > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 18:29:45 ] > ---------------------------------------------------------------------------------------------------- > > 13 :((- Nothing happened. I knew what is the reason - > hbIDE.exe desktop shortcut was unaware of Harbour > and Qt's environment. So, > > 14. I opened the development console where Harbour and Qt's > environment is fired with a batch file, i.e., harbour/contrib/hbide. > > 15. I executed > E:\harbour\contrib\hbide\hbide.exe "E:\dev_projects\hbide\hbide.ini" > on the command line, hbIDE appeared on the screen. > > 16. Repeated step 11. > > 17. Received in Output Console: > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 18:36:27 ] > ---------------------------------------------------------------------------------------------------- > > hbmk2: Processing environment options: -compiler=mingw > hbmk2: Processing configuration: e:\harbour\bin\hbmk.cfg > hbmk2: Harbour compiler command (embedded): > (e:\harbour\bin\harbour.exe) -n2 > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg -gc3 -q -ie:/harbour/include > > Harbour 2.0.1dev (Rev. 13637) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > hbmk2: Resource compiler command: > windres.exe -Ie:/harbour/include E:/dev_projects/hbide/angel_pais/amigowq.rc > -O coff -o amigowq.reso > > hbmk2: C/C++ compiler command: > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include appLogin.c AppMain.c > appVer.c fechas.c qMsg.c C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_huln2i.c > > hbmk2: Linker command: > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_huln2i.o > amigowq.reso -mconsole -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl > -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd > -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx > -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 > -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid > -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > > appLogin.o:appLogin.c:(.data+0x58): undefined reference to > `HB_FUN_XBPDIALOG' > appLogin.o:appLogin.c:(.data+0x68): undefined reference to > `HB_FUN_APPDESKTOP' > appLogin.o:appLogin.c:(.data+0x78): undefined reference to > `HB_FUN_SETAPPWINDOW' > appLogin.o:appLogin.c:(.data+0xe8): undefined reference to `HB_FUN_XBPSLE' > appLogin.o:appLogin.c:(.data+0x168): undefined reference to > `HB_FUN_XBPPUSHBUTTON' > appLogin.o:appLogin.c:(.data+0x1b8): undefined reference to > `HB_FUN_SETAPPFOCUS' > appLogin.o:appLogin.c:(.data+0x1d8): undefined reference to > `HB_FUN_APPEVENT' > AppMain.o:AppMain.c:(.data+0x238): undefined reference to > `HB_FUN_HBQT_SET_RELEASE_METHOD' > AppMain.o:AppMain.c:(.data+0x278): undefined reference to `HB_FUN_XBPDIALOG' > AppMain.o:AppMain.c:(.data+0x2d8): undefined reference to > `HB_FUN_SETAPPWINDOW' > AppMain.o:AppMain.c:(.data+0x308): undefined reference to > `HB_FUN_APPDESKTOP' > AppMain.o:AppMain.c:(.data+0x338): undefined reference to > `HB_FUN_GRAMAKERGBCOLOR' > AppMain.o:AppMain.c:(.data+0x3b8): undefined reference to > `HB_FUN_SETAPPFOCUS' > AppMain.o:AppMain.c:(.data+0x3c8): undefined reference to `HB_FUN_APPEVENT' > AppMain.o:AppMain.c:(.data+0x3f8): undefined reference to > `HB_FUN_XBPSTATUSBAR' > AppMain.o:AppMain.c:(.data+0x448): undefined reference to `HB_FUN_HB_QT' > qMsg.o:qMsg.c:(.data+0x48): undefined reference to `HB_FUN_MSGBOX' > collect2: ld returned 1 exit status > hbmk2: Error: Running linker. 1 > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_huln2i.o > amigowq.reso -mconsole -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl > -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd > -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx > -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 > -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid > -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > > ---------------------------------------------------------------------------------------------------- > Exit Code [ 7 ] Exit Status [ 0 ] Finished at [ 18:36:30 ] Done in > [ 3.26 Secs ] > ---------------------------------------------------------------------------------------------------- > > 18. A quick look revealed that I had missed to include hbXBP and hbQT > libraries. > > 19. Opned the "Project Properties" dialog and entered as: > Compile/Link Flags: E:\harbour\contrib\hbxbp\hbxbp.hbc > > 20. Repeated step 11, and got output as: > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 18:42:48 ] > ---------------------------------------------------------------------------------------------------- > > hbmk2: Processing environment options: -compiler=mingw > hbmk2: Processing configuration: e:\harbour\bin\hbmk.cfg > hbmk2: Harbour compiler command (embedded): > (e:\harbour\bin\harbour.exe) -n2 > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg -gc3 -q -ie:/harbour/include > -iE:/harbour/contrib/hbxbp -iE:/harbour/contrib/hbqt > > Harbour 2.0.1dev (Rev. 13637) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > hbmk2: Resource compiler command: > windres.exe -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt E:/dev_projects/hbide/angel_pais/amigowq.rc -O > coff -o amigowq.reso > > hbmk2: C/C++ compiler command: > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt appLogin.c AppMain.c appVer.c fechas.c qMsg.c > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_gv4fer.c > > hbmk2: C/C++ compiler command: > g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_xzgm95.cpp > > hbmk2: Linker command: > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_gv4fer.o > hbmk_xzgm95.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib > > e:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot > find -lQtCore4 > collect2: ld returned 1 exit status > hbmk2: Error: Running linker. 1 > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_gv4fer.o > hbmk_xzgm95.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib > > ---------------------------------------------------------------------------------------------------- > Exit Code [ 7 ] Exit Status [ 0 ] Finished at [ 18:42:52 ] Done in > [ 3.72 Secs ] > ---------------------------------------------------------------------------------------------------- > > 21. A quick look revealed that I have forgotton to tell hbMK2, the location > of Qt installation and lib folder. > > 22. Opned the "Project Properties" dialog and amended as: > Compile/Link Flags: E:\harbour\contrib\hbxbp\hbxbp.hbc > -LC:\qt\4.5.3\lib > > 23. Repeated step 11, and got output as: > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 18:48:07 ] > ---------------------------------------------------------------------------------------------------- > > hbmk2: Processing environment options: -compiler=mingw > hbmk2: Processing configuration: e:\harbour\bin\hbmk.cfg > hbmk2: Harbour compiler command (embedded): > (e:\harbour\bin\harbour.exe) -n2 > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg -gc3 -q -ie:/harbour/include > -iE:/harbour/contrib/hbxbp -iE:/harbour/contrib/hbqt > > Harbour 2.0.1dev (Rev. 13637) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > hbmk2: Resource compiler command: > windres.exe -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt E:/dev_projects/hbide/angel_pais/amigowq.rc -O > coff -o amigowq.reso > > hbmk2: C/C++ compiler command: > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt appLogin.c AppMain.c appVer.c fechas.c qMsg.c > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_6n1vnw.c > > hbmk2: C/C++ compiler command: > g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_tmzs5z.cpp > > hbmk2: Linker command: > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_6n1vnw.o > hbmk_tmzs5z.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib -LC:/qt/4.5.3/lib > > AppMain.o:AppMain.c:(.data+0x238): undefined reference to > `HB_FUN_HBQT_SET_RELEASE_METHOD' > collect2: ld returned 1 exit status > hbmk2: Error: Running linker. 1 > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_6n1vnw.o > hbmk_tmzs5z.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib -LC:/qt/4.5.3/lib > > ---------------------------------------------------------------------------------------------------- > Exit Code [ 7 ] Exit Status [ 0 ] Finished at [ 18:48:12 ] Done in > [ 4.83 Secs ] > ---------------------------------------------------------------------------------------------------- > > 24. Output Console distictly highlighyed the following line in red: > AppMain.o:AppMain.c:(.data+0x238): undefined reference to > `HB_FUN_HBQT_SET_RELEASE_METHOD' > > 25. I double-clicked on this highlited line and receved message-box showing > this message: > "File type unknown or unsupported: AppMain.o" > > 26. Looking at highlighted line I grasped that this error is the result of > compiling > sources without -w3 switch. > > 27. Opened the "Properties" dialog and entered this switch as: > Compile/Link Flags: E:\harbour\contrib\hbxbp\hbxbp.hbc > -LC:\qt\4.5.3\lib > -w3 > > 28. Repeated step 11 and output was: > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 18:59:11 ] > ---------------------------------------------------------------------------------------------------- > > hbmk2: Processing environment options: -compiler=mingw > hbmk2: Processing configuration: e:\harbour\bin\hbmk.cfg > hbmk2: Harbour compiler command (embedded): > (e:\harbour\bin\harbour.exe) -n2 > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg -gc3 -w3 -q > -ie:/harbour/include -iE:/harbour/contrib/hbxbp -iE:/harbour/contrib/hbqt > > Harbour 2.0.1dev (Rev. 13637) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > > E:/dev_projects/hbide/angel_pais/AppMain.prg(70) Warning W0001 Ambiguous > reference 'HBQT_RELEASE_WITH_DELETE' > hbmk2: Resource compiler command: > windres.exe -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt E:/dev_projects/hbide/angel_pais/amigowq.rc -O > coff -o amigowq.reso > > hbmk2: C/C++ compiler command: > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt appLogin.c AppMain.c appVer.c fechas.c qMsg.c > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_e5b6z3.c > > hbmk2: C/C++ compiler command: > g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_37dfli.cpp > > hbmk2: Linker command: > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_e5b6z3.o > hbmk_37dfli.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib -LC:/qt/4.5.3/lib > > AppMain.o:AppMain.c:(.data+0x238): undefined reference to > `HB_FUN_HBQT_SET_RELEASE_METHOD' > collect2: ld returned 1 exit status > hbmk2: Error: Running linker. 1 > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_e5b6z3.o > hbmk_37dfli.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib -LC:/qt/4.5.3/lib > > ---------------------------------------------------------------------------------------------------- > Exit Code [ 7 ] Exit Status [ 0 ] Finished at [ 18:59:16 ] Done in > [ 4.63 Secs ] > ---------------------------------------------------------------------------------------------------- > > 29. The line below was highlighted with blue color: > E:/dev_projects/hbide/angel_pais/AppMain.prg(70) Warning W0001 Ambiguous > reference 'HBQT_RELEASE_WITH_DELETE' > > 30. Doule-click on this line opened the "AppMain.prg" in the only editor > tab, > cursor was staying at line#70. I knew that this function has been > depricated, > so I commented out this line with <Edit><Block Comment> option, clicked > <Save> > icon and repeated step 11, and got following output: > > ---------------------------------------------------------------------------------------------------- > Project [ Angel Pais - Amigo WQ ] Launch [ No ] Rebuild [ No ] > Started [ 19:04:18 ] > ---------------------------------------------------------------------------------------------------- > > hbmk2: Processing environment options: -compiler=mingw > hbmk2: Processing configuration: e:\harbour\bin\hbmk.cfg > hbmk2: Harbour compiler command (embedded): > (e:\harbour\bin\harbour.exe) -n2 > E:/dev_projects/hbide/angel_pais/appLogin.prg > E:/dev_projects/hbide/angel_pais/AppMain.prg > E:/dev_projects/hbide/angel_pais/appVer.prg > E:/dev_projects/hbide/angel_pais/lib/fechas.prg > E:/dev_projects/hbide/angel_pais/lib/qMsg.prg -gc3 -w3 -q > -ie:/harbour/include -iE:/harbour/contrib/hbxbp -iE:/harbour/contrib/hbqt > > Harbour 2.0.1dev (Rev. 13637) > Copyright (c) 1999-2010, http://www.harbour-project.org/ > > hbmk2: Resource compiler command: > windres.exe -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt E:/dev_projects/hbide/angel_pais/amigowq.rc -O > coff -o amigowq.reso > > hbmk2: C/C++ compiler command: > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt appLogin.c AppMain.c appVer.c fechas.c qMsg.c > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_06g3a0.c > > hbmk2: C/C++ compiler command: > g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer > -DHB_FM_STATISTICS -Wall -W -Ie:/harbour/include -IE:/harbour/contrib/hbxbp > -IE:/harbour/contrib/hbqt C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hbmk_7pyyw0.cpp > > hbmk2: Linker command: > gcc.exe appLogin.o AppMain.o appVer.o fechas.o qMsg.o hbmk_06g3a0.o > hbmk_7pyyw0.o amigowq.reso -mwindows -Wl,--start-group -lhbxbp -lhbqt > -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 > -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm > -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui > -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd > -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 > -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 > -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet > -lhbpcre -lhbzlib -Wl,--end-group > -oE:/dev_projects/hbide/angel_pais/amigo.exe -Le:/harbour/lib/win/mingw > -L/../lib -LC:/qt/4.5.3/lib > > ---------------------------------------------------------------------------------------------------- > Exit Code [ 0 ] Exit Status [ 0 ] Finished at [ 19:04:23 ] Done in > [ 4.92 Secs ] > ---------------------------------------------------------------------------------------------------- > > 32. <Exit Code [ 0 ] was good enough an indication that project has been > built successfully. > > 33. Right-clicked on "Angel Pais - Amigo" node and selected "Launch", the > result: > > 34. WOW, I could see the amigo.exe in action. > > I know that this will not happen if you have not setup your environment to > compile with hbQT and Qt dlls are not known to the hbIDE. At present this is > the only > missing feature in hbIDE to centralize your all projects. I will address > this issue > shortly after covering some editing features which are a MUST in an IDE. > > Hope that above case-study will facilitate beginers to adopt hbIDE, may be > in a limited manner, for their few of the projects. > > Regards > Pritpal Bedi > > > > -- > View this message in context: > http://old.nabble.com/hbIDE---Real-time-hbXBP-Project-Case-Study-tp27282667p27282667.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
