Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Can't compile Controls4u from UppHub (Controls4u issues)
icon9.gif  Can't compile Controls4u from UppHub [message #57793] Fri, 17 December 2021 13:31 Go to next message
Typhoor is currently offline  Typhoor
Messages: 14
Registered: October 2012
Location: Erlangen, Germany
Promising Member
using an old project I wanted to recompile which uses Controls4U from bazaar:
I modified it to use UppHub, fresh Upp install, no bazaar folder and no my_app flying around, all files under "c:\dev\upp".

Trying to compile Controls4U_Demo i get the same compile errors like with my old projects
I'm on Windows 10 tried out with MSVS19 and CLANG (in 32 and 64 variants)
Even with new bin files from nightly (i.e. updated Clang) I get the following errors:
index.php?t=getfile&id=6536&private=0

My other projetcs (without Controls4u) just compile nicely...

is Controls4u out-of support ? not managed or tested ?

What shall I do, where do I get corrected files ?
rgds Ralph
Re: Can't compile Controls4u from UppHub [message #57794 is a reply to message #57793] Fri, 17 December 2021 14:14 Go to previous messageGo to next message
Typhoor is currently offline  Typhoor
Messages: 14
Registered: October 2012
Location: Erlangen, Germany
Promising Member
okey, I now pulled the newest sources from Controls4u from Anboto
https://github.com/anboto/Anboto/tree/master/Controls4U
and tug them under my project they compile nicely with clang/MSVS19...
Re: Can't compile Controls4u from UppHub [message #57797 is a reply to message #57794] Fri, 17 December 2021 19:04 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I will repeat it one more time Anboto fork is waste of time. It is causing too many problems and it is expensive to everyone. UppHub package contains patches that Anboto doesn't have. For example compatibility with recent wchar changes. On the other hand UppHub version doesn't have recent changes from koldo. Thanks to that we have vicious circle.

Koldo, if you are reading this word please consider backing to develop Anboto components under Libraries for you organization. I know that managing multiple repos, might be difficult, but you should used to it. U++ The good of U++ framework requires it. Divided we will never achieve success.

Klugier


U++ - one framework to rule them all.
Re: Can't compile Controls4u from UppHub [message #57813 is a reply to message #57797] Sun, 19 December 2021 13:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Klugier wrote on Fri, 17 December 2021 19:04
Hello,

I will repeat it one more time Anboto fork is waste of time. It is causing too many problems and it is expensive to everyone. UppHub package contains patches that Anboto doesn't have.



Except it does not. Be more careful reading posts.

(Now working on the fix...)
Re: Can't compile Controls4u from UppHub [message #57814 is a reply to message #57793] Sun, 19 December 2021 14:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Typhoor wrote on Fri, 17 December 2021 13:31
using an old project I wanted to recompile which uses Controls4U from bazaar:
I modified it to use UppHub, fresh Upp install, no bazaar folder and no my_app flying around, all files under "c:\dev\upp".

Trying to compile Controls4U_Demo i get the same compile errors like with my old projects
I'm on Windows 10 tried out with MSVS19 and CLANG (in 32 and 64 variants)
Even with new bin files from nightly (i.e. updated Clang) I get the following errors:
index.php?t=getfile&id=6536&private=0

My other projetcs (without Controls4u) just compile nicely...

is Controls4u out-of support ? not managed or tested ?

What shall I do, where do I get corrected files ?
rgds Ralph


I apologize for problems, should be fixed now (in UppHub) and should be working with current U++ version.
Re: Can't compile Controls4u from UppHub [message #58941 is a reply to message #57793] Wed, 28 September 2022 03:33 Go to previous messageGo to next message
dschoni is currently offline  dschoni
Messages: 15
Registered: January 2021
Location: Switzerland
Promising Member
Hi there ...

Seems to be still a problem.
index.php?t=getfile&id=6666&private=0

I've checked also in SVN, wether the files in upp\bazaar\Controls4U are actual: these are.

Best Regards
dschoni

[Updated on: Wed, 28 September 2022 03:36]

Report message to a moderator

Re: Can't compile Controls4u from UppHub [message #58942 is a reply to message #57793] Wed, 28 September 2022 03:57 Go to previous messageGo to next message
dschoni is currently offline  dschoni
Messages: 15
Registered: January 2021
Location: Switzerland
Promising Member
Hi there ...

https://github.com/anboto/Anboto/tree/master/Controls4U
Thanks for the Link to GitHub, Typhoor.

The upp repository contains in ActiveX_base.h at line 28
		WString ret(static_cast<wchar *>(bstr));

which is not accepted by the compiler.

But the Github code contains
		WString ret((wchar *)bstr);

which works.
So that seems to be actual.
I've corrected the upp code by using the ones from GitHub. The I've got the next problems: The same with Functions4U, which is included in the demo and is also compiling with errors.
index.php?t=getfile&id=6667&private=0
From here on I'm lost, because the difference in the code is to much for me to handle. (I'm just a beginner ...)

Why is it so hard to make the examples working?
Shouldn't these simply run out of the box?

Best regards
dschoni

[Updated on: Wed, 28 September 2022 07:15]

Report message to a moderator

Re: Can't compile Controls4u from UppHub [message #58943 is a reply to message #58942] Wed, 28 September 2022 08:15 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Please use the UppHub sources hosted in https://github.com/anboto. They are maintained and improved. Bugs are solved overnight.
The author of Controls4U does not guarantee the functionality of other sources.


Best regards
Iñaki
Re: Can't compile Controls4u from UppHub [message #58944 is a reply to message #57793] Wed, 28 September 2022 10:17 Go to previous messageGo to next message
dschoni is currently offline  dschoni
Messages: 15
Registered: January 2021
Location: Switzerland
Promising Member
Hi there ...

In the end I made it.
I had to replace any WString trough Vector<WCHAR>.

As example:
	Vector<WCHAR> wfileName = ToSystemCharsetW(String(fileName));
	wfileName.Add(0);
	FILE *fp = _wfopen(wfileName, L"rb");
	//FILE *fp = _wfopen(fileName.ToWString(), L"rb");

(Functions4U.cpp and more ...)

Wow, this was hard work! But now it works perfectly.

Best Regards
dschoni

[Updated on: Wed, 28 September 2022 10:20]

Report message to a moderator

Re: Can't compile Controls4u from UppHub [message #58945 is a reply to message #58943] Wed, 28 September 2022 11:11 Go to previous message
dschoni is currently offline  dschoni
Messages: 15
Registered: January 2021
Location: Switzerland
Promising Member
Great!

Thank you, this is working out of the box.
Seems to have some improvements too.

Best Regards
dschoni
Previous Topic: SixelRaster package for U++
Next Topic: Can't compile ScatterCtrl_Demo with current nightly build
Goto Forum:
  


Current Time: Fri Apr 26 01:24:19 CEST 2024

Total time taken to generate the page: 0.05551 seconds