User forums > Help
Linux build - Tools Node Regression?
oBFusCATed:
@digifuzzy: Why don't you install wxGTK 2.8 and use this for running C::B, I know about several problems with wx3.0 that have not yet been fixed (crashes, usability problems, etc).
I'm trying to build wx-trunk with STL, but it seems to fail...
oBFusCATed:
I think, I've fixed almost all stl and wx31 build problems.
wxSmith still doesn't build, but I don't have time to fix it at the moment (it requires some major changes to the enums as far as I can tell).
The fixes could be found in the builds/wx31 branch in my repo on github.
https://github.com/obfuscated/codeblocks_sf/tree/builds/wx31
Please test and report if there are any problems. I've tested only on Linux with wx2.8, wx3.0 and wxtrunk. Only wxtrunk is compiled with stl support. I don't know about the others.
stahta01:
--- Quote from: oBFusCATed on May 08, 2014, 10:54:41 am ---I think, I've fixed almost all stl and wx31 build problems.
wxSmith still doesn't build, but I don't have time to fix it at the moment (it requires some major changes to the enums as far as I can tell).
The fixes could be found in the builds/wx31 branch in my repo on github.
https://github.com/obfuscated/codeblocks_sf/tree/builds/wx31
Please test and report if there are any problems. I've tested only on Linux with wx2.8, wx3.0 and wxtrunk. Only wxtrunk is compiled with stl support. I don't know about the others.
--- End quote ---
Built against wxWidgets 3.0 branch on Windows 7 32 bit.
No idea if these two changes are correct; I am really a C programmer NOT a C++ programmer.
--- Code: ---diff --git a/src/plugins/contrib/help_plugin/help_plugin.cpp b/src/plugins/contrib/help_plugin/help_plugin.cpp
index f633783..d18cbcb 100644
--- a/src/plugins/contrib/help_plugin/help_plugin.cpp
+++ b/src/plugins/contrib/help_plugin/help_plugin.cpp
@@ -137,7 +137,7 @@ namespace
#if defined(_WIN64) | defined(WIN64)
fp_htmlHelp(0L, (const wxChar*)m_filename, cbHH_KEYWORD_LOOKUP, (DWORDLONG)&link);
#else
- fp_htmlHelp(0L, (const wxChar*)m_filename, cbHH_KEYWORD_LOOKUP, (DWORD)&link);
+ fp_htmlHelp(0L, std::wstring(m_filename).c_str(), cbHH_KEYWORD_LOOKUP, (DWORD)&link);
#endif
}
else // do it the wx way then (which is the same thing, except for the 0L in the call to fp_htmlHelp)
diff --git a/src/sdk/filemanager.cpp b/src/sdk/filemanager.cpp
index 85579b5..f9df312 100644
--- a/src/sdk/filemanager.cpp
+++ b/src/sdk/filemanager.cpp
@@ -185,7 +185,7 @@ namespace platform
inline bool move(wxString const& old_name, wxString const& new_name)
{
// hopefully I got the unintellegible conversion stuff correct... at least it seems to work...
- return ::MoveFileEx(wxFNCONV(old_name), wxFNCONV(new_name), MOVEFILE_REPLACE_EXISTING);
+ return ::MoveFileEx(std::wstring(old_name).c_str(), std::wstring(new_name).c_str(), MOVEFILE_REPLACE_EXISTING);
}
#else
inline bool move(wxString const& old_name, wxString const& new_name)
--- End code ---
I built it and CB ran and exited without error or warning no other testing done on the binary.
Tim S.
oBFusCATed:
Does this still build with wx2.8 and do the correct thing?
stahta01:
--- Quote from: oBFusCATed on May 09, 2014, 08:00:08 am ---Does this still build with wx2.8 and do the correct thing?
--- End quote ---
I still have to test that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version