Comments (27)
from mysql.
@romssprogrammer Sorry for take so long to answer. I was offline :)
Are you still experiencing this problem?
from mysql.
Hello Malkverbena no worries i understand :) thank for answer me back.
yeah still facing this problem and i have the second one already face by others
I think my Scub is done correctly
what i have finally done for my project is to create a webService Rest in java to communicate with mysql using httprequest node
would be interesting to understand why compiling doesn't work :)
nice job anyway
from mysql.
A friend of mine did this tutorial.
It's in portuguese but you can use translated subtitles.
You will find a good explanation there.
https://www.youtube.com/watch?v=ohGP-q_Na9g
from mysql.
yes i watch it and follow it step by step :) good tutorial !! but i will try again and i will tell you !
from mysql.
@romssprogrammer
This error is because the compiler cannot find the path to the file.
In the worst case, copy the required files with the extension .h to the Mysql module directory and it will work.
But I strongly recommend to solve the issue related to the path on SCsub.
from mysql.
@romssprogrammer Could you please show me your files register_types.h andregister_types.cpp?
I'll start t investigate it thi week.
from mysql.
Note that register_mysql_types must be register_MySQL_types.
from mysql.
from mysql.
@romssprogrammer Could you try compile again the master branch? I did some modifications on SCsub. I don't a machine with the MS Windows right now to test it.
from mysql.
hello
as you ask i tried again but sill have the same error:
[Initial build] Compiling ==> modules\MySQL\MySQL.cpp
MySQL.cpp
C:\godot1\modules\MySQL\MySQL.h(7): fatal error C1083: Impossible d'ouvrir le fichier include : 'mysql_error.h' : No such file or directory
scons: *** [modules\MySQL\MySQL.windows.tools.64.obj] Error 2
scons: building terminated because of errors.
from mysql.
@romssprogrammer Please, reopen this issue
from mysql.
@romssprogrammer I guess the godot compiler should be able to find all mysql headers now.
Could you please try again with the modification I did on scsub file?
Don't forget to use the 1.x branch.
About thefisrt issue, I can't reproduce it at all. Could you provide a copy of your module folder?
from mysql.
Hi thank for keeping searching the issue
here the result
from mysql.
@romssprogrammer Try again. I did some changes on MySQL.h
from mysql.
Hi thank for keeping searching the issue
here the result
from mysql.
from mysql.
@romssprogrammer
I've been baffled by this error. But I noticed that in branch 4.0 this file no longer exists. I still have no idea of the requirements for compiling on the 4.0 branch after this changes. But as soon as possible I have my answers I will update my repository.
You should be able to compile to the 3.x branch without any problems.
from mysql.
@romssprogrammer I guess I figured out how fix it. Could you try to compile again?
from mysql.
Hello sorry for late answer.
i get this name error
I think i didn't miss something in the Scsubscript :
#!/usr/bin/env python
#SCsub
Enter with path to Boost library here
boost_path= "C:/boost"
Enter with the path to jdbc here (mysql_connection.h & mysql_driver.h)
include_path= "C:/mysql-connector-c++-8.0.23-winx64/include/jdbc"
Enter with the path to mysql libs here (mysqlcppconn.lib)
lib_path= "C:/mysql-connector-c++-8.0.23-winx64/lib64/vs14"
#--------------------------------------------------------------------------
version_file = open('../../version.py', 'r')
for ver in version_file:
if ver.startswith("major"):
if ver.count("4") > 0:
mysql_env.Append(CPPDEFINES=["GODOT4"])
version_file.close()
#--------------------------------------------------------------------------
import shutil
Import("env")
env.add_source_files(env.modules_sources,"*.cpp")
if env["platform"] in ["windows", "UWP"]:
target_lib = ""
target_lib_arr = []
env.Append(CPPPATH=[include_path, boost_path])
env.Append(LIBPATH=[lib_path])
mysql_env = env.Clone()
mysql_env['LIBS'] = []
sufix = env["PROGSUFFIX"]
target_lib="mysqlcppconn"
sufix = sufix[0:-3]
mysql_env.Append(CPPFLAGS =["-I" + include_path, "-L " + lib_path])
target_lib_arr = [target_lib] # TODO: More libs are expected for static compilling (ssl, crypto e etc...)
# copy libs
for i in target_lib_arr:
source = lib_path + "/" + i + ".lib"
destination = lib_path + "/" + i + sufix + "lib"
shutil.copy2(source, destination)
env.Append(LIBS=target_lib_arr)
elif env["platform"] in ["linuxbsd", "linux", "bsd", "X11", "Server"]:
module_env = env.Clone()
mysql_env['LIBS'] = []
module_env.Append(CXXFLAGS=['-O2', '-std=c++11'])
env.Append(LIBPATH=['/usr/lib'])
env.Append(LIBS=['mysqlcppconn'])
from mysql.
The flags '-O2' and '-std=c++11' should not be used. Delete this line.
from mysql.
Try the last update I did.
from mysql.
from mysql.
@romssprogrammer
Could we talk on Discord? I would like to understand what's going on. I can't reproduce the errors you get at all.
from mysql.
Hello Malkverbena sorry for the late answer it's because i have to show my application in front of a jury i have to deploy my application on heroku for the date of July 20 and i am struggling.
i will find a time to speak with you i soon as possible.
from mysql.
That's fine. I can't reproduce the issue,so it's hard to figure out what is going on. When you get time we can debug it.
from mysql.
from mysql.
Related Issues (20)
- Checking if connection is successful HOT 3
- Error compiling to Linux HOT 2
- Module not working on Linux server HOT 9
- Suport to MacOS & IOS. HOT 3
- Roadmap Godot Mysql C++ Connector. HOT 3
- Crash when using query "INSERT" HOT 2
- Error while trying to compile Godot HOT 5
- Empty example folders HOT 2
- Tests HOT 2
- Supported platforms: HOT 1
- Problem compiling Godot with MySQL module HOT 18
- Unable to compile SSL when turned on HOT 2
- Prepared statements not being closed
- No match for operator = HOT 2
- Error building godot on windows HOT 6
- Error with android HOT 1
- Problems with compiling in Godot (master branch) HOT 3
- Error trying to compile 3.2.3 HOT 3
- Error Exporting proyect HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.