Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Development / Re: Batch build: Not able to compile. Some more UI changes
« Last post by sodev on June 18, 2019, 10:53:12 pm »
I cannot help you with that particular problem but i can give you some advice from my personal experience: don't reinvent the wheel.

I did the same for one of our applications, created my own set of scripts to update from svn (yes, so ancient, but the switch to git is so much work for us and we have so less time), build all different variants, upload to our release server (an awesome Samba share ;D) and that for all supported linuxxes. Back then it was definately the faster approach, but in the long shot a waste of time. Very limited in functionality, very specific only for that application.

Today there is a much better approach that is even some kind of standard process: CI. CodeBlocks can already be built automatically thanks to autotools, all you need to do is setup your favorite CI server to do the others tasks of initializing the environment and preparing the dependencies. Instead of writing your own custom solution use a standard system. Will make things way more easy especially if you plan to release it into public.
42
Development / Batch build: Not able to compile. Some more UI changes
« Last post by BlueHazzard on June 18, 2019, 09:35:04 pm »
Hi,
so i still try to automate my full codeblocks build process... Some progress can be found here: https://github.com/bluehazzard/codeblocks_build_utilities Scripts are from installation to automated build of every wx and build combination. The error reporting is not implemented yet... This is my first journey to bash scripting so any ideas and improvements are really welcome! This works at the moment only on linux. I may try to do the same with msys2 or even better automate also the windows builds  with wine on linux... ( i don't want to crosscompile...)

Now to the problem: This is related on windows:
I can not get the build to work on windows. My setup:
1) Mingw64 compiler x86_64-w64-mingw32
2) Installed on D:\mingw64
3) the compiler is set as gcc in codeblocks with path and everything working

Code: [Select]
set CB_ROOT=D:\codeblocks\output31_64
set GCC_ROOT=D:\mingw64\bin

Now if i build codeblocks within codeblocks i have no problems... But if i call the batch_build.bat from the directory i get the
Code: [Select]
x86_64-w64-mingw32-g++.exe: error: CreateProcess: No such file or directoryerror. After some googeling i found out that i have to add (http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista)
Code: [Select]
D:\mingw64\libexec\gcc\x86_64-w64-mingw32\8.1.0to the PATH variable. Now the build works until it hits this error:
Code: [Select]
x86_64-w64-mingw32-g++.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found
now the library in question is in
Code: [Select]
D:\mingw64\libexec\gcc\x86_64-w64-mingw32\8.1.0And here i am.. I can not modify the library search path from the command line...

My question is now... Why does the batch build needs all this setup? The compiler should be set up in the codeblocks config file/project file. Why do i have to add all this to the environment?
Shouldn't it simply run and be good?
I have searched the source for some differences of batch build and normal build but i can only find some gui differences....

And here we come to point 2 of this post:
Some time ago i did this commit: https://sourceforge.net/p/codeblocks/code/11706/ Where i display a message box on error. I will wrap this in a if like the compiler plugin does:
Code: [Select]
if (Manager::IsBatchBuild()) // no dialog if batch building...
            Manager::Get()->GetLogManager()->LogToStdOut(msg);
        else
            cbMessageBox(msg, _("Error"), wxICON_ERROR);
Any objections? Note this is only a temporary commit to make the build more automaticable. The target is to implement a UI interface that is different for batch builds and normal builds as discussed in some ticket. But one step after the other. Now i want to automate the build as far as possible...

greetings
44
Help / Re: Codeblocks working well in Windows10, but not in Linux Mint18
« Last post by stahta01 on June 17, 2019, 04:30:42 pm »
Is xterm installed?
If not, install it or configure Code::Blocks to use another terminal program.

Tim S.
45
Help / Codeblocks working well in Windows10, but not in Linux Mint18
« Last post by GeoffW1952 on June 17, 2019, 04:19:07 pm »
I have Codeblocks working well under Windows but not in Linux Mint18.  Being new to Linux, I'm not sure what is happening.  I installed Codeblocks as instructed on the website, however, it's simply not working.  The Splash screen opens and I can enter code.  The code will build without any reported errors.  The code compiles without any reported errors, but when I try and run it, I get an error message.

The error starts
Checking for existance: /home/geoff/Desktop/Hello_World (and seems to locate the executable)
The next error line has me baffled...
Executing: /xterm -T '/home/geoff/Desktop/Hello_World' -e /usr/bin/cb console runner "/home/geoff/Desktop/Hello_World" (in /home/geoff/Desktop)

And then Process terminated with status -1

How do I fix the problem?
46
Help / Re: Mouse wheel unwanted command
« Last post by albi98 on June 17, 2019, 01:18:43 pm »
Thanks, it worked!  :D
47
Development / Re: Crash with batch build on linux
« Last post by Miguel Gimenez on June 17, 2019, 11:30:53 am »
While investigating the crash I found this code snippet (not related directly to the crash) in compilergcc.cpp:

Code: [Select]
        if (!Manager::IsBatchBuild())
        {
            CodeBlocksLogEvent evt(cbEVT_REMOVE_LOG_WINDOW, m_pLog);
            Manager::Get()->ProcessEvent(evt);
        }

        {
            // TODO: This is wrong. We need some automatic way for this to happen!!!
            LogSlot &listSlot = logManager->Slot(m_ListPageIndex);
            delete listSlot.icon;
            listSlot.icon = nullptr;

            LogSlot &slot = logManager->Slot(m_PageIndex);
            delete slot.icon;
            slot.icon = nullptr;
        }

        m_pLog = 0;

The log window removal is made conditionally, but the nullifying of m_pLog always happens. Is this correct?
48
Development / Re: Crash with batch build on linux
« Last post by oBFusCATed on June 16, 2019, 10:21:19 pm »
@Miguel: If you look at the backtrace you'll see that this for the clear call is not nullptr, so your fix would probably be unhelpful in this case.
49
Help / Re: Mouse wheel unwanted command
« Last post by oBFusCATed on June 16, 2019, 10:19:47 pm »
If you're on windows disable the mousesap plugin. For linux this is the default behaviour of the system, so there is no way to disable this.
50
Help / Mouse wheel unwanted command
« Last post by albi98 on June 16, 2019, 07:54:04 pm »
Hi all,
Im a new user, and today it's the first time i'm using codeblocks.
It's very intuitive, but i dont know why when i click the mouse wheel, it pastes the text i've copied. it's quite annoyng because i usually click the mouse wheel to scroll the page.
Pages: 1 2 3 4 [5] 6 7 8 9 10