Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Help / Re: [Resolved] Resource Compiler fails without any helpful output
« Last post by Frank_CB on August 12, 2018, 07:15:55 pm »
Hello,

I probably should explain what my solution for this problem was.

The Resource Compiler could handle the resources outside of the IDE, but it failed inside.  The problem turned out to be that I had not included the resources directory in the Include Directories for the Resource Compiler inside the IDE.  Adding that directory solved that problem.

Regards

Frank
32
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by gurxsa on August 12, 2018, 11:19:46 am »
I am new, I am here
33
Using Code::Blocks / Re: How to tell Code::Blocks where wxWidgets is?
« Last post by oBFusCATed on August 12, 2018, 08:20:53 am »
This is a simple text search in the file you've sent:
Code: [Select]
$ grep wx-config TIA\ Designer.cbp
<Add option="&apos;/usr/local/bin/wx-config --cxxflags&apos;" />
<Add option="&apos;/usr/local/bin/wx-config --libs&apos;" />
<Add option="&apos;/usr/local/bin/wx-config --cxxflags&apos;" />
<Add option="&apos;/usr/local/bin/wx-config --libs&apos;" />
<Add option="`/usr/local/bin/wx-config --cxxflags`" />
<Add option="`/usr/local/bin/wx-config --libs`" />
So you have 4 time the incorrect version of the wx-config.

Go inspect the configurations for all targets and the project options. On the left side of the dialog Project -> Build options you should see a tree control. This control is used to select the build targets or project options. Please inspect and fix them all.
34
Using Code::Blocks / Re: How to tell Code::Blocks where wxWidgets is?
« Last post by spflanze on August 12, 2018, 01:15:50 am »
The two places you see it, I do not have control over. The opening and closing " you see after -Iinclude -c enclose a path to a file that was brought in to the project by right clicking the project in the Manager's Projects tab and selecting "Add files".

I have eliminated the wx global variable.

I still get the same error. I have attached the latest project file.
35
Using Code::Blocks / Re: How to tell Code::Blocks where wxWidgets is?
« Last post by oBFusCATed on August 12, 2018, 12:29:28 am »
1. When using wx-config you don't care for any other settings or paths
2. Please inspect all project settings and global settings and remove the inappropriate wx-config values. From your log it is pretty clear that you've entered different and incorrect (using '' instead of ``) in at least two places! I guess there are more. And make sure you don't mix different wx-configs. You'll suffer a lot if you do it and it will be really hard to debug!
36
Using Code::Blocks / Re: How to tell Code::Blocks where wxWidgets is?
« Last post by spflanze on August 11, 2018, 09:44:25 pm »
When these flags are in effect:
Code: [Select]
`/usr/local/bin/wx-config --cxxflags`
`/usr/local/bin/wx-config --libs`
The build log is:
Quote
-------------- Clean: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

Cleaned "TIA Designer - Debug"

-------------- Build: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

g++ -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -g '/usr/local/bin/wx-config --cxxflags' 'wx-config --cxxflags' -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -g -I../Libraries/cminpack-1.3.6 -Iinclude -c "/home/me/Engineering Software/Libraries/cminpack-1.3.6/cpp/dpmpar.cpp" -o obj/Debug/Libraries/cminpack-1.3.6/cpp/dpmpar.o
/usr/local/bin/wx-config: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

So now I get the same error whether  ' or `is used. This time I was closing and reopening Code::Blocks after this was changed and before the compile attempt.

When these flags are in effect:
Code: [Select]
'/usr/local/bin/wx-config --cxxflags'
'/usr/local/bin/wx-config --libs'
The build log is:
Quote
-------------- Clean: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

Cleaned "TIA Designer - Debug"

-------------- Build: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

g++ -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread '/usr/local/bin/wx-config --cxxflags' -g 'wx-config --cxxflags' '/usr/local/bin/wx-config --cxxflags' -g -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I../Libraries/cminpack-1.3.6 -Iinclude -c "/home/me/Engineering Software/Libraries/cminpack-1.3.6/cpp/dpmpar.cpp" -o obj/Debug/Libraries/cminpack-1.3.6/cpp/dpmpar.o
/usr/local/bin/wx-config: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
So now I get the same error. This time I was closing and reopening Code::Blocks after the change and before the compile attempt.

For the wx global variable in Settings => Global I have as base:
Quote
/home/me/Packages/wxWidgets-3.0.3
This path does not exist on my drive. The path:
Quote
/usr/include/wx-3.0-unofficial
does.  Is this what I should set wx to?
I believe this path was put there by the commands I used to do the install instrucitons at: http://codelite.org/LiteEditor/WxWidgets303Binaries





37
Probably it is a good idea to extend it with these capabilities.
38
Using Code::Blocks / Re: Issues With Color Syntax in Code Blocks
« Last post by softwarejedimaster on August 11, 2018, 01:49:45 pm »
.cbp are the project settings file.  The .cpp is the C++ source file.  Once you have saved your source file with the correct extension, you will then see the correct syntax highlighting colors.
39
Using Code::Blocks / Re: How to tell Code::Blocks where wxWidgets is?
« Last post by BlueHazzard on August 11, 2018, 11:01:41 am »
i do not understand your last answer... But in general:
Backticks
Code: [Select]
`this is executed`are executed by codeblocks and the stdout output of this program replaces the text within the backticks....

For example
Code: [Select]
`wx-config --cflags`will be replaced by
Code: [Select]
-I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
on my machine....

"Normal" ticks
Code: [Select]
'this is passed trough the command line'will expand to
Code: [Select]
'this is passed trough the command line'
In your last build log are still the normal ticks for the compiler flags...
If you have changed them and still get errors post the new build log...
40
I have looked into the squirrel api and it is not possible with the current api in codeblocks to do this within codeblocks...
The API is missing some folder traversing and file searching... : http://wiki.codeblocks.org/index.php/Scripting_commands#IO_namespace

@obfuscated: Is it worth to extend the scripting api? I think file handling is something essential for a embedded scripting api...
Pages: 1 2 3 [4] 5 6 7 8 9 10