Opened 6 years ago

Closed 6 years ago

#56894 closed update (fixed)

Codeblocks 17.12 Available

Reported by: pcallycat Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: mojca (Mojca Miklavec)
Port: codeblocks

Description (last modified by jmroot (Joshua Root))

Codeblocks 17.12 is available. It looks like the existing port has no maintainer. Current svn code will build with one small edit. The following patch to src/sdk/scripting/squirrel/sqvm.cpp will cause the software to be buildable.

-#include "sqpcheader.h"
 #include <math.h>
+#include "sqpcheader.h"
 #include <stdlib.h>
 #include "sqopcodes.h"
 #include "sqfuncproto.h"

Attachments (2)

Portfile-codeblocks.diff (2.1 KB) - added by mf2k (Frank Schima) 6 years ago.
patch-sqvm-header-fix.diff (358 bytes) - added by mf2k (Frank Schima) 6 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: codeblocks added
Version: 2.5.3

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile-codeblocks.diff added

Changed 6 years ago by mf2k (Frank Schima)

Attachment: patch-sqvm-header-fix.diff added

comment:2 Changed 6 years ago by mf2k (Frank Schima)

I've attached my attempt to update to version 17.12. Thanks to your patch suggestion, it does build and even runs. But it seems to still have problems. For example, when trying to quit, it crashes with a wxWidgets error. Also, when trying to create a new project, there are no listed project types.

comment:3 Changed 6 years ago by mf2k (Frank Schima)

Keywords: haspatch added

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Cc: mojca added

Ccing previous maintainer for possible comment and help.

comment:5 Changed 6 years ago by pcallycat

BSD builds against 2.8 of wxwidgets rather than the current versions. I attempted this last night, but could not get the package to build due to errors building jpeg. I can explore it further after the workday is done.

Last edited 6 years ago by pcallycat (previous) (diff)

comment:6 Changed 6 years ago by mf2k (Frank Schima)

When I attempt to build wxWidgets-2.8, I see this error:

Error: Failed to fetch wxWidgets-2.8: wxWidgets-2.8 cannot be built on macOS >= 10.7 with Xcode >= 4.4; please use port wxWidgets-3.0 or wxgtk-2.8 instead

I'm not sure how this will work on a modern macOS.

comment:7 Changed 6 years ago by mf2k (Frank Schima)

comment:8 Changed 6 years ago by mojca (Mojca Miklavec)

Don't even try to build wxWidgets 2.8. That's history. You could in principle build wxgtk-2.8, but you'll run into numerous other issues. Stick with wxWidgets-3.0.

I'm not too eager to fight with software I don't even use myself. With the group of developers understaffed for mac development it's also more challenging to communicate bugs and patches than with other software. It makes more sense that one of the actual users takes over maintainership and puts effort into trying to build the software.

comment:9 Changed 6 years ago by mf2k (Frank Schima)

Actually, building it with the +wxgtk30 variant seems to be working pretty well. No crash on quit. Maybe we should make that the default and I will commit?

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)

comment:10 Changed 6 years ago by pcallycat

If that’s the case, it would certainly get my vote, but I’m just a user lol. If it doesn’t get updated I can certainly build it locally that way as well.

comment:11 Changed 6 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: newclosed

In 87605673a0c7f187b091da328cdbee270de15844/macports-ports (master):

codeblocks: Update to version 17.12

  • Switch to wxgtk30 as default variant

Closes: #56894

Note: See TracTickets for help on using tickets.