Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch Linux openFrameworks 9 Compile error #8

Open
cokomokoo opened this issue Feb 14, 2016 · 2 comments
Open

Arch Linux openFrameworks 9 Compile error #8

cokomokoo opened this issue Feb 14, 2016 · 2 comments

Comments

@cokomokoo
Copy link

/opt/openFrameworks/libs/openFrameworks/math/ofVec2f.h: 'ofVec2f& ofVec2f::average(const ofVec2f*, std::size_t)' üye işlevinde:
/opt/openFrameworks/libs/openFrameworks/math/ofVec2f.h:1363:17: UYARI: işaretli ve işaretsiz tamsayı ifadeler arasında karşılaştırma [-Wsign-compare]
  for( int i=0; i<num; i++) {
                 ^
/tmp/dex-ui-master/dex-ui-master/src/main.cpp: 'int main()' işlevinde:
/tmp/dex-ui-master/dex-ui-master/src/main.cpp:5:54: hata: could not convert 'ofGLProgrammableRenderer::TYPE' from 'const string {aka const std::__cxx11::basic_string<char>}' to 'std::shared_ptr<ofBaseRenderer>'
   ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
                                                      ^
/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:199: recipe for target 'obj/linux64/Release/src/main.o' failed
make[1]: *** [obj/linux64/Release/src/main.o] Error 1
make[1]: *** Bitmemiş işler için bekliyor....
make[1]: Leaving directory '/tmp/dex-ui-master/dex-ui-master'
/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: *** [Release] Error 2
@cokomokoo cokomokoo changed the title Arch Linux openFrameworks 9 Compiled error Arch Linux openFrameworks 9 Compile error Feb 14, 2016
@cokomokoo
Copy link
Author

openFrameworks 8 does not compile:

src/textButton.h: In member function 'void textButton::setText(std::__cxx11::string)':
src/textButton.h:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < breakUp.size(); i++){
                           ^
src/textButton.h:54:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i != breakUp.size() -1) text += deliminater;
                   ^
src/textButton.h: In member function 'void textButton::draw()':
src/textButton.h:133:23: warning: unused variable 'h' [-Wunused-variable]
                 float h = rectString.height;
                       ^
make[1]: *** [obj/linux64/Release/src/main.o] Error 1
make: *** [Release] Error 2
==> HATA: build() içinde bir hata oluştu.
    Çıkılıyor...

What can I do?

@vanishing
Copy link

For openframeworks 0.9+, replace main.cpp with:

#include "ofMain.h"
#include "ofApp.h"

int main( ){
  ofSetupOpenGL(1920,1200,OF_WINDOW)*/;
    ofGLWindowSettings settings;
    settings.setGLVersion(3,2);
    ofCreateWindow(settings);
  ofRunApp(new ofApp());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants