openFrameworks 0.9 + QtCreator

Hello,

First off, thanks a lot for the great work put into the new version 0.9 of openFrameworks which looks really great !

C++11 + new projectGenerator + QtCreator support among other things !

Just some feedback :

  • i tried to use Qt as my IDE. I launched the OSX script for QtCreator. I was able to create an OF project inside QtCreator but no source files / project tree on left column. I had to manually add Desktop target as only iOS and iPad were the only one created, then everything ran ok.

  • I was able to build a project with a simple Gui. Built ok and app launched but in a really small window and tiny UI. Something dealing with HiDPI i guess ?

thanks again for the hard work

Hello,

I am also facing another problem : i am trying to build some projects using the new oF 0.9 using QtCreator under Debian Jessie x64

I ran the qtcreator script, and i am able to create a new project using QtCreator. The problem is not every addon is listed in the addon page (see difference between what is listed and what is present in the addons folder on the attached screenshot)

any suggestion ?

thanks

ok nevermind i didn’t understand that third party addons must be added manually… strange that ofxTween appears in the list though…

yes this is a limitation of the current wizard, in future versions it’ll allow to add non-officila addons from the wizard ubt right now you have to add them afterwards on the project file.

not sure why ofxTween is showing up i’ll take a look and remove it

Also, i notice that it is not possible to add existing files from QtCreator itself when no .pro file is used. This must be done manually in the qms file.

i am trying to build a project under ubuntu 14.04.3 x64 with Qt Creator.

The project is building under Debian Jessie.

Under Ubuntu i get the following error :

 error: unrecognized command line option ‘-std=gnu++14’

i forgot to bring that down for linux where older versions might not support c++14 yet. you can change it in libs/openFrameworksCompiled/project/qtcreator/modules/of/of.qbs

around line 436 change -std=gnu++14 with -std=c++11

ok thanks !

Is there linux compatibility restrictions ? at least in Ubuntu. I mean i am trying to build under Ubuntu Wily but the install_dependencies.sh script complains about non satisfied dependencies.

there’s a problem with latest ubuntu and the install dependencies script it can easily be solved by installing some dependencies manually:

https://github.com/openframeworks/openFrameworks/issues/4546

this is more about libopencv :

Tested on fresh installs of Xubuntu and Ubuntu 15.10 Wily 64 bits

yes someone else has reported that too, these are errors in ubuntu, i’ll report them tomorrow in their issue tracker and see if there’s some kind of workaround on our side

yes it seems more related to an ubuntu issue. I can’t even install it manually

Hello,

I just installed OpenFrameworks (from GIT), msys2 and QtCreator on Windows 10 x64. Windows10 updated to the newest build yesterday.
I followed: http://openframeworks.cc/setup/msys2/ and http://openframeworks.cc/setup/qtcreator

There is a mistake in the walkthrough as reported in an other message.

cd your_oF_directory/scripts/win_cb/msys2
./install_dependencies.sh`

But this I managed! :smile:

I added both folders to the PATH of the system.

When I try to compile the example in the explanations in a MinGW32 I get a binary with loads of missing dll if I try to run it. Is this normal? Should I add more folders to the PATH of the system?

If I try to import the example using the wizard in QtCreator I get for all the GCC compilers I’ve tried that my system is not supported by the makefile.

C:\of_v0.9.0\libs\openFrameworksCompiled\project\makefileCommon\config.shared.mk:97: *** This makefile does not support your operating system. Stop.

compile-output

19:19:42: Running steps for project soundBufferExample…
building openFrameworks library
compiling main.cpp
compiling ofApp.cpp
c:/msys64/usr/bin/make.exe Debug -j4
0 [main] make 24464 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
452 [main] make 24464 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
0 [main] make 13488 fork: child -1 - forked process 24464 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:45: fork: Resource temporarily unavailable
385581 [main] make 7444 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
385967 [main] make 7444 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
506647 [main] make 13488 fork: child -1 - forked process 7444 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:53: fork: Resource temporarily unavailable
743025 [main] make 24348 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
743404 [main] make 24348 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
854980 [main] make 13488 fork: child -1 - forked process 24348 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:55: fork: Resource temporarily unavailable
1131603 [main] make 25148 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
1131989 [main] make 25148 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
1237512 [main] make 13488 fork: child -1 - forked process 25148 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:55: fork: Resource temporarily unavailable
1467872 [main] make 22448 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
1468284 [main] make 22448 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
1584083 [main] make 13488 fork: child -1 - forked process 22448 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:70: fork: Resource temporarily unavailable
1826350 [main] make 10468 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
1826752 [main] make 10468 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
1936587 [main] make 13488 fork: child -1 - forked process 10468 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:84: fork: Resource temporarily unavailable
2170738 [main] make 24504 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
2171194 [main] make 24504 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
2291744 [main] make 13488 fork: child -1 - forked process 24504 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:86: fork: Resource temporarily unavailable
2511502 [main] make 11364 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
2511938 [main] make 11364 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
2629911 [main] make 13488 fork: child -1 - forked process 11364 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:88: fork: Resource temporarily unavailable
2835900 [main] make 24876 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
2836306 [main] make 24876 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
2952422 [main] make 13488 fork: child -1 - forked process 24876 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:90: fork: Resource temporarily unavailable
3160406 [main] make 25068 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
3160972 [main] make 25068 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
3279891 [main] make 13488 fork: child -1 - forked process 25068 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:92: fork: Resource temporarily unavailable
3484756 [main] make 14140 c:\msys64\usr\bin\make.exe: *** fatal error in forked process - fork: can’t reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
3485192 [main] make 14140 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
3623517 [main] make 13488 fork: child -1 - forked process 14140 died unexpectedly, retry 0, exit code 0x100, errno 11
make: makefileCommon/config.shared.mk:94: fork: Resource temporarily unavailable
makefileCommon/config.shared.mk:97: *** This makefile does not support your operating system. Stop.
HOST_OS=
HOST_ARCH=
Process failed with exit code 2.
The following products could not be built for configuration qtc_Desktop_1e25ace7-debug:
soundBufferExample
openFrameworks
Error while building/deploying project soundBufferExample (kit: Desktop)
When executing step “Qbs Build”
19:19:50: Elapsed time: 00:08.

Is there anything I missing here?

edit. I can start a new thread or you can move this if you think it deserves its own thread.

hi,
how can I add non-official addons in the QTCreator project?
what is the file to edit? any sample?
thank you
Bruce

hi @bruce.lane,

it should be the top level QBS file. just search for of.addons tag in there. depending on if you added an addon during the wizard, of.addons will be commented out or filled with the selected addons.

best,
felix

yes look for the .qbs project with the name of your project

hi @arturo,

now I have issues with addons in qt creator myself. Trying to build projects which are using ofxLibwebsockets. I can build and run them perfectly with eclipse / make but not via your Qt Creator plugin. Not sure what the difference is but I get:

/home/felix/oF/openFrameworks/addons/ofxLibwebsockets/libs/libwebsockets/lib/linux64/libwebsockets.a(extension-deflate-frame.c.o): In function `lws_extension_callback_deflate_frame':
extension-deflate-frame.c:(.text+0x12e): undefined reference to `inflate'
extension-deflate-frame.c:(.text+0x1cf): undefined reference to `inflateInit2_'
extension-deflate-frame.c:(.text+0x343): undefined reference to `inflateEnd'
extension-deflate-frame.c:(.text+0x696): undefined reference to `inflateEnd'

I went New Project -> OpenFrameworks -> Import existing Application. I tried both using addons.make only and using the of.addons tag in the qbs file. The example I’m trying to build is the example-client-helloworld. Any idea?

Btw what is the difference between only using addons.make and the qbs of.addons tag?

Thanks,
Felix

this is a bug in old addons, just comment every line that looks like:

ADDON_DEPENDENCIES =
ADDON_CFLAGS =
...

to look like:

# ADDON_DEPENDENCIES =
# ADDON_CFLAGS =
...

the way we parse the addon_config.mk now is by overwritting any value from parsing the file system if we encounter any = and adding to it if we find += so those lines are making the parser not include any library, source…

the makefiles should be doing the same actually so not sure why it might be working there but it shouldn’t : )

1 Like

it seems I’m not there yet…
I made a new “untitled” project from qtCreator openFrameworks template…

thx @arturo but no luck,

I did some try and error but even deleting addon_config doesn’t change anything and normal make doesn’t care at all (make works without addon_config).

Something weird going on? Compiles fine but linker fails as described above.

How does the makefile know which lib to pick (linux64) without addon_config.mk? Or are some or most of the addon_config.mk information redundant?

Compared qtcreator and makefile outputs but can’t see big differences. They seem to pick the same libs and stuff.

[ubuntu 15.10 with current master]