This is my first post and I will explain the topic.
I have just downloaded the windows 64bit version of Panda3D and installed it.
I don’t use Visual Studio as my ide but I do use Codeblocks and the mingw compiler.
I want to program in C++ and not python, but all the tutorials seem to be in python.
So from the manual I typed in the first example code for opening a window and did the includes.
Obviously the first error I get is that it can’t find these files. I haven’t tried a full path yet, because I am thinking I need to configure codeblocks for panda3D first.
Can anybody help me get panda3D working with codeblocks in windows 10?
I added all those libraries in project/build options/ Linker settings, but I am still getting the error.
minmax.h not found.
I have been using irrlicht for ages, and I am looking to panda3D because irrlicht is sadly lacking in some aspects, and so this is the first time I have ever used Panda.
I really want to use c++ because I have been programming in c++ for years and I have never used python before.
Unfortunately there are tons of setup videos on youtube for python but nothing for c++.
I am feeling a little despondant.
I installed visual C++2010 hoping that would help.
I then set codeblocks to use the visual C++ 2010 compiler.
At first I had the error about not finding io.h and I solved that by including the VC include folder, and finally something was happening.
After a lenghy compile shot up the screen I finally get another error.
fatal error LNK1112: moudle machine type ‘x64’ conflictswith target machine type ‘x86’
I installed the 64bit version of codeblocks because I had a 64bit machine, so I wonder if I try the 32 bit version it might solve that error.
Would you believe I have spent quite a few days of failure so far heh heh.
I really want to port over a game I started in irrlicht.
It seems codeblocks is linking to the x86 sdk. So now I am installing the 64 bit microsoft sdk, and hopefully that will solve it.
Found this article here. http://forums.codeblocks.org/index.php?topic=6801.0
I have my fingers crossed this will work
PS. Been having trouble installing the 64 bit sdk. Keeps giving me an installation error nooooooooooooo
A problem occurred while installing selected Windows SDK components.
Installation of the “Microsoft Windows SDK for Windows 7” product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at go.microsoft.com/fwlink/?LinkId=130245.
I for myself have found a formula for trouble-free compilation.
Example WIN 7, 64bit.
step 1. Delete all version Microsoft .NET Framework.
step 2. Install Microsoft.NET Framework 4.
step 3. Install SDKs v7.1.
step 4. Panda3d compile from source.
step 5. Create file game.cpp
insert:
#include “C:\built_x64\include\pandaFramework.h” #include “C:\built_x64\include\pandaSystem.h”
int main(int argc, char *argv[]) {
//open a new window framework
PandaFramework framework;
framework.open_framework(argc, argv);
//set the window title to My Panda3D Window
framework.set_window_title(“My Panda3D Window”);
//open the window
WindowFramework *window = framework.open_window();
//here is room for your own code
//do the main loop, equal to run() in python
framework.main_loop();
//close the window framework
framework.close_framework();
return (0);
}