Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: stahta01 on May 06, 2018, 02:19:52 am

Title: ScriptedWizard and MSys2
Post by: stahta01 on May 06, 2018, 02:19:52 am
I have checked several of CB Wizards to see how the work with MSys2

Edit: Testing is being done by setting the Global Variable in Wizard to Compiler Installation folder.

Code: [Select]
SDL1    Wizard works
GTK2    Wizard works (minor edit in my git repo; that may not be needed or correct)
WX      Wizard likely needs a lot of work; have not tried recently
FLTK    Wizard does not work
GLFW    Wizard does not work (msys2 is using GLFW/glfw3.h)
        Version 2.7.9 Released on June 6, 2013
GLUT    Wizard does not work (msys2 is using freeglut.dll instead of glut32)
Irrl    Wizard does not work (msys2 is using irrlicht/irrlicht.h)
Ogre    Wizard does not work (msys2 is using OGRE/Ogre.h)
opencv2 Wizard does not work (msys2 is version 3 which uses different lib names)
        Version 2.4.13.6 released 2018-02-26
opengl  Wizard does not work; has link error; might be bad sample code or missing library
Qt4     Wizard (Too big to test till later in week)
sfml    Wizard works (Nice looking Wizard)

Packages that I think are needed to test the Wizards
Code: [Select]
mingw-w64-i686-fltk       1.3.4.2-1
mingw-w64-i686-glfw       3.2.1-2
mingw-w64-i686-freeglut   3.0.0-4
mingw-w64-i686-irrlicht   1.8.4-1
mingw-w64-i686-ogre3d-hg  2.1.0.r10230.62834e3ac215-1
mingw-w64-i686-opencv     3.4.1-1
mingw-w64-i686-mesa       18.0.2-1
mingw-w64-i686-sfml       2.4.2-2
mingw-w64-i686-qt4        4.8.7-4

Tim S.
Title: Re: ScriptedWizard and MSys2
Post by: BlueHazzard on May 06, 2018, 11:26:33 am
Quote
Testing is being done by setting the Global Variable in Wizard to Compiler Installation folder.

You mean the "c:\msys\mingw32\include" folder?
Title: Re: ScriptedWizard and MSys2
Post by: stahta01 on May 07, 2018, 12:28:47 am
Quote
Testing is being done by setting the Global Variable in Wizard to Compiler Installation folder.

You mean the "c:\msys\mingw32\include" folder?

No, I mean "C:\msys32\mingw32" as the base of the Global Variables.

That does result in the include being "c:\msys32\mingw32\include".

Tim S.
Title: Re: ScriptedWizard and MSys2
Post by: BlueHazzard on May 07, 2018, 01:16:59 am
i have tried the fltk wizzard, and he displays the error message that he has not found the Fl.h, but the wizzard continues and all builds fine...

funny thing...
Title: Re: ScriptedWizard and MSys2
Post by: stahta01 on May 07, 2018, 01:49:12 am
i have tried the fltk wizzard, and he displays the error message that he has not found the Fl.h, but the wizzard continues and all builds fine...

funny thing...

Yeah, I think I might have seen that on another wizard.

After, I see how the Wizards (in my list) work under Linux; I plan to start fixing some of the wizards for MSys2 usage.

Tim S.
Title: Re: ScriptedWizard and MSys2
Post by: ollydbg on May 07, 2018, 06:00:29 am
I also use msys2, and I mainly use opencv and wxWidgets libraries supplied by msys2.

For me, if I see a wizard get failed(mainl, it will show an error messagebox), I just open the scripts, and find the line showing the error message, and comment out the line, and run the wizard again, and then finally tweak the final generated project.  ;D
Title: Re: ScriptedWizard and MSys2
Post by: stahta01 on May 08, 2018, 01:33:22 pm
Debian Linux stretch Wizard Testing

Code: [Select]
GTK2    Wizard works and project builds and runs.
WX      Wizard works and project builds and runs.
FLTK    Wizard works and project builds and runs.
GLUT    Wizard works and project builds and runs.
opengl  Wizard works and project builds and runs.
SDL1    Wizard works and project builds and runs.
sfml    Wizard works and project builds and runs.

Irrl    Wizard works; compiler error; need to change "dimension2d<s32>" to "dimension2d<u32>"
opencv2 Wizard works; linker error; opencv-config command missing change wizard to use "pkg-config opencv --libs --static"

Ogre    Wizard works; compiler error; header ExampleApplication.h not found; looks like old pre 1.7 sample code

Qt4     Wizard fails to find library QtCore;
GLFW    Wizard fails to find header; looks like wizard needs upgraded to version 3

Code: [Select]
Global Variables Used
 glfw, glut, qt4
  base:    /usr
  lib:     /usr/lib/x86_64-linux-gnu
 irrlicht
  base:    /usr
  include: /usr/include/irrlicht
  lib:     /usr/lib/x86_64-linux-gnu

Edit: Add todays MSys2 testing

Retest using MSys2; some of the wizards work this time that did not yesterday
Note: I had issues on my Computer and reinstalled MSys2 after runing checkdisk

Code: [Select]
GUI
 FLTK     Wizard works and project builds and runs.
 GTK2     Wizard works and project builds and runs using GTK version 2
 Qt4      library is too big for me to work on fixing the wizard
 wxW      Wizard likely needs a lot of work; plan to work on this last

Graphics
 GLFW     Wizard is too old it uses version 2 or older
 GLUT     Wizard fails to find library;
 Irrlicht Wizard fails to find header;
 Ogre     Wizard fails to find header;
 OpenGL   Wizard works and project builds and runs.
 SDL      Wizard works and project builds and runs using SDL version 1
 sfml     Wizard works and project builds and runs.

Tim S.
Title: Re: ScriptedWizard and MSys2
Post by: BlueHazzard on May 09, 2018, 12:27:33 am
Can you give some more info how you run the wizard?
For example the FLTK wizard?
Using the global variable $FL pointing to?
Title: Re: ScriptedWizard and MSys2
Post by: stahta01 on May 09, 2018, 01:13:58 am
Can you give some more info how you run the wizard?
For example the FLTK wizard?
Using the global variable $FL pointing to?

As with the others
base: C:\msys32\mingw32

Code::Blocks Release 17.12 rev 11256

Build log

Code: [Select]
i686-w64-mingw32-g++.exe -DWIN32 -mms-bitfields -g -Wmissing-include-dirs -Wno-unused-local-typedefs -IC:/msys32/mingw32/include -c C:/Users/stahta01/devel/open_source_code/no_version_control/Test/testfltk/main.cpp -o obj/Debug/main.o
i686-w64-mingw32-g++.exe -LC:/msys32/mingw32/lib -LC:/msys32/mingw32/bin -o bin/Debug/testfltk.exe obj/Debug/main.o   -lfltk -lole32 -luuid -lcomctl32 -lwsock32 -lm -lgdi32 -luser32 -lkernel32
Output file is bin\Debug\testfltk.exe with size 348.29 KB

Tim S.