Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - magneonx

Pages: [1] 2 3 ... 10
1
General / Need help in creating a .dll/.so from .obj files?
« on: March 02, 2015, 09:07:55 am »
I don't want to do a long post on my question. I already done my research on how C++ compiles the code we write and after compilation phase, it gives .obj files which is passed to the linker to become an executable (i.e. .exe) or a shared library (.dll/.so). Now having this knowledge, I wanted to create a simple .cpp and .hpp file, get the .obj for this files and generate the .lib or .so for this project. I want it not tied to any platform, compiler, or IDE, unless it really can't be helped. Is this a complicated process that needs heavy study and research?

I also found out Cmake files used to generate project templates so it can be loaded to an IDE. It generates the library file (both static and dynamic) appropriate with the IDE, Compiler and the Platform I am using (.dll for Windows) which I used to develop games with. But I don't know how to do similarly for my project.

I hope you can enlighten me with steps after having .obj files and turning this into .dll/.so. Do I need a specific configuration that tells my whatever IDE or compiler that they are building a library not binary? Such that when I press the compile button on whatever IDE it produces the .lib/.so on the bin folder. I have seen library templates on both CodeBlocks and VSE, but I think this will not help me achieve what I wanted to do by tying my code to the IDE and Compiler I am using.

I hope you could provide me insights and enlightenment on this topic. Also, please correct me if I got the wrong perspective. Thank you.

2
General / Re: Development concerns about SFML for Android?
« on: January 27, 2015, 06:21:53 am »
Wow, you are wonderful guys, I've been researching for awhile if its possible. I should have asked long time ago. Thank you.

3
SFML projects / Re: SFBL (SFML Box2D Light)
« on: January 26, 2015, 04:03:43 am »
This is cool. Very inspiring. I am planning to develop one as well. I will be checking on this project from time to time. Thanks for sharing!

4
General / Re: first program, help making grid
« on: January 26, 2015, 03:59:39 am »
I remember doing something like this before, though mine is not mathematically expressive as yours. I am using similar grid on the project I am using now. I would like to share with you what I have done:

        for (int i = 0; i <= fieldSize.y; ++i)
        {
                sf::RectangleShape hline;
                hline.setSize(sf::Vector2f(fieldSize.x * offset, 1.0f));
                hline.setPosition(sf::Vector2f(pos.y, i * offset));
                hline.setFillColor(sf::Color::Blue);
                horizontalGrid.push_back(hline);
        }

        for (int i = 0; i <= fieldSize.x; ++i)
        {
                sf::RectangleShape vline;
                vline.setSize(sf::Vector2f(1.0f, fieldSize.y * offset));
                vline.setPosition(sf::Vector2f(i * offset, pos.x));
                vline.setFillColor(sf::Color::Blue);
                verticalGrid.push_back(vline);
        }

Though I admit this is not brilliant, I use this code for awhile as a placeholder so I would know my objects are on the right offsets when moved. You could try this one. I created 2 vectors one for horizontal lines and vertical lines.

Vectors are like containers for objects. It is a very important concept in programming that I think by now you should learn. Vectors are part of the Standard Template Library which provides you generic containers where you can put objects. It acts like a list, or special form of array. It can shrink and grow on runtime as well. Do not confuse vector(containers) with vector(physics) though both refers to different thing.

Here is my favorite link on the docu:
http://www.cplusplus.com/reference/vector/vector/push_back/

Controlling the loops controls the number of lines generated per orientation.

Might work for you. I hope it helps.

5
General / Development concerns about SFML for Android?
« on: January 26, 2015, 03:51:31 am »
Hi, I have a few doubts regarding SFML Android but it is not the system in general but the development itself. You see, I am completely addicted developing my projects on Visual Studio and on Eclipse Kepler. Though I prefer coding C++ projects on Visual Studio my primary concern arises when SFML is available for Android. Would it force users to use say Eclipse instead of Visual Studio? As far as I have tried, Android on Visual studio is like a paid plug in, or not available on Express Editions, though I haven't tried the Community Version yet. I would like to continue developing application on Visual Studio. I haven't tried SFML for Android and it seems the development is underway and I am wondering if I have to switch IDE once I develop games for PC and Mobile.

TIA!


6
Can I ask why is on src? I expect it to be placed on lib/bin folder just like on SFML/SFGUI. I don't if I remember correctly I built some of thor's earlier versions and I am able to expect them on same folder (lib/bin). This is the reason why my previous build never works! Since my PATH is always setup to thor-build/lib. I expect all the output to be there. Is there a way for me to set it up there?

7
sorry It seems I get frustrated sometimes, browsing the build folders I am able to find it here: <Home dir>\Thor-master-build-vs\src\Debug\ I was looking for it in folder with names similar lib/bin folder. It was place on the build folder's src folder! Problem is fixed thanks for helping :)

8
I notice that the file output is short. And it builds so fast as if nothing is being built at all. On previous try I am able to make it work. It keeps erroring out on sf::Time division. I just redownloaded both SFML and Thor source a millionth time today and able to make it to work. Visited build folders -- EMPTY.

There something went wrong.

9
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/libraries/Thor/build/branches/Thor-master-build-vs/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/libraries/Thor/build/branches/Thor-master-build-vs/src/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: thor, Configuration: Debug Win32 ------
2>  Building Custom Rule C:/libraries/Thor/source/branches/Thor-master/src/CMakeLists.txt
2>  CMake does not need to re-run because C:\libraries\Thor\build\branches\Thor-master-build-vs\src\CMakeFiles\generate.stamp is up-to-date.
2>  Action.cpp
2>  ActionOperations.cpp
2>  Affectors.cpp
2>  Arrow.cpp
2>  BigSprite.cpp
2>  BigTexture.cpp
2>  CallbackTimer.cpp
2>  ColorAnimation.cpp
2>  ColorGradient.cpp
2>  ConcaveShape.cpp
2>  Connection.cpp
2>  Distributions.cpp
2>  Emitters.cpp
2>  FadeAnimation.cpp
2>  FrameAnimation.cpp
2>  InputNames.cpp
2>  Joystick.cpp
2>  Particle.cpp
2>  ParticleSystem.cpp
2>  Random.cpp
2>  Generating Code...
2>  Compiling...
2>  Shapes.cpp
2>  StopWatch.cpp
2>  Timer.cpp
2>  ToString.cpp
2>  Triangulation.cpp
2>  Trigonometry.cpp
2>  UniformAccess.cpp
2>  Generating Code...
2>     Creating library C:/libraries/Thor/build/branches/Thor-master-build-vs/src/Debug/thor-d.lib and object C:/libraries/Thor/build/branches/Thor-master-build-vs/src/Debug/thor-d.exp
2>  thor.vcxproj -> C:\libraries\Thor\build\branches\Thor-master-build-vs\src\Debug\thor-d.dll
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Building Custom Rule C:/libraries/Thor/source/branches/Thor-master/CMakeLists.txt
3>  CMake does not need to re-run because C:\libraries\Thor\build\branches\Thor-master-build-vs\CMakeFiles\generate.stamp is up-to-date.
3>  Build all projects
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

Here is the output file generated.

10
What are your cmake settings? How do you start the building?

I am not exactly sure. I always follow the one on the tutorials. Regarding cmake file where can I find it? Give me filepath. I'll paste it here.

11
General discussions / Re: SFML port for Windows Phone
« on: October 13, 2014, 08:34:21 am »
Damn, there's a lot to wait for! Can't wait to see SFML on Windows Phone.

12
So I am able to build from source but when I visited the build folder, I can't seem to find the bin files? Any ideas? I am building Thor from source with SFML master from github. I downloaded Thor from github as well.

13
Alright nvm I got it to work. I just started a new project and reconfigured it, used the sames steps from the previous project but did it only for Debug Modes. I replace the settings of the previous project with the one that works but still the same thing. I can continue my work tomorrow. I am afraid that the project I am working on right now will experience the same dilemma.

Thanks eXpl0it3r for pointing out my mistakes. You've been a great help!

14
I am really frustrated by now. I think because this fail the time I need it the most! This is really eats up a lot of my time. I need to finish my project 100% this month and this just getting on my way.

so having said I am linking both the debug and release version of thor then would I suppose to link on just debug version?

I am so sorry if I am little uneducated with this release and debug modes. I just got over with dynamic and static linking. I don't even know its possible to link on both modes! I mean c'mon who does that? Now you said I did, I am shock and confused. It is a mode in most IDE I never change. I always compile my codes on DEBUG. Now I have to deal with debug and release. I needed to link on debug config.

Please help me fix this problem.

15
I wanted to link just debugging and link to release for future. How am I suppose to this? How can I fix this?

Pages: [1] 2 3 ... 10
anything