Giter Club home page Giter Club logo

Comments (24)

loblao avatar loblao commented on September 25, 2024

It looks like there's something wrong with pythonembed. Could you zip and upload it?

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Alright, thanks. Here you go.

pythonembed.zip

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Just rebuilt it (might have done something wrong in the command line with cmake previously), looks like it doubled the file size x2. Going to give it a whirl.

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Now down to 2, hooray: http://i.imgur.com/FYLettw.png

Want the file again?

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Any ideas?

from src.

loblao avatar loblao commented on September 25, 2024

Please send your file.

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Sorry for the long delay. Here is the file.

pythonembed.zip

from src.

compile0219 avatar compile0219 commented on September 25, 2024

Hey loblao, any updates on this? Thanks so much! @loblao

from src.

 avatar commented on September 25, 2024

I could supply you with my pythonembed, it has nothing wrong with it from what I can tell.

from src.

compile0219 avatar compile0219 commented on September 25, 2024

That would be great. Thanks!

from src.

 avatar commented on September 25, 2024

pythonembed.zip
Here you go!
If it doesn't work, I won't be able to help, unfortunately. The reason Nirai doesn't offer precompiled binaries is due to compatibility issues.
This pythonembed was compiled on a 64-bit machine running Windows 10.

from src.

padlocks avatar padlocks commented on September 25, 2024

Any help would be appreciated. I get these errors when I try to compile some source.
I have looked through other issues and couldn't find any use for them, the pythonembeded.lib you sent fixes 2 of the unresolved external symbols, but not all 7. I built mine as a win32 application, if any more information is needed please let me know.

"E:\Panda3D-1.10.0\python\ppython.exe" -OO make.py -cnm

Compiling CXX codes...
aes.cxx
main.cxx
stride.cxx
Linking...
Creating library built/infinity.lib and object built/infinity.exp
main.obj : error LNK2001: unresolved external symbol _initdirect
main.obj : error LNK2001: unresolved external symbol "void __cdecl init_libmotiontrail(void)" (?init_libmotiontrail@@yaxxz)
main.obj : error LNK2001: unresolved external symbol _initcore
stride.obj : error LNK2001: unresolved external symbol _initlibpandadna
stride.obj : error LNK2001: unresolved external symbol "void __cdecl init_libpandadna(void)" (?init_libpandadna@@yaxxz)
built/infinity.exe : fatal error LNK1120: 5 unresolved externals

from src.

 avatar commented on September 25, 2024

@emiily Download the Nirai panda source again, and edit compile.bat and remove --no-pandatool and --static, and for faster build times, go ahead and add --no-eigen (optional). Now, you're going to need libpandadna. Extract the source into desktop, and edit CMakeLists.txt and change the panda3d directory to where your freshly built non static Panda3d is (the built folder in that new p3d), and cmake it. Then in that project directory (after building it with VS2010 (Set build mode to release!)), copy the libpandadna.dir directory to your build folder. On line 111 of make.py (If you're using Stride, which you are), add this line: compiler._built |= set(glob.glob('libpandadna.dir/Release/*.obj')). For the other errors, make sure your local version of Nirai (build/nirai/src) is up-to-date, as the other errors have been fixed.

from src.

padlocks avatar padlocks commented on September 25, 2024

@lolman8776 I attached my BuildLog in a zip file. I'm trying to build libpandadna, I get 4 errors.

Incase it's something else, I get 25 unresolved externals. I put a file showing the logs in the zip

(For some reason I couldn't attach my zip file, so go here to download it.)

from src.

 avatar commented on September 25, 2024

You need to build your actual stride.cxx executable on the NORMAL panda3d (the one that you didn't modify the compile.bat for), and build libpandadna against the one you DID modify compile.bat for. I can give you my .obj files for Libpandadna, too. But, if it doesn't work, I can't help you and it must be because of compatibility issues. I have attached the obj files. Extract the libpandadna.dir folder into your build directory (The same directory as your make.py).
libpandadna.zip

from src.

padlocks avatar padlocks commented on September 25, 2024

I still get the error, ultimately. Not sure what you mean by building stride.cxx, however. I was also able to build libpandadna myself, can't remember what I did there.

from src.

 avatar commented on September 25, 2024

When you run make.py with -c or -compile-cxx, you're building stride.cxx. That's the code that sets up your executable. You built libpandadna on the panda3d that you edited the compile.bat and removed --static and --no-pandatool for, and you built the make.py --compile-cxx executable using the panda3d that didn't have the modified compile.bat, right? If so, you shouldn't have any trouble.
EDIT: On the panda3d you edited the compile.bat for, you didn't run postbuild, did you? If so, that was the problem with libpandadna.

from src.

padlocks avatar padlocks commented on September 25, 2024

I didn't. But, I'm still having issues. ):
(Also I now see the cxx thing >.>)

Compiling CXX codes...
aes.cxx
infinity.cxx
main.cxx
Linking...
   Creating library built/infinity.lib and object built/infinity.exp
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle TypeHandle::_none" (?_none@TypeHandle@@0V1@A)
infinity.obj : error LNK2001: unresolved external symbol "class TypeHandle uchar_type_handle" (?uchar_type_handle@@3VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "class MemoryHook * memory_hook" (?memory_hook@@3PAVMemoryHook@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class MemoryUsage * MemoryUsage::_global_ptr" (?_global_ptr@MemoryUsage@@0PAV1@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle ReferenceCount::_type_handle" (?_type_handle@ReferenceCount@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle NodeReferenceCount::_type_handle" (?_type_handle@NodeReferenceCount@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle TypedObject::_type_handle" (?_type_handle@TypedObject@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle Datagram::_type_handle" (?_type_handle@Datagram@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol _initlibpandadna
infinity.obj : error LNK2001: unresolved external symbol "void __cdecl init_libpandadna(void)" (?init_libpandadna@@YAXXZ)
built/infinity.exe : fatal error LNK1120: 10 unresolved externals

from src.

 avatar commented on September 25, 2024

Can you attach infinity.cxx so that I can see if I can fix it (Mine needed modification to work)? Also, you don't need to hide that you're using Stride code, it says in their repository's readme that the TTS team welcomes you to build upon the code :)

from src.

padlocks avatar padlocks commented on September 25, 2024

Not hiding, just trying to create a server for some close friends without getting my custom source leaked. Anyways, here you go: infinity.cxx

from src.

 avatar commented on September 25, 2024

Alright then, that's fine too. I'll get to work on fixing it and I'll see what I can do.

from src.

 avatar commented on September 25, 2024

I believe your issue is actually caused by a broken libpandadna build. Try mine and see your results.
P.S: CHANGE YOUR ENCRYPTION KEY! I've commented "CHANGEME" on what you need to change. Make sure you change the
letters to something random. Otherwise, anyone can find the TTS key and dump your source.
Make sure to change it in make.py, too. Just search for the old key (The one I commented CHANGEME on.). If you
don't, the game will not run, because it cannot decrypt ToonData.bin due to an incorrect key.
P.P.S: You need to change the header size to 10, because TTINFINITY is 10 characters long. I have done that for you in the edited version attached.
Here you are!

from src.

padlocks avatar padlocks commented on September 25, 2024

Thank you for that. I can't even compile p3d anymore for some reason. I either get:
LNK1112: module machine type 'x64' conflicts with target machine type 'X86'"
or unresolved externals.
If possible, could you attach your built panda3d?

from src.

 avatar commented on September 25, 2024

Sorry for the (extremely) late reply, but you should submit your current problem as a new issue.

from src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.