How to use wxWidgets on eclipse under Ubuntu - eclipse

I am using ubuntu 15.04 under VMware Player.
I have eclipse 3.8.1 and wxWidgets 3.0.
I have installed wxWidgets by:
sudo apt-get install libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dev wx3.0-headers wx-common libwxbase3.0-dbg libwxgtk3.0-dbg wx3.0-i18n wx3.0-examples wx3.0-doc
I open a new c++ project with the following setting:
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Compiler -> Miscellaneous -> Other flags -> append "`wx-config --cxxflags`"
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Linker -> Miscellaneous -> Linker flags -> append "`wx-config --libs`"
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Compiler -> Includes -> add "/usr/include/wx-3.0-unofficial/"
I then copy the example from here. The problem is that those declaration of the variables defined by wxWidgets did not found. Anyone knows how to solve it?

Related

Configure Eclipse for C++ with Eigen library

This might be super silly question - but how do i make my eclipse identify Eigen libraries. I installed Cygwin64 (with devel option which installed Eigen under D:/Cygwin64/usr/include/Eigen3
I included Cygwin root folder in path env variable.
After this, i opened Eclipse for C++ and when i try to include Eigen #include <Eigen/Dense> it says Unresolved inclusion : <Eigen/Dense>
I googled for a while, and tried various options, but not working. How do i make my program include Eigen libraries? (like prj prop --> c++ build --> setting --> link --> misc --> adding eigen folder)
Is there a setting in eclipse where i need to specifically include it in build path?
---Update ----
I did the following
Prop --> C/C++ general --> Paths & Symbols --> GNU C++ --> added Eigen3 folder
after this, the error is changed to fatal error : Eigen/Dense No such file or directory
Appreciate your help!
I wonder if you have a resolution no longer. But I have resolved this problem with the following steps.
1. proj prop -> C/C++ General -> Paths and Symbols -> (GNU C++) Source Location -> Link Folder -> check "Link to folder..." -> Browse -> select eingen3 folder(eg. /usr/include/eigen3) -> OK -> Apply
2. (proj prop -> C/C++ General -> Paths and Symbols ->) (GNU C++) Includes -> Add -> Workspace -> select "eigen3" -> OK -> Apply
3. Click OK and close the Properties window.
The progress bar is moving, and Analyzing is finished, then you can see green terms related Eigen.
I hope this makes you help.

Eclipse and PHPUnit: "The import PHPUnit\Framework\TestCase cannot be resolved"

I'm starting with PHPUnit, and it works fine so far. I just got one problem:
Eclipse (Oxygen.3) is telling me in this line:
use PHPUnit\Framework\TestCase;
"The import PHPUnit\Framework\TestCase cannot be resolved"
I went to Window -> Preferences -> PHP -> Tools -> PHPUnit and added the path to my phpunit.phar. But this didn't help.
I went to Window -> Preferences -> PHP -> Source Paths -> Libraries and tried to import my phpunit.phar. But this results in an error "The selected file is not a valid user library data file".
Any other ideas how to get rid of this error?
I was having the same problem and this solution worked for me:
Going into Project > Properties
Under PHP > Include Path, pick the "Libraries" tab.
On "Add External PHARs..." select the PHPUnit framework file on your system (phpunit.phar).

Coco creator using with VS code

It's not working code autocompletion and definition in vs code .
I have finished to create creator.d.ts and jsconfig.json.
I have some expected solutions..
Create Project with Typescript
enter image description here
Configuration in Editor
enter image description here
(Developer -> VS Code Workflow -> Add Typescript Config)
(Developer -> VS Code Workflow -> Compile Task)
Install TsLint in VSCode (Cmd + Shift + P -> "install Extensions" -> TsLint)

I am trying to install pygraphviz but received the following error

I am trying to install pygraphviz, I tried to do so with the following command but unfortunately it is not working. Can anyone help how to fix it?
C:\Python27\Lib\site-packages\pygraphviz-1.2>python setup.py build -c mingw32
library_path=c:\Program Files (x86)\Graphviz 2.28\bin
include_path=c:\Program Files (x86)\Graphviz 2.28\include\graphviz
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\pygraphviz
copying pygraphviz\agraph.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\graphviz.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\release.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\version.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\__init__.py -> build\lib.win32-2.7\pygraphviz
creating build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\test.py -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\__init__.py -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\attributes.txt -> build\lib.win32-2.7\pygraphviz\test
copying pygraphviz\tests\graph.txt -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\layout_draw.txt -> build\lib.win32-2.7\pygraphviz\tes
copying pygraphviz\tests\unicode.txt -> build\lib.win32-2.7\pygraphviz\tests
running build_ext
building 'pygraphviz._graphviz' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\pygraphviz
gcc -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\Graphviz 2.28\include
raphviz" -Ic:\python27\include -Ic:\python27\PC -c pygraphviz/graphviz_wrap.c
build\temp.win32-2.7\Release\pygraphviz\graphviz_wrap.o
error: command 'gcc' failed: No such file or directory
Missing gcc C compiler? There are some tips for compiling PyGraphviz with Windows at Installing PygraphViz on Windows, Python 2.6

Why is Eclipse ignoring my Cross GCC tool prefix?

I am attempting to build a sample project using the ARM Embedded GCC toolchain; for this, I am using Eclipse's internal builder.
In the settings, Project Properties -> C/C++ Build -> Settings -> Tool Settings -> Cross Settings, Prefix is set to arm-none-eabi- and Path is set to the path of the ARM toolchain (C:\Program Files (x86)\GNU Tools ARM Embedded\4.7 2012q4\bin).
When I attempt to build the project, I get something that looks like this:
17:58:13 **** Incremental Build of configuration Debug for project template_test ****
Info: Internal Builder is used for build
gcc -IC:/foo/Libraries/STM32F0xx_StdPeriph_Driver/inc -IC:/foo/Libraries/CMSIS/Device/ST/STM32F0xx/Include -IC:/foo/Libraries/CMSIS/Include -O0 -g3 -Wall -c -fmessage-length=0 -o "Libraries\\STM32F0xx_StdPeriph_Driver\\src\\stm32f0xx_adc.o" "..\\Libraries\\STM32F0xx_StdPeriph_Driver\\src\\stm32f0xx_adc.c"
Cannot run program "gcc": Launching failed
... and then an error about how gcc is not found in my path. Which, of course, it is not. There is in my path, however, an arm-none-eabi-gcc.exe, but for some reason, Eclipse is not inclined to run that one.
Why not?
I have discovered that if I change the "Command" for "Cross GCC Compiler" (Project Properties -> C/C++ Build -> Settings -> Tool Settings -> Cross GCC Compiler -> Command) to "gc" (from "gcc") then Eclipse attempts to run "arm-none-eabi-gc" instead of "gc". I feel like that's an important clue, but I don't understand it.
Its looks like an update problem. When I include the prefix in the command, it then tried to use the prefix twice. I removed the prefix from the command and now it works as intended.
I had a similar problem. I added the path to the prefix and it seemed to work. You could also try using a short windows file path: c:/Progra~2/ ...