Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 10:11:58 pm »
External Dependencies attached.  Not really sure how to use this.  It works as I expect when I build inside the IDE.  Why would it be different on the command line?
52
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 10:09:36 pm »
more
53
Help / Re: Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 10:08:56 pm »
Attached are screen shots of some of my settings
54
Help / Re: Building project on command line with dependencies
« Last post by stahta01 on September 14, 2023, 08:18:29 pm »
Do you have external dependency files setup under

Project -> Properties
Tab: Build targets
Button: dependencies

I am guessing the answer is yes; but, it is best to make sure.
55
Help / Building project on command line with dependencies
« Last post by rgleim on September 14, 2023, 07:33:10 pm »
I posted this question on Stackoverflow also: https://stackoverflow.com/questions/77106256/dependencies-not-being-built-from-command-line-execution-with-codeblocks

This is all within a Windows environment.

I have a main project that depends on 2 libraries (e.g. lib.a). When I rebuild through the Code::Blocks IDE, it cleans both library projects and the main project as expected. It then builds all 3 projects, libraries first, as expected with no issues.

I try to do the same thing from the command line:

Code
"C:\Program Files (x86)\STW\CodeBlocks\codeblocks.exe" src\emb\bwk\vehicle_monitor\pjt\vehicle_monitor.cbp --target="Release" --rebuild

But it doesn't clean or build the library projects like it does in the IDE, and therefore produces errors:

Code
tricore-g++.exe: error: ..\..\..\..\ext\micro_cdr\result\libmicro_cdr.a: No such file or directory
tricore-g++.exe: error: ..\..\..\..\ext\micro_dds\result\libmicro_dds.a: No such file or directory
Process terminated with status 1 (1 minute(s), 6 second(s))
2 error(s), 39 warning(s) (1 minute(s), 6 second(s))

I tried all command line options and I don't see any log files being produced either. I see them if I launch the IDE, but not when I just keep it to the command line.

Code
C:\>"C:\Program Files (x86)\STW\CodeBlocks\codeblocks.exe" "Z:\workspace\autoyard\src\emb\bwk\vehicle_monitor\pjt\vehicle_monitor.cbp" --target="Release" --rebuild --log-to-file --debug-log-to-file /d --verbose

Is there something I'm missing on the command line?
56
Using Code::Blocks / Re: Code::Blocks +GCC64 + MATLAB
« Last post by stahta01 on September 14, 2023, 07:07:31 pm »
So, I am guessing you have no toolchain setup problem; since you failed to post the information needed to setup CB to use the Compiler.

Edit: I have no idea how to use MATLAB; but, the MATLAB directions suggested only a certain version of the MINGW compiler are supported.

Tim S.
57
Using Code::Blocks / Re: Code::Blocks +GCC64 + MATLAB
« Last post by dbs584 on September 14, 2023, 07:02:43 pm »
My compiler is MSYS2 downloaded from official site, updated.
The code is simple
===================
#include <stdio.h>
#include <stdlib.h>
#include <engine.h>

int main() {
    Engine *ep;
    mxArray *result = NULL;

    if (!(ep = engOpen(NULL))) {
        fprintf(stderr, "No MATLAB Engine\n");
        return 1;
    }

    engEvalString(ep, "x = 5; y = x^2;");

    result = engGetVariable(ep, "y");
    if (result) {
        double *data = mxGetPr(result);
        printf("Square: %lf\n", data[0]);
        mxDestroyArray(result);
    }

    engClose(ep);

    return 0;
}
=================
The settings are "Compiler - Search directories - Compiler - C:\Program Files\MATLAB\R2022a\extern\include\"
"Compiler - Search directories - Linker - C:\Program Files\MATLAB\R2022a\extern\lib\win64\mingw64\"

58
Nightly builds / Re: The 01 September 2023 build (13344) is out.
« Last post by Miguel Gimenez on September 14, 2023, 01:59:39 pm »
Quote
Is it possible to revert 11858 from nightly builds until a proper fix is found?
I do not know, and the debugger plugin maintainer is no longer around. Look at the plugin history after that commit or just revert it.
59
Announcements / Re: Code::Blocks on FreeBSD
« Last post by MichaelAgarkov on September 14, 2023, 08:31:44 am »
I think it would be awesome if there would be official binaries for FreeBSD available for download if possible. It's not necessary, but would be amazing. Maybe do that with the new upcoming release?
60
Help / Re: The best compilers on Windows XP
« Last post by MichaelAgarkov on September 14, 2023, 08:24:12 am »
Quote
Looks like the bots are going crazy here. I wonder, why differ the posts slightly? Are these constructed from templates that offer different choices for certain positions or is it just slightly different output from an AI?

It seems to be the case, unfortunately. It's hard to tell people and AI apart nowadays. But at least now they are trying to be somewhat helpful(?)
Pages: 1 2 3 4 5 [6] 7 8 9 10