Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: Can not run binary from Code::Blocks
« Last post by jury on Today at 07:34:17 pm »
Project -> Properties -> <your target> -> Output filename controls what is being run.
Probably cmake doesn't generate it correctly or you need to select the proper target.

Seems you are right that cmake didn't generate is correctly. There was only binary name there, so I though that setting "Execution working dir" together with this "Output filename" should somehow work together. But it seems not. I have changed "Output filename" to the whole path with binary name and it ... WORKS! :D
Thanks. I have now my first cmake project working properly. Phew, it was a lesson.
2
Using Code::Blocks / Re: Can not run binary from Code::Blocks
« Last post by oBFusCATed on Today at 07:22:19 pm »
Project -> Properties -> <your target> -> Output filename controls what is being run.
Probably cmake doesn't generate it correctly or you need to select the proper target.
I'm not 100% sure that running more complex executables is working correctly for cmake generated projects.
Some simple targets work, but if the target needs an installation step in order to work, I doubt it will work from C::B.
3
Using Code::Blocks / Can not run binary from Code::Blocks
« Last post by jury on Today at 07:18:15 pm »
After the binary is built, it does not run from Code::Blocks.
In "Build log" the command for running is:
Code
------------- Run: all in gemrb (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/jury/gemrb-0.7.0/build/gemrb
Set variable: LD_LIBRARY_PATH=.:
Executing: xterm -T gemrb -e /home/jury/gemrb-0.7.0/build/gemrb (in /home/jury/gemrb-0.7.0/build/gemrb)

It looks like its missing the binary name, as for my understanding it should execute something like this: /home/jury/gemrb-0.7.0/build/gemrb/gemrb
And when I copy this command from Code::Blocks to terminal window, it of course does not execute anything, as /home/jury/gemrb-0.7.0/build/gemrb is just a path ending with a folder name. When adding a binary name to this path, it runs fine.
So, what do I have to tweak in project options, so the command for running binary will work properly?

What I have done so far:
- set directory (as it was blank) in Project -> Properties -> Project settings -> Execution Directory
- set directory (as it was blank) in Project -> Properties -> Build targets -> Execution working dir
I have tried absolute and relative paths for above options, but none made any difference.

System: latest PCLOS Xfce
Code::Blocks: 20.3

(if it matters its a project made by cmake with option: -G "CodeBlocks - Unix Makefiles")
4
Using Code::Blocks / Re: How to get the C generated code ?
« Last post by oBFusCATed on Today at 04:28:09 pm »
Yes. The principles and operation is the same on all OSes (mostly).
5
Using Code::Blocks / Re: Undefined reference
« Last post by jury on Today at 04:12:32 pm »
Just for the reference.
I managed to build this project. I used Meld to check out differences between the files cmake generated for Code::Blocks (cmake with -G "CodeBlocks - Unix Makefiles") and files generated by cmake in command line and besides a lot of differences regarding Code::Blocks I found out that in CMakeCache.txt for CB there is this libpython2.7a used and in CMakeCache.txt generated in command line there is libpython2.7.so
I changed this .a to .so and the project builds fine.
Thanks all for help.
6
Using Code::Blocks / Re: How to get the C generated code ?
« Last post by R1S8K on Today at 12:38:57 pm »
Sorry I forgot to mention that I use Windows 10.

Quote
The easiest way is to do a build of the file, copy the command, modify it and run it in terminal.

Can this  be done in Windows ?
7
Using Code::Blocks / Re: How to get the C generated code ?
« Last post by oBFusCATed on Today at 12:31:43 pm »
We don't have anything integrated for the task.
The easiest way is to do a build of the file, copy the command, modify it and run it in terminal.
If you do this often you can set up a tool for it.

Here are some hints about the flags needed: https://stackoverflow.com/questions/2224334/gcc-dump-preprocessor-defines
8
Using Code::Blocks / How to get the C generated code ?
« Last post by R1S8K on Today at 12:25:32 pm »
Hi,

I'm using macros and having problem knowing how the code works. So one told me to use a flag that output the expanded generated code.

But I don't know how to use it in codeblocks.
9
Nightly builds / Re: The 11 May 2021 build (12446) is out.
« Last post by oBFusCATed on Today at 11:37:31 am »
I got first RPT (see attachment) on close C::B after usage with new project.
Steps to reproduce?
Does it happen every time?
Does it happen with older night builds?
10
Nightly builds / Re: The 11 May 2021 build (12446) is out.
« Last post by Miguel Gimenez on Today at 10:03:38 am »
The bug is here  :P

Code
DestoryWindows()
Pages: [1] 2 3 4 5 6 ... 10