bonafid3 / FourierGL

Fourier transform demo app
17 stars 5 forks source link

Ubuntu Compile #1

Closed NoahDragon closed 7 years ago

NoahDragon commented 7 years ago

Thanks for this app, it's really intuitive to demonstrate the Fourier transform.

However, I always get the error that the opengl32.lib can't find under Ubuntu OS. I found the opengl32.lib is for VS build. I'm not familiar with QT and OpenGL, is there an alternative library in the Ubuntu to make the compilation work?

bonafid3 commented 7 years ago

I have modified the .pro file slightly and should work on both Linux and Windows. You will need to re-run qmake for the changes to take effect. Please give some feedback in any case. Thank you!

NoahDragon commented 7 years ago

Thank you. I will try it tonight.

NoahDragon commented 7 years ago

The program crashes after compile. Not sure the reason.

Starting /home/projects/lab/build-fouriergl-qt5-Debug/fouriergl...
The program has unexpectedly finished.
/home/projects/lab/build-fouriergl-qt5-Debug/fouriergl crashed
bonafid3 commented 7 years ago

Please try to run it in debug mode and you will see where it crashed. Send me the Stack info or just take a screenshot.

NoahDragon commented 7 years ago

I tried the debugger, it crash at the beginning, pop up a dialog showing that "segments fault"

image

bonafid3 commented 7 years ago

Please show the application output from Qt creator.

screenshot 2017-10-15 21 53 15

NoahDragon commented 7 years ago

Here is my screenshot. Sorry, I'm not familiar with QT build, there is only one line in the output.

image

bonafid3 commented 7 years ago

Strange. Please try to create a new Qt project a Qt Gui application and lets see it works or not. Meanwhile I will install Ubuntu to one of the machines in the office to see what is going on.

ponzifex commented 7 years ago

I have tried on Mac OS X yet and modified to code to run with OpenGL core profile. You may want to update your source and try it again now. This week I will have an Ubuntu machine so I will be able to try it.

ponzifex commented 7 years ago

The MAC version is almost ok, except the textures. VAO was needed for the core OpenGL profile!

screen shot 2017-10-17 at 11 31 30 am
ponzifex commented 7 years ago

The textures are working now on MAC OS X!

screen shot 2017-10-17 at 1 44 24 pm
NoahDragon commented 7 years ago

@ponzifex thank you for providing a quick fix. The issue still remains on my Ubuntu system.

The Ubuntu version is 16.04, and QT version is 5.

bonafid3 commented 7 years ago

Ok, please wait until I can try this on a Linux machine and I will publish the modifications.

bonafid3 commented 7 years ago

Compiles and runs on Linux too! Tested on Ubuntu 16.04 LTS 32bit with Qt5.5

screenshot from 2017-10-20 16-41-15

NoahDragon commented 7 years ago

@bonafid3 thank you very much. Will give it a try tonight.

NoahDragon commented 7 years ago

It works great. Thank you very much!